From b31934dbec6b331b112cce6d95ff57fc12965ba4 Mon Sep 17 00:00:00 2001 From: Zaki Date: Tue, 14 Oct 2025 14:05:27 -0400 Subject: [PATCH 1/4] feat: Add Vaults V2 protocol buffers and generated code This PR establishes the API contract for the Vaults V2 system by adding: - Protocol buffer definitions for all Vaults V2 messages and queries - Generated Go code (pulsar and standard protobuf types) - Type definitions for cross-chain operations, NAV tracking, and oracle management - Updated go.mod dependencies for protobuf support Files included: - proto/noble/dollar/vaults/v2/*.proto (8 proto files) - api/vaults/v2/*.go (13 generated files) - types/vaults/v2/*.go (13 generated files + codec/keys/errors) - go.mod updates - .gitignore updates This is the foundation for all subsequent Vaults V2 implementation work. --- .gitignore | 1 + api/hyperlane/warp/v1/doc.go | 6 + api/vaults/v2/cross_chain.pulsar.go | 10717 ++++ api/vaults/v2/events.pulsar.go | 13750 +++++ api/vaults/v2/fees.pulsar.go | 7358 +++ api/vaults/v2/genesis.pulsar.go | 6046 +++ api/vaults/v2/nav.pulsar.go | 4266 ++ api/vaults/v2/oracle.pulsar.go | 14161 +++++ api/vaults/v2/query.pulsar.go | 42817 ++++++++++++++++ api/vaults/v2/query_grpc.pb.go | 1127 + api/vaults/v2/tx.pulsar.go | 26528 ++++++++++ api/vaults/v2/tx_grpc.pb.go | 1047 + api/vaults/v2/vaults.pulsar.go | 8666 ++++ go.mod | 2 + .../noble/dollar/vaults/v2/cross_chain.proto | 2 +- proto/noble/dollar/vaults/v2/events.proto | 241 +- proto/noble/dollar/vaults/v2/fees.proto | 2 +- proto/noble/dollar/vaults/v2/genesis.proto | 6 +- proto/noble/dollar/vaults/v2/nav.proto | 2 +- proto/noble/dollar/vaults/v2/oracle.proto | 2 +- proto/noble/dollar/vaults/v2/query.proto | 2 +- proto/noble/dollar/vaults/v2/tx.proto | 81 +- proto/noble/dollar/vaults/v2/vaults.proto | 101 +- .../github.com/gogo/protobuf/grpc/go.mod | 6 + types/vaults/v2/codec.go | 56 + types/vaults/v2/cross_chain.pb.go | 5371 ++ types/vaults/v2/errors.go | 37 + types/vaults/v2/events.pb.go | 6814 +++ types/vaults/v2/fees.pb.go | 3482 ++ types/vaults/v2/genesis.pb.go | 2741 + types/vaults/v2/keys.go | 63 + types/vaults/v2/nav.pb.go | 1920 + types/vaults/v2/nav_payload.go | 87 + types/vaults/v2/oracle.pb.go | 6346 +++ types/vaults/v2/query.pb.go | 19167 +++++++ types/vaults/v2/query.pb.gw.go | 2358 + types/vaults/v2/tx.pb.go | 11954 +++++ types/vaults/v2/vaults.pb.go | 4065 ++ 38 files changed, 201387 insertions(+), 11 deletions(-) create mode 100644 api/hyperlane/warp/v1/doc.go create mode 100644 api/vaults/v2/cross_chain.pulsar.go create mode 100644 api/vaults/v2/events.pulsar.go create mode 100644 api/vaults/v2/fees.pulsar.go create mode 100644 api/vaults/v2/genesis.pulsar.go create mode 100644 api/vaults/v2/nav.pulsar.go create mode 100644 api/vaults/v2/oracle.pulsar.go create mode 100644 api/vaults/v2/query.pulsar.go create mode 100644 api/vaults/v2/query_grpc.pb.go create mode 100644 api/vaults/v2/tx.pulsar.go create mode 100644 api/vaults/v2/tx_grpc.pb.go create mode 100644 api/vaults/v2/vaults.pulsar.go create mode 100644 third_party/github.com/gogo/protobuf/grpc/go.mod create mode 100644 types/vaults/v2/codec.go create mode 100644 types/vaults/v2/cross_chain.pb.go create mode 100644 types/vaults/v2/errors.go create mode 100644 types/vaults/v2/events.pb.go create mode 100644 types/vaults/v2/fees.pb.go create mode 100644 types/vaults/v2/genesis.pb.go create mode 100644 types/vaults/v2/keys.go create mode 100644 types/vaults/v2/nav.pb.go create mode 100644 types/vaults/v2/nav_payload.go create mode 100644 types/vaults/v2/oracle.pb.go create mode 100644 types/vaults/v2/query.pb.go create mode 100644 types/vaults/v2/query.pb.gw.go create mode 100644 types/vaults/v2/tx.pb.go create mode 100644 types/vaults/v2/vaults.pb.go diff --git a/.gitignore b/.gitignore index 7dd8bd92..6b7a7ef1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ coverage.out coverage.html go.work go.work.sum +.gocache diff --git a/api/hyperlane/warp/v1/doc.go b/api/hyperlane/warp/v1/doc.go new file mode 100644 index 00000000..88e86567 --- /dev/null +++ b/api/hyperlane/warp/v1/doc.go @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BUSL-1.1 +// +// This package only exists to satisfy generated imports from the vaults v2 +// protobufs until the upstream Hyperlane API bindings are integrated. +package warpv1 + diff --git a/api/vaults/v2/cross_chain.pulsar.go b/api/vaults/v2/cross_chain.pulsar.go new file mode 100644 index 00000000..04464c3e --- /dev/null +++ b/api/vaults/v2/cross_chain.pulsar.go @@ -0,0 +1,10717 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + _ "dollar.noble.xyz/v3/api/hyperlane/warp/v1" + binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + math "math" + reflect "reflect" + sort "sort" + sync "sync" +) + +var ( + md_CrossChainRoute protoreflect.MessageDescriptor + fd_CrossChainRoute_hyptoken_id protoreflect.FieldDescriptor + fd_CrossChainRoute_receiver_chain_hook protoreflect.FieldDescriptor + fd_CrossChainRoute_remote_position_address protoreflect.FieldDescriptor + fd_CrossChainRoute_max_inflight_value protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_CrossChainRoute = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("CrossChainRoute") + fd_CrossChainRoute_hyptoken_id = md_CrossChainRoute.Fields().ByName("hyptoken_id") + fd_CrossChainRoute_receiver_chain_hook = md_CrossChainRoute.Fields().ByName("receiver_chain_hook") + fd_CrossChainRoute_remote_position_address = md_CrossChainRoute.Fields().ByName("remote_position_address") + fd_CrossChainRoute_max_inflight_value = md_CrossChainRoute.Fields().ByName("max_inflight_value") +} + +var _ protoreflect.Message = (*fastReflection_CrossChainRoute)(nil) + +type fastReflection_CrossChainRoute CrossChainRoute + +func (x *CrossChainRoute) ProtoReflect() protoreflect.Message { + return (*fastReflection_CrossChainRoute)(x) +} + +func (x *CrossChainRoute) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_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_CrossChainRoute_messageType fastReflection_CrossChainRoute_messageType +var _ protoreflect.MessageType = fastReflection_CrossChainRoute_messageType{} + +type fastReflection_CrossChainRoute_messageType struct{} + +func (x fastReflection_CrossChainRoute_messageType) Zero() protoreflect.Message { + return (*fastReflection_CrossChainRoute)(nil) +} +func (x fastReflection_CrossChainRoute_messageType) New() protoreflect.Message { + return new(fastReflection_CrossChainRoute) +} +func (x fastReflection_CrossChainRoute_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainRoute +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CrossChainRoute) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainRoute +} + +// 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_CrossChainRoute) Type() protoreflect.MessageType { + return _fastReflection_CrossChainRoute_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CrossChainRoute) New() protoreflect.Message { + return new(fastReflection_CrossChainRoute) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CrossChainRoute) Interface() protoreflect.ProtoMessage { + return (*CrossChainRoute)(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_CrossChainRoute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.HyptokenId != "" { + value := protoreflect.ValueOfString(x.HyptokenId) + if !f(fd_CrossChainRoute_hyptoken_id, value) { + return + } + } + if x.ReceiverChainHook != "" { + value := protoreflect.ValueOfString(x.ReceiverChainHook) + if !f(fd_CrossChainRoute_receiver_chain_hook, value) { + return + } + } + if x.RemotePositionAddress != "" { + value := protoreflect.ValueOfString(x.RemotePositionAddress) + if !f(fd_CrossChainRoute_remote_position_address, value) { + return + } + } + if x.MaxInflightValue != "" { + value := protoreflect.ValueOfString(x.MaxInflightValue) + if !f(fd_CrossChainRoute_max_inflight_value, 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_CrossChainRoute) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainRoute.hyptoken_id": + return x.HyptokenId != "" + case "noble.dollar.vaults.v2.CrossChainRoute.receiver_chain_hook": + return x.ReceiverChainHook != "" + case "noble.dollar.vaults.v2.CrossChainRoute.remote_position_address": + return x.RemotePositionAddress != "" + case "noble.dollar.vaults.v2.CrossChainRoute.max_inflight_value": + return x.MaxInflightValue != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainRoute 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_CrossChainRoute) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainRoute.hyptoken_id": + x.HyptokenId = "" + case "noble.dollar.vaults.v2.CrossChainRoute.receiver_chain_hook": + x.ReceiverChainHook = "" + case "noble.dollar.vaults.v2.CrossChainRoute.remote_position_address": + x.RemotePositionAddress = "" + case "noble.dollar.vaults.v2.CrossChainRoute.max_inflight_value": + x.MaxInflightValue = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainRoute 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_CrossChainRoute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.CrossChainRoute.hyptoken_id": + value := x.HyptokenId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainRoute.receiver_chain_hook": + value := x.ReceiverChainHook + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainRoute.remote_position_address": + value := x.RemotePositionAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainRoute.max_inflight_value": + value := x.MaxInflightValue + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainRoute 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_CrossChainRoute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainRoute.hyptoken_id": + x.HyptokenId = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainRoute.receiver_chain_hook": + x.ReceiverChainHook = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainRoute.remote_position_address": + x.RemotePositionAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainRoute.max_inflight_value": + x.MaxInflightValue = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainRoute 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_CrossChainRoute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainRoute.hyptoken_id": + panic(fmt.Errorf("field hyptoken_id of message noble.dollar.vaults.v2.CrossChainRoute is not mutable")) + case "noble.dollar.vaults.v2.CrossChainRoute.receiver_chain_hook": + panic(fmt.Errorf("field receiver_chain_hook of message noble.dollar.vaults.v2.CrossChainRoute is not mutable")) + case "noble.dollar.vaults.v2.CrossChainRoute.remote_position_address": + panic(fmt.Errorf("field remote_position_address of message noble.dollar.vaults.v2.CrossChainRoute is not mutable")) + case "noble.dollar.vaults.v2.CrossChainRoute.max_inflight_value": + panic(fmt.Errorf("field max_inflight_value of message noble.dollar.vaults.v2.CrossChainRoute is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainRoute 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_CrossChainRoute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainRoute.hyptoken_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainRoute.receiver_chain_hook": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainRoute.remote_position_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainRoute.max_inflight_value": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainRoute 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_CrossChainRoute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.CrossChainRoute", 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_CrossChainRoute) 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_CrossChainRoute) 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_CrossChainRoute) 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_CrossChainRoute) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CrossChainRoute) + 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.HyptokenId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ReceiverChainHook) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RemotePositionAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MaxInflightValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*CrossChainRoute) + 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 len(x.MaxInflightValue) > 0 { + i -= len(x.MaxInflightValue) + copy(dAtA[i:], x.MaxInflightValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxInflightValue))) + i-- + dAtA[i] = 0x22 + } + if len(x.RemotePositionAddress) > 0 { + i -= len(x.RemotePositionAddress) + copy(dAtA[i:], x.RemotePositionAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemotePositionAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.ReceiverChainHook) > 0 { + i -= len(x.ReceiverChainHook) + copy(dAtA[i:], x.ReceiverChainHook) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReceiverChainHook))) + i-- + dAtA[i] = 0x12 + } + if len(x.HyptokenId) > 0 { + i -= len(x.HyptokenId) + copy(dAtA[i:], x.HyptokenId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HyptokenId))) + 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().(*CrossChainRoute) + 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: CrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CrossChainRoute: 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 HyptokenId", 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.HyptokenId = 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 ReceiverChainHook", 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.ReceiverChainHook = 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 RemotePositionAddress", 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.RemotePositionAddress = 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 MaxInflightValue", 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.MaxInflightValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_RemotePosition protoreflect.MessageDescriptor + fd_RemotePosition_hyptoken_id protoreflect.FieldDescriptor + fd_RemotePosition_vault_address protoreflect.FieldDescriptor + fd_RemotePosition_shares_held protoreflect.FieldDescriptor + fd_RemotePosition_principal protoreflect.FieldDescriptor + fd_RemotePosition_share_price protoreflect.FieldDescriptor + fd_RemotePosition_total_value protoreflect.FieldDescriptor + fd_RemotePosition_last_update protoreflect.FieldDescriptor + fd_RemotePosition_status protoreflect.FieldDescriptor + fd_RemotePosition_oracle_address protoreflect.FieldDescriptor + fd_RemotePosition_max_staleness protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_RemotePosition = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("RemotePosition") + fd_RemotePosition_hyptoken_id = md_RemotePosition.Fields().ByName("hyptoken_id") + fd_RemotePosition_vault_address = md_RemotePosition.Fields().ByName("vault_address") + fd_RemotePosition_shares_held = md_RemotePosition.Fields().ByName("shares_held") + fd_RemotePosition_principal = md_RemotePosition.Fields().ByName("principal") + fd_RemotePosition_share_price = md_RemotePosition.Fields().ByName("share_price") + fd_RemotePosition_total_value = md_RemotePosition.Fields().ByName("total_value") + fd_RemotePosition_last_update = md_RemotePosition.Fields().ByName("last_update") + fd_RemotePosition_status = md_RemotePosition.Fields().ByName("status") + fd_RemotePosition_oracle_address = md_RemotePosition.Fields().ByName("oracle_address") + fd_RemotePosition_max_staleness = md_RemotePosition.Fields().ByName("max_staleness") +} + +var _ protoreflect.Message = (*fastReflection_RemotePosition)(nil) + +type fastReflection_RemotePosition RemotePosition + +func (x *RemotePosition) ProtoReflect() protoreflect.Message { + return (*fastReflection_RemotePosition)(x) +} + +func (x *RemotePosition) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[1] + 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_RemotePosition_messageType fastReflection_RemotePosition_messageType +var _ protoreflect.MessageType = fastReflection_RemotePosition_messageType{} + +type fastReflection_RemotePosition_messageType struct{} + +func (x fastReflection_RemotePosition_messageType) Zero() protoreflect.Message { + return (*fastReflection_RemotePosition)(nil) +} +func (x fastReflection_RemotePosition_messageType) New() protoreflect.Message { + return new(fastReflection_RemotePosition) +} +func (x fastReflection_RemotePosition_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RemotePosition +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RemotePosition) Descriptor() protoreflect.MessageDescriptor { + return md_RemotePosition +} + +// 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_RemotePosition) Type() protoreflect.MessageType { + return _fastReflection_RemotePosition_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RemotePosition) New() protoreflect.Message { + return new(fastReflection_RemotePosition) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RemotePosition) Interface() protoreflect.ProtoMessage { + return (*RemotePosition)(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_RemotePosition) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.HyptokenId != "" { + value := protoreflect.ValueOfString(x.HyptokenId) + if !f(fd_RemotePosition_hyptoken_id, value) { + return + } + } + if len(x.VaultAddress) != 0 { + value := protoreflect.ValueOfBytes(x.VaultAddress) + if !f(fd_RemotePosition_vault_address, value) { + return + } + } + if x.SharesHeld != "" { + value := protoreflect.ValueOfString(x.SharesHeld) + if !f(fd_RemotePosition_shares_held, value) { + return + } + } + if x.Principal != "" { + value := protoreflect.ValueOfString(x.Principal) + if !f(fd_RemotePosition_principal, value) { + return + } + } + if x.SharePrice != "" { + value := protoreflect.ValueOfString(x.SharePrice) + if !f(fd_RemotePosition_share_price, value) { + return + } + } + if x.TotalValue != "" { + value := protoreflect.ValueOfString(x.TotalValue) + if !f(fd_RemotePosition_total_value, value) { + return + } + } + if x.LastUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + if !f(fd_RemotePosition_last_update, value) { + return + } + } + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_RemotePosition_status, value) { + return + } + } + if x.OracleAddress != "" { + value := protoreflect.ValueOfString(x.OracleAddress) + if !f(fd_RemotePosition_oracle_address, value) { + return + } + } + if x.MaxStaleness != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxStaleness) + if !f(fd_RemotePosition_max_staleness, 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_RemotePosition) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePosition.hyptoken_id": + return x.HyptokenId != "" + case "noble.dollar.vaults.v2.RemotePosition.vault_address": + return len(x.VaultAddress) != 0 + case "noble.dollar.vaults.v2.RemotePosition.shares_held": + return x.SharesHeld != "" + case "noble.dollar.vaults.v2.RemotePosition.principal": + return x.Principal != "" + case "noble.dollar.vaults.v2.RemotePosition.share_price": + return x.SharePrice != "" + case "noble.dollar.vaults.v2.RemotePosition.total_value": + return x.TotalValue != "" + case "noble.dollar.vaults.v2.RemotePosition.last_update": + return x.LastUpdate != nil + case "noble.dollar.vaults.v2.RemotePosition.status": + return x.Status != 0 + case "noble.dollar.vaults.v2.RemotePosition.oracle_address": + return x.OracleAddress != "" + case "noble.dollar.vaults.v2.RemotePosition.max_staleness": + return x.MaxStaleness != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePosition 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_RemotePosition) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePosition.hyptoken_id": + x.HyptokenId = "" + case "noble.dollar.vaults.v2.RemotePosition.vault_address": + x.VaultAddress = nil + case "noble.dollar.vaults.v2.RemotePosition.shares_held": + x.SharesHeld = "" + case "noble.dollar.vaults.v2.RemotePosition.principal": + x.Principal = "" + case "noble.dollar.vaults.v2.RemotePosition.share_price": + x.SharePrice = "" + case "noble.dollar.vaults.v2.RemotePosition.total_value": + x.TotalValue = "" + case "noble.dollar.vaults.v2.RemotePosition.last_update": + x.LastUpdate = nil + case "noble.dollar.vaults.v2.RemotePosition.status": + x.Status = 0 + case "noble.dollar.vaults.v2.RemotePosition.oracle_address": + x.OracleAddress = "" + case "noble.dollar.vaults.v2.RemotePosition.max_staleness": + x.MaxStaleness = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePosition 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_RemotePosition) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.RemotePosition.hyptoken_id": + value := x.HyptokenId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePosition.vault_address": + value := x.VaultAddress + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.RemotePosition.shares_held": + value := x.SharesHeld + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePosition.principal": + value := x.Principal + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePosition.share_price": + value := x.SharePrice + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePosition.total_value": + value := x.TotalValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePosition.last_update": + value := x.LastUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.RemotePosition.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.RemotePosition.oracle_address": + value := x.OracleAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePosition.max_staleness": + value := x.MaxStaleness + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePosition 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_RemotePosition) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePosition.hyptoken_id": + x.HyptokenId = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePosition.vault_address": + x.VaultAddress = value.Bytes() + case "noble.dollar.vaults.v2.RemotePosition.shares_held": + x.SharesHeld = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePosition.principal": + x.Principal = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePosition.share_price": + x.SharePrice = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePosition.total_value": + x.TotalValue = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePosition.last_update": + x.LastUpdate = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.RemotePosition.status": + x.Status = (RemotePositionStatus)(value.Enum()) + case "noble.dollar.vaults.v2.RemotePosition.oracle_address": + x.OracleAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePosition.max_staleness": + x.MaxStaleness = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePosition 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_RemotePosition) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePosition.last_update": + if x.LastUpdate == nil { + x.LastUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.RemotePosition.hyptoken_id": + panic(fmt.Errorf("field hyptoken_id of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.vault_address": + panic(fmt.Errorf("field vault_address of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.shares_held": + panic(fmt.Errorf("field shares_held of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.principal": + panic(fmt.Errorf("field principal of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.share_price": + panic(fmt.Errorf("field share_price of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.total_value": + panic(fmt.Errorf("field total_value of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.oracle_address": + panic(fmt.Errorf("field oracle_address of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + case "noble.dollar.vaults.v2.RemotePosition.max_staleness": + panic(fmt.Errorf("field max_staleness of message noble.dollar.vaults.v2.RemotePosition is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePosition 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_RemotePosition) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePosition.hyptoken_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePosition.vault_address": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.RemotePosition.shares_held": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePosition.principal": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePosition.share_price": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePosition.total_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePosition.last_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.RemotePosition.status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.RemotePosition.oracle_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePosition.max_staleness": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePosition 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_RemotePosition) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.RemotePosition", 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_RemotePosition) 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_RemotePosition) 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_RemotePosition) 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_RemotePosition) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RemotePosition) + 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.HyptokenId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.VaultAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharesHeld) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Principal) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharePrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdate != nil { + l = options.Size(x.LastUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + l = len(x.OracleAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxStaleness != 0 { + n += 1 + runtime.Sov(uint64(x.MaxStaleness)) + } + 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().(*RemotePosition) + 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.MaxStaleness != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxStaleness)) + i-- + dAtA[i] = 0x50 + } + if len(x.OracleAddress) > 0 { + i -= len(x.OracleAddress) + copy(dAtA[i:], x.OracleAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleAddress))) + i-- + dAtA[i] = 0x4a + } + if x.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + i-- + dAtA[i] = 0x40 + } + if x.LastUpdate != nil { + encoded, err := options.Marshal(x.LastUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if len(x.TotalValue) > 0 { + i -= len(x.TotalValue) + copy(dAtA[i:], x.TotalValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalValue))) + i-- + dAtA[i] = 0x32 + } + if len(x.SharePrice) > 0 { + i -= len(x.SharePrice) + copy(dAtA[i:], x.SharePrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharePrice))) + i-- + dAtA[i] = 0x2a + } + if len(x.Principal) > 0 { + i -= len(x.Principal) + copy(dAtA[i:], x.Principal) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Principal))) + i-- + dAtA[i] = 0x22 + } + if len(x.SharesHeld) > 0 { + i -= len(x.SharesHeld) + copy(dAtA[i:], x.SharesHeld) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesHeld))) + i-- + dAtA[i] = 0x1a + } + if len(x.VaultAddress) > 0 { + i -= len(x.VaultAddress) + copy(dAtA[i:], x.VaultAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VaultAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.HyptokenId) > 0 { + i -= len(x.HyptokenId) + copy(dAtA[i:], x.HyptokenId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HyptokenId))) + 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().(*RemotePosition) + 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: RemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RemotePosition: 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 HyptokenId", 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.HyptokenId = 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 VaultAddress", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.VaultAddress = append(x.VaultAddress[:0], dAtA[iNdEx:postIndex]...) + if x.VaultAddress == nil { + x.VaultAddress = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", 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.SharesHeld = 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 Principal", 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.Principal = 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 SharePrice", 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.SharePrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalValue", 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.TotalValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastUpdate == nil { + x.LastUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + x.Status = 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.Status |= RemotePositionStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", 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.OracleAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + x.MaxStaleness = 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.MaxStaleness |= int64(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, + } +} + +var ( + md_InflightFund protoreflect.MessageDescriptor + fd_InflightFund_id protoreflect.FieldDescriptor + fd_InflightFund_transaction_id protoreflect.FieldDescriptor + fd_InflightFund_amount protoreflect.FieldDescriptor + fd_InflightFund_noble_origin protoreflect.FieldDescriptor + fd_InflightFund_remote_origin protoreflect.FieldDescriptor + fd_InflightFund_noble_destination protoreflect.FieldDescriptor + fd_InflightFund_remote_destination protoreflect.FieldDescriptor + fd_InflightFund_initiated_at protoreflect.FieldDescriptor + fd_InflightFund_expected_at protoreflect.FieldDescriptor + fd_InflightFund_status protoreflect.FieldDescriptor + fd_InflightFund_value_at_initiation protoreflect.FieldDescriptor + fd_InflightFund_provider_tracking protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_InflightFund = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("InflightFund") + fd_InflightFund_id = md_InflightFund.Fields().ByName("id") + fd_InflightFund_transaction_id = md_InflightFund.Fields().ByName("transaction_id") + fd_InflightFund_amount = md_InflightFund.Fields().ByName("amount") + fd_InflightFund_noble_origin = md_InflightFund.Fields().ByName("noble_origin") + fd_InflightFund_remote_origin = md_InflightFund.Fields().ByName("remote_origin") + fd_InflightFund_noble_destination = md_InflightFund.Fields().ByName("noble_destination") + fd_InflightFund_remote_destination = md_InflightFund.Fields().ByName("remote_destination") + fd_InflightFund_initiated_at = md_InflightFund.Fields().ByName("initiated_at") + fd_InflightFund_expected_at = md_InflightFund.Fields().ByName("expected_at") + fd_InflightFund_status = md_InflightFund.Fields().ByName("status") + fd_InflightFund_value_at_initiation = md_InflightFund.Fields().ByName("value_at_initiation") + fd_InflightFund_provider_tracking = md_InflightFund.Fields().ByName("provider_tracking") +} + +var _ protoreflect.Message = (*fastReflection_InflightFund)(nil) + +type fastReflection_InflightFund InflightFund + +func (x *InflightFund) ProtoReflect() protoreflect.Message { + return (*fastReflection_InflightFund)(x) +} + +func (x *InflightFund) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[2] + 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_InflightFund_messageType fastReflection_InflightFund_messageType +var _ protoreflect.MessageType = fastReflection_InflightFund_messageType{} + +type fastReflection_InflightFund_messageType struct{} + +func (x fastReflection_InflightFund_messageType) Zero() protoreflect.Message { + return (*fastReflection_InflightFund)(nil) +} +func (x fastReflection_InflightFund_messageType) New() protoreflect.Message { + return new(fastReflection_InflightFund) +} +func (x fastReflection_InflightFund_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_InflightFund +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_InflightFund) Descriptor() protoreflect.MessageDescriptor { + return md_InflightFund +} + +// 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_InflightFund) Type() protoreflect.MessageType { + return _fastReflection_InflightFund_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_InflightFund) New() protoreflect.Message { + return new(fastReflection_InflightFund) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_InflightFund) Interface() protoreflect.ProtoMessage { + return (*InflightFund)(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_InflightFund) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != "" { + value := protoreflect.ValueOfString(x.Id) + if !f(fd_InflightFund_id, value) { + return + } + } + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_InflightFund_transaction_id, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_InflightFund_amount, value) { + return + } + } + if x.Origin != nil { + switch o := x.Origin.(type) { + case *InflightFund_NobleOrigin: + v := o.NobleOrigin + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_InflightFund_noble_origin, value) { + return + } + case *InflightFund_RemoteOrigin: + v := o.RemoteOrigin + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_InflightFund_remote_origin, value) { + return + } + } + } + if x.Destination != nil { + switch o := x.Destination.(type) { + case *InflightFund_NobleDestination: + v := o.NobleDestination + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_InflightFund_noble_destination, value) { + return + } + case *InflightFund_RemoteDestination: + v := o.RemoteDestination + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_InflightFund_remote_destination, value) { + return + } + } + } + if x.InitiatedAt != nil { + value := protoreflect.ValueOfMessage(x.InitiatedAt.ProtoReflect()) + if !f(fd_InflightFund_initiated_at, value) { + return + } + } + if x.ExpectedAt != nil { + value := protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + if !f(fd_InflightFund_expected_at, value) { + return + } + } + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_InflightFund_status, value) { + return + } + } + if x.ValueAtInitiation != "" { + value := protoreflect.ValueOfString(x.ValueAtInitiation) + if !f(fd_InflightFund_value_at_initiation, value) { + return + } + } + if x.ProviderTracking != nil { + value := protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + if !f(fd_InflightFund_provider_tracking, 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_InflightFund) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFund.id": + return x.Id != "" + case "noble.dollar.vaults.v2.InflightFund.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.InflightFund.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.InflightFund.noble_origin": + if x.Origin == nil { + return false + } else if _, ok := x.Origin.(*InflightFund_NobleOrigin); ok { + return true + } else { + return false + } + case "noble.dollar.vaults.v2.InflightFund.remote_origin": + if x.Origin == nil { + return false + } else if _, ok := x.Origin.(*InflightFund_RemoteOrigin); ok { + return true + } else { + return false + } + case "noble.dollar.vaults.v2.InflightFund.noble_destination": + if x.Destination == nil { + return false + } else if _, ok := x.Destination.(*InflightFund_NobleDestination); ok { + return true + } else { + return false + } + case "noble.dollar.vaults.v2.InflightFund.remote_destination": + if x.Destination == nil { + return false + } else if _, ok := x.Destination.(*InflightFund_RemoteDestination); ok { + return true + } else { + return false + } + case "noble.dollar.vaults.v2.InflightFund.initiated_at": + return x.InitiatedAt != nil + case "noble.dollar.vaults.v2.InflightFund.expected_at": + return x.ExpectedAt != nil + case "noble.dollar.vaults.v2.InflightFund.status": + return x.Status != 0 + case "noble.dollar.vaults.v2.InflightFund.value_at_initiation": + return x.ValueAtInitiation != "" + case "noble.dollar.vaults.v2.InflightFund.provider_tracking": + return x.ProviderTracking != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFund")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFund 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_InflightFund) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFund.id": + x.Id = "" + case "noble.dollar.vaults.v2.InflightFund.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.InflightFund.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.InflightFund.noble_origin": + x.Origin = nil + case "noble.dollar.vaults.v2.InflightFund.remote_origin": + x.Origin = nil + case "noble.dollar.vaults.v2.InflightFund.noble_destination": + x.Destination = nil + case "noble.dollar.vaults.v2.InflightFund.remote_destination": + x.Destination = nil + case "noble.dollar.vaults.v2.InflightFund.initiated_at": + x.InitiatedAt = nil + case "noble.dollar.vaults.v2.InflightFund.expected_at": + x.ExpectedAt = nil + case "noble.dollar.vaults.v2.InflightFund.status": + x.Status = 0 + case "noble.dollar.vaults.v2.InflightFund.value_at_initiation": + x.ValueAtInitiation = "" + case "noble.dollar.vaults.v2.InflightFund.provider_tracking": + x.ProviderTracking = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFund")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFund 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_InflightFund) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.InflightFund.id": + value := x.Id + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFund.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFund.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFund.noble_origin": + if x.Origin == nil { + return protoreflect.ValueOfMessage((*NobleEndpoint)(nil).ProtoReflect()) + } else if v, ok := x.Origin.(*InflightFund_NobleOrigin); ok { + return protoreflect.ValueOfMessage(v.NobleOrigin.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*NobleEndpoint)(nil).ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.remote_origin": + if x.Origin == nil { + return protoreflect.ValueOfMessage((*RemotePosition)(nil).ProtoReflect()) + } else if v, ok := x.Origin.(*InflightFund_RemoteOrigin); ok { + return protoreflect.ValueOfMessage(v.RemoteOrigin.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*RemotePosition)(nil).ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.noble_destination": + if x.Destination == nil { + return protoreflect.ValueOfMessage((*NobleEndpoint)(nil).ProtoReflect()) + } else if v, ok := x.Destination.(*InflightFund_NobleDestination); ok { + return protoreflect.ValueOfMessage(v.NobleDestination.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*NobleEndpoint)(nil).ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.remote_destination": + if x.Destination == nil { + return protoreflect.ValueOfMessage((*RemotePosition)(nil).ProtoReflect()) + } else if v, ok := x.Destination.(*InflightFund_RemoteDestination); ok { + return protoreflect.ValueOfMessage(v.RemoteDestination.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*RemotePosition)(nil).ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.initiated_at": + value := x.InitiatedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.expected_at": + value := x.ExpectedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.InflightFund.value_at_initiation": + value := x.ValueAtInitiation + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFund.provider_tracking": + value := x.ProviderTracking + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFund")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFund 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_InflightFund) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFund.id": + x.Id = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFund.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFund.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFund.noble_origin": + cv := value.Message().Interface().(*NobleEndpoint) + x.Origin = &InflightFund_NobleOrigin{NobleOrigin: cv} + case "noble.dollar.vaults.v2.InflightFund.remote_origin": + cv := value.Message().Interface().(*RemotePosition) + x.Origin = &InflightFund_RemoteOrigin{RemoteOrigin: cv} + case "noble.dollar.vaults.v2.InflightFund.noble_destination": + cv := value.Message().Interface().(*NobleEndpoint) + x.Destination = &InflightFund_NobleDestination{NobleDestination: cv} + case "noble.dollar.vaults.v2.InflightFund.remote_destination": + cv := value.Message().Interface().(*RemotePosition) + x.Destination = &InflightFund_RemoteDestination{RemoteDestination: cv} + case "noble.dollar.vaults.v2.InflightFund.initiated_at": + x.InitiatedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.InflightFund.expected_at": + x.ExpectedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.InflightFund.status": + x.Status = (InflightStatus)(value.Enum()) + case "noble.dollar.vaults.v2.InflightFund.value_at_initiation": + x.ValueAtInitiation = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFund.provider_tracking": + x.ProviderTracking = value.Message().Interface().(*ProviderTrackingInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFund")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFund 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_InflightFund) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFund.noble_origin": + if x.Origin == nil { + value := &NobleEndpoint{} + oneofValue := &InflightFund_NobleOrigin{NobleOrigin: value} + x.Origin = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Origin.(type) { + case *InflightFund_NobleOrigin: + return protoreflect.ValueOfMessage(m.NobleOrigin.ProtoReflect()) + default: + value := &NobleEndpoint{} + oneofValue := &InflightFund_NobleOrigin{NobleOrigin: value} + x.Origin = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.remote_origin": + if x.Origin == nil { + value := &RemotePosition{} + oneofValue := &InflightFund_RemoteOrigin{RemoteOrigin: value} + x.Origin = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Origin.(type) { + case *InflightFund_RemoteOrigin: + return protoreflect.ValueOfMessage(m.RemoteOrigin.ProtoReflect()) + default: + value := &RemotePosition{} + oneofValue := &InflightFund_RemoteOrigin{RemoteOrigin: value} + x.Origin = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.noble_destination": + if x.Destination == nil { + value := &NobleEndpoint{} + oneofValue := &InflightFund_NobleDestination{NobleDestination: value} + x.Destination = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Destination.(type) { + case *InflightFund_NobleDestination: + return protoreflect.ValueOfMessage(m.NobleDestination.ProtoReflect()) + default: + value := &NobleEndpoint{} + oneofValue := &InflightFund_NobleDestination{NobleDestination: value} + x.Destination = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.remote_destination": + if x.Destination == nil { + value := &RemotePosition{} + oneofValue := &InflightFund_RemoteDestination{RemoteDestination: value} + x.Destination = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Destination.(type) { + case *InflightFund_RemoteDestination: + return protoreflect.ValueOfMessage(m.RemoteDestination.ProtoReflect()) + default: + value := &RemotePosition{} + oneofValue := &InflightFund_RemoteDestination{RemoteDestination: value} + x.Destination = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "noble.dollar.vaults.v2.InflightFund.initiated_at": + if x.InitiatedAt == nil { + x.InitiatedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.InitiatedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.expected_at": + if x.ExpectedAt == nil { + x.ExpectedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.provider_tracking": + if x.ProviderTracking == nil { + x.ProviderTracking = new(ProviderTrackingInfo) + } + return protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.id": + panic(fmt.Errorf("field id of message noble.dollar.vaults.v2.InflightFund is not mutable")) + case "noble.dollar.vaults.v2.InflightFund.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.InflightFund is not mutable")) + case "noble.dollar.vaults.v2.InflightFund.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.InflightFund is not mutable")) + case "noble.dollar.vaults.v2.InflightFund.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.InflightFund is not mutable")) + case "noble.dollar.vaults.v2.InflightFund.value_at_initiation": + panic(fmt.Errorf("field value_at_initiation of message noble.dollar.vaults.v2.InflightFund is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFund")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFund 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_InflightFund) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFund.id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFund.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFund.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFund.noble_origin": + value := &NobleEndpoint{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.remote_origin": + value := &RemotePosition{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.noble_destination": + value := &NobleEndpoint{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.remote_destination": + value := &RemotePosition{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.initiated_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.expected_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFund.status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.InflightFund.value_at_initiation": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFund.provider_tracking": + m := new(ProviderTrackingInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFund")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFund 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_InflightFund) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + case "noble.dollar.vaults.v2.InflightFund.origin": + if x.Origin == nil { + return nil + } + switch x.Origin.(type) { + case *InflightFund_NobleOrigin: + return x.Descriptor().Fields().ByName("noble_origin") + case *InflightFund_RemoteOrigin: + return x.Descriptor().Fields().ByName("remote_origin") + } + case "noble.dollar.vaults.v2.InflightFund.destination": + if x.Destination == nil { + return nil + } + switch x.Destination.(type) { + case *InflightFund_NobleDestination: + return x.Descriptor().Fields().ByName("noble_destination") + case *InflightFund_RemoteDestination: + return x.Descriptor().Fields().ByName("remote_destination") + } + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.InflightFund", 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_InflightFund) 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_InflightFund) 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_InflightFund) 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_InflightFund) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*InflightFund) + 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.Id) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + switch x := x.Origin.(type) { + case *InflightFund_NobleOrigin: + if x == nil { + break + } + l = options.Size(x.NobleOrigin) + n += 1 + l + runtime.Sov(uint64(l)) + case *InflightFund_RemoteOrigin: + if x == nil { + break + } + l = options.Size(x.RemoteOrigin) + n += 1 + l + runtime.Sov(uint64(l)) + } + switch x := x.Destination.(type) { + case *InflightFund_NobleDestination: + if x == nil { + break + } + l = options.Size(x.NobleDestination) + n += 1 + l + runtime.Sov(uint64(l)) + case *InflightFund_RemoteDestination: + if x == nil { + break + } + l = options.Size(x.RemoteDestination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.InitiatedAt != nil { + l = options.Size(x.InitiatedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedAt != nil { + l = options.Size(x.ExpectedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + l = len(x.ValueAtInitiation) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ProviderTracking != nil { + l = options.Size(x.ProviderTracking) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*InflightFund) + 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) + } + switch x := x.Destination.(type) { + case *InflightFund_NobleDestination: + encoded, err := options.Marshal(x.NobleDestination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + case *InflightFund_RemoteDestination: + encoded, err := options.Marshal(x.RemoteDestination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + switch x := x.Origin.(type) { + case *InflightFund_NobleOrigin: + encoded, err := options.Marshal(x.NobleOrigin) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + case *InflightFund_RemoteOrigin: + encoded, err := options.Marshal(x.RemoteOrigin) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.ProviderTracking != nil { + encoded, err := options.Marshal(x.ProviderTracking) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x62 + } + if len(x.ValueAtInitiation) > 0 { + i -= len(x.ValueAtInitiation) + copy(dAtA[i:], x.ValueAtInitiation) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValueAtInitiation))) + i-- + dAtA[i] = 0x5a + } + if x.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + i-- + dAtA[i] = 0x50 + } + if x.ExpectedAt != nil { + encoded, err := options.Marshal(x.ExpectedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + if x.InitiatedAt != nil { + encoded, err := options.Marshal(x.InitiatedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Id) > 0 { + i -= len(x.Id) + copy(dAtA[i:], x.Id) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) + 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().(*InflightFund) + 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: InflightFund: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InflightFund: 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 Id", 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.Id = 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 TransactionId", 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.TransactionId = 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 Amount", 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.Amount = 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 NobleOrigin", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + v := &NobleEndpoint{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Origin = &InflightFund_NobleOrigin{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemoteOrigin", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + v := &RemotePosition{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Origin = &InflightFund_RemoteOrigin{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NobleDestination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + v := &NobleEndpoint{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Destination = &InflightFund_NobleDestination{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemoteDestination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + v := &RemotePosition{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Destination = &InflightFund_RemoteDestination{v} + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InitiatedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.InitiatedAt == nil { + x.InitiatedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InitiatedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedAt == nil { + x.ExpectedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + x.Status = 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.Status |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValueAtInitiation", 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.ValueAtInitiation = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ProviderTracking == nil { + x.ProviderTracking = &ProviderTrackingInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProviderTracking); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_NobleEndpoint protoreflect.MessageDescriptor + fd_NobleEndpoint_operation_type protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_NobleEndpoint = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("NobleEndpoint") + fd_NobleEndpoint_operation_type = md_NobleEndpoint.Fields().ByName("operation_type") +} + +var _ protoreflect.Message = (*fastReflection_NobleEndpoint)(nil) + +type fastReflection_NobleEndpoint NobleEndpoint + +func (x *NobleEndpoint) ProtoReflect() protoreflect.Message { + return (*fastReflection_NobleEndpoint)(x) +} + +func (x *NobleEndpoint) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[3] + 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_NobleEndpoint_messageType fastReflection_NobleEndpoint_messageType +var _ protoreflect.MessageType = fastReflection_NobleEndpoint_messageType{} + +type fastReflection_NobleEndpoint_messageType struct{} + +func (x fastReflection_NobleEndpoint_messageType) Zero() protoreflect.Message { + return (*fastReflection_NobleEndpoint)(nil) +} +func (x fastReflection_NobleEndpoint_messageType) New() protoreflect.Message { + return new(fastReflection_NobleEndpoint) +} +func (x fastReflection_NobleEndpoint_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NobleEndpoint +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NobleEndpoint) Descriptor() protoreflect.MessageDescriptor { + return md_NobleEndpoint +} + +// 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_NobleEndpoint) Type() protoreflect.MessageType { + return _fastReflection_NobleEndpoint_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NobleEndpoint) New() protoreflect.Message { + return new(fastReflection_NobleEndpoint) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NobleEndpoint) Interface() protoreflect.ProtoMessage { + return (*NobleEndpoint)(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_NobleEndpoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OperationType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.OperationType)) + if !f(fd_NobleEndpoint_operation_type, 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_NobleEndpoint) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NobleEndpoint.operation_type": + return x.OperationType != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NobleEndpoint")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NobleEndpoint 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_NobleEndpoint) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NobleEndpoint.operation_type": + x.OperationType = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NobleEndpoint")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NobleEndpoint 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_NobleEndpoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NobleEndpoint.operation_type": + value := x.OperationType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NobleEndpoint")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NobleEndpoint 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_NobleEndpoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NobleEndpoint.operation_type": + x.OperationType = (OperationType)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NobleEndpoint")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NobleEndpoint 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_NobleEndpoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NobleEndpoint.operation_type": + panic(fmt.Errorf("field operation_type of message noble.dollar.vaults.v2.NobleEndpoint is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NobleEndpoint")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NobleEndpoint 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_NobleEndpoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NobleEndpoint.operation_type": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NobleEndpoint")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NobleEndpoint 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_NobleEndpoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NobleEndpoint", 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_NobleEndpoint) 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_NobleEndpoint) 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_NobleEndpoint) 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_NobleEndpoint) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NobleEndpoint) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.OperationType != 0 { + n += 1 + runtime.Sov(uint64(x.OperationType)) + } + 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().(*NobleEndpoint) + 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.OperationType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.OperationType)) + i-- + dAtA[i] = 0x8 + } + 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().(*NobleEndpoint) + 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: NobleEndpoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NobleEndpoint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OperationType", wireType) + } + x.OperationType = 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.OperationType |= OperationType(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, + } +} + +var ( + md_ProviderTrackingInfo protoreflect.MessageDescriptor + fd_ProviderTrackingInfo_hyperlane_tracking protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_ProviderTrackingInfo = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("ProviderTrackingInfo") + fd_ProviderTrackingInfo_hyperlane_tracking = md_ProviderTrackingInfo.Fields().ByName("hyperlane_tracking") +} + +var _ protoreflect.Message = (*fastReflection_ProviderTrackingInfo)(nil) + +type fastReflection_ProviderTrackingInfo ProviderTrackingInfo + +func (x *ProviderTrackingInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_ProviderTrackingInfo)(x) +} + +func (x *ProviderTrackingInfo) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[4] + 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_ProviderTrackingInfo_messageType fastReflection_ProviderTrackingInfo_messageType +var _ protoreflect.MessageType = fastReflection_ProviderTrackingInfo_messageType{} + +type fastReflection_ProviderTrackingInfo_messageType struct{} + +func (x fastReflection_ProviderTrackingInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_ProviderTrackingInfo)(nil) +} +func (x fastReflection_ProviderTrackingInfo_messageType) New() protoreflect.Message { + return new(fastReflection_ProviderTrackingInfo) +} +func (x fastReflection_ProviderTrackingInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ProviderTrackingInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ProviderTrackingInfo) Descriptor() protoreflect.MessageDescriptor { + return md_ProviderTrackingInfo +} + +// 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_ProviderTrackingInfo) Type() protoreflect.MessageType { + return _fastReflection_ProviderTrackingInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ProviderTrackingInfo) New() protoreflect.Message { + return new(fastReflection_ProviderTrackingInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ProviderTrackingInfo) Interface() protoreflect.ProtoMessage { + return (*ProviderTrackingInfo)(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_ProviderTrackingInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TrackingInfo != nil { + switch o := x.TrackingInfo.(type) { + case *ProviderTrackingInfo_HyperlaneTracking: + v := o.HyperlaneTracking + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_ProviderTrackingInfo_hyperlane_tracking, 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_ProviderTrackingInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking": + if x.TrackingInfo == nil { + return false + } else if _, ok := x.TrackingInfo.(*ProviderTrackingInfo_HyperlaneTracking); ok { + return true + } else { + return false + } + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.ProviderTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.ProviderTrackingInfo 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_ProviderTrackingInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking": + x.TrackingInfo = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.ProviderTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.ProviderTrackingInfo 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_ProviderTrackingInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking": + if x.TrackingInfo == nil { + return protoreflect.ValueOfMessage((*HyperlaneTrackingInfo)(nil).ProtoReflect()) + } else if v, ok := x.TrackingInfo.(*ProviderTrackingInfo_HyperlaneTracking); ok { + return protoreflect.ValueOfMessage(v.HyperlaneTracking.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*HyperlaneTrackingInfo)(nil).ProtoReflect()) + } + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.ProviderTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.ProviderTrackingInfo 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_ProviderTrackingInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking": + cv := value.Message().Interface().(*HyperlaneTrackingInfo) + x.TrackingInfo = &ProviderTrackingInfo_HyperlaneTracking{HyperlaneTracking: cv} + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.ProviderTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.ProviderTrackingInfo 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_ProviderTrackingInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking": + if x.TrackingInfo == nil { + value := &HyperlaneTrackingInfo{} + oneofValue := &ProviderTrackingInfo_HyperlaneTracking{HyperlaneTracking: value} + x.TrackingInfo = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.TrackingInfo.(type) { + case *ProviderTrackingInfo_HyperlaneTracking: + return protoreflect.ValueOfMessage(m.HyperlaneTracking.ProtoReflect()) + default: + value := &HyperlaneTrackingInfo{} + oneofValue := &ProviderTrackingInfo_HyperlaneTracking{HyperlaneTracking: value} + x.TrackingInfo = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.ProviderTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.ProviderTrackingInfo 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_ProviderTrackingInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking": + value := &HyperlaneTrackingInfo{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.ProviderTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.ProviderTrackingInfo 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_ProviderTrackingInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + case "noble.dollar.vaults.v2.ProviderTrackingInfo.tracking_info": + if x.TrackingInfo == nil { + return nil + } + switch x.TrackingInfo.(type) { + case *ProviderTrackingInfo_HyperlaneTracking: + return x.Descriptor().Fields().ByName("hyperlane_tracking") + } + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.ProviderTrackingInfo", 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_ProviderTrackingInfo) 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_ProviderTrackingInfo) 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_ProviderTrackingInfo) 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_ProviderTrackingInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ProviderTrackingInfo) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + switch x := x.TrackingInfo.(type) { + case *ProviderTrackingInfo_HyperlaneTracking: + if x == nil { + break + } + l = options.Size(x.HyperlaneTracking) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*ProviderTrackingInfo) + 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) + } + switch x := x.TrackingInfo.(type) { + case *ProviderTrackingInfo_HyperlaneTracking: + encoded, err := options.Marshal(x.HyperlaneTracking) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*ProviderTrackingInfo) + 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: ProviderTrackingInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ProviderTrackingInfo: 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 HyperlaneTracking", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + v := &HyperlaneTrackingInfo{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.TrackingInfo = &ProviderTrackingInfo_HyperlaneTracking{v} + iNdEx = postIndex + 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, + } +} + +var ( + md_HyperlaneTrackingInfo protoreflect.MessageDescriptor + fd_HyperlaneTrackingInfo_message_id protoreflect.FieldDescriptor + fd_HyperlaneTrackingInfo_origin_domain protoreflect.FieldDescriptor + fd_HyperlaneTrackingInfo_destination_domain protoreflect.FieldDescriptor + fd_HyperlaneTrackingInfo_nonce protoreflect.FieldDescriptor + fd_HyperlaneTrackingInfo_origin_tx_hash protoreflect.FieldDescriptor + fd_HyperlaneTrackingInfo_destination_tx_hash protoreflect.FieldDescriptor + fd_HyperlaneTrackingInfo_processed protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_HyperlaneTrackingInfo = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("HyperlaneTrackingInfo") + fd_HyperlaneTrackingInfo_message_id = md_HyperlaneTrackingInfo.Fields().ByName("message_id") + fd_HyperlaneTrackingInfo_origin_domain = md_HyperlaneTrackingInfo.Fields().ByName("origin_domain") + fd_HyperlaneTrackingInfo_destination_domain = md_HyperlaneTrackingInfo.Fields().ByName("destination_domain") + fd_HyperlaneTrackingInfo_nonce = md_HyperlaneTrackingInfo.Fields().ByName("nonce") + fd_HyperlaneTrackingInfo_origin_tx_hash = md_HyperlaneTrackingInfo.Fields().ByName("origin_tx_hash") + fd_HyperlaneTrackingInfo_destination_tx_hash = md_HyperlaneTrackingInfo.Fields().ByName("destination_tx_hash") + fd_HyperlaneTrackingInfo_processed = md_HyperlaneTrackingInfo.Fields().ByName("processed") +} + +var _ protoreflect.Message = (*fastReflection_HyperlaneTrackingInfo)(nil) + +type fastReflection_HyperlaneTrackingInfo HyperlaneTrackingInfo + +func (x *HyperlaneTrackingInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_HyperlaneTrackingInfo)(x) +} + +func (x *HyperlaneTrackingInfo) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[5] + 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_HyperlaneTrackingInfo_messageType fastReflection_HyperlaneTrackingInfo_messageType +var _ protoreflect.MessageType = fastReflection_HyperlaneTrackingInfo_messageType{} + +type fastReflection_HyperlaneTrackingInfo_messageType struct{} + +func (x fastReflection_HyperlaneTrackingInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_HyperlaneTrackingInfo)(nil) +} +func (x fastReflection_HyperlaneTrackingInfo_messageType) New() protoreflect.Message { + return new(fastReflection_HyperlaneTrackingInfo) +} +func (x fastReflection_HyperlaneTrackingInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_HyperlaneTrackingInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_HyperlaneTrackingInfo) Descriptor() protoreflect.MessageDescriptor { + return md_HyperlaneTrackingInfo +} + +// 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_HyperlaneTrackingInfo) Type() protoreflect.MessageType { + return _fastReflection_HyperlaneTrackingInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_HyperlaneTrackingInfo) New() protoreflect.Message { + return new(fastReflection_HyperlaneTrackingInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_HyperlaneTrackingInfo) Interface() protoreflect.ProtoMessage { + return (*HyperlaneTrackingInfo)(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_HyperlaneTrackingInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.MessageId) != 0 { + value := protoreflect.ValueOfBytes(x.MessageId) + if !f(fd_HyperlaneTrackingInfo_message_id, value) { + return + } + } + if x.OriginDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.OriginDomain) + if !f(fd_HyperlaneTrackingInfo_origin_domain, value) { + return + } + } + if x.DestinationDomain != uint32(0) { + value := protoreflect.ValueOfUint32(x.DestinationDomain) + if !f(fd_HyperlaneTrackingInfo_destination_domain, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_HyperlaneTrackingInfo_nonce, value) { + return + } + } + if x.OriginTxHash != "" { + value := protoreflect.ValueOfString(x.OriginTxHash) + if !f(fd_HyperlaneTrackingInfo_origin_tx_hash, value) { + return + } + } + if x.DestinationTxHash != "" { + value := protoreflect.ValueOfString(x.DestinationTxHash) + if !f(fd_HyperlaneTrackingInfo_destination_tx_hash, value) { + return + } + } + if x.Processed != false { + value := protoreflect.ValueOfBool(x.Processed) + if !f(fd_HyperlaneTrackingInfo_processed, 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_HyperlaneTrackingInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.message_id": + return len(x.MessageId) != 0 + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_domain": + return x.OriginDomain != uint32(0) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_domain": + return x.DestinationDomain != uint32(0) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.nonce": + return x.Nonce != uint64(0) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_tx_hash": + return x.OriginTxHash != "" + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_tx_hash": + return x.DestinationTxHash != "" + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.processed": + return x.Processed != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.HyperlaneTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.HyperlaneTrackingInfo 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_HyperlaneTrackingInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.message_id": + x.MessageId = nil + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_domain": + x.OriginDomain = uint32(0) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_domain": + x.DestinationDomain = uint32(0) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.nonce": + x.Nonce = uint64(0) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_tx_hash": + x.OriginTxHash = "" + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_tx_hash": + x.DestinationTxHash = "" + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.processed": + x.Processed = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.HyperlaneTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.HyperlaneTrackingInfo 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_HyperlaneTrackingInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.message_id": + value := x.MessageId + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_domain": + value := x.OriginDomain + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_domain": + value := x.DestinationDomain + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_tx_hash": + value := x.OriginTxHash + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_tx_hash": + value := x.DestinationTxHash + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.processed": + value := x.Processed + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.HyperlaneTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.HyperlaneTrackingInfo 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_HyperlaneTrackingInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.message_id": + x.MessageId = value.Bytes() + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_domain": + x.OriginDomain = uint32(value.Uint()) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_domain": + x.DestinationDomain = uint32(value.Uint()) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.nonce": + x.Nonce = value.Uint() + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_tx_hash": + x.OriginTxHash = value.Interface().(string) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_tx_hash": + x.DestinationTxHash = value.Interface().(string) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.processed": + x.Processed = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.HyperlaneTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.HyperlaneTrackingInfo 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_HyperlaneTrackingInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.message_id": + panic(fmt.Errorf("field message_id of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_domain": + panic(fmt.Errorf("field origin_domain of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_domain": + panic(fmt.Errorf("field destination_domain of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.nonce": + panic(fmt.Errorf("field nonce of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_tx_hash": + panic(fmt.Errorf("field origin_tx_hash of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_tx_hash": + panic(fmt.Errorf("field destination_tx_hash of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.processed": + panic(fmt.Errorf("field processed of message noble.dollar.vaults.v2.HyperlaneTrackingInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.HyperlaneTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.HyperlaneTrackingInfo 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_HyperlaneTrackingInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.message_id": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_domain": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.origin_tx_hash": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.destination_tx_hash": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.HyperlaneTrackingInfo.processed": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.HyperlaneTrackingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.HyperlaneTrackingInfo 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_HyperlaneTrackingInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.HyperlaneTrackingInfo", 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_HyperlaneTrackingInfo) 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_HyperlaneTrackingInfo) 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_HyperlaneTrackingInfo) 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_HyperlaneTrackingInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*HyperlaneTrackingInfo) + 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.MessageId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.OriginDomain != 0 { + n += 1 + runtime.Sov(uint64(x.OriginDomain)) + } + if x.DestinationDomain != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationDomain)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + l = len(x.OriginTxHash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationTxHash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Processed { + n += 2 + } + 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().(*HyperlaneTrackingInfo) + 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.Processed { + i-- + if x.Processed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(x.DestinationTxHash) > 0 { + i -= len(x.DestinationTxHash) + copy(dAtA[i:], x.DestinationTxHash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationTxHash))) + i-- + dAtA[i] = 0x32 + } + if len(x.OriginTxHash) > 0 { + i -= len(x.OriginTxHash) + copy(dAtA[i:], x.OriginTxHash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginTxHash))) + i-- + dAtA[i] = 0x2a + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x20 + } + if x.DestinationDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationDomain)) + i-- + dAtA[i] = 0x18 + } + if x.OriginDomain != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.OriginDomain)) + i-- + dAtA[i] = 0x10 + } + if len(x.MessageId) > 0 { + i -= len(x.MessageId) + copy(dAtA[i:], x.MessageId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageId))) + 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().(*HyperlaneTrackingInfo) + 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: HyperlaneTrackingInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: HyperlaneTrackingInfo: 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 MessageId", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.MessageId = append(x.MessageId[:0], dAtA[iNdEx:postIndex]...) + if x.MessageId == nil { + x.MessageId = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginDomain", wireType) + } + x.OriginDomain = 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.OriginDomain |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationDomain", wireType) + } + x.DestinationDomain = 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.DestinationDomain |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 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.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginTxHash", 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.OriginTxHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationTxHash", 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.DestinationTxHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Processed = bool(v != 0) + 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, + } +} + +var ( + md_NAVOracleUpdate protoreflect.MessageDescriptor + fd_NAVOracleUpdate_position_id protoreflect.FieldDescriptor + fd_NAVOracleUpdate_share_price protoreflect.FieldDescriptor + fd_NAVOracleUpdate_shares_held protoreflect.FieldDescriptor + fd_NAVOracleUpdate_timestamp protoreflect.FieldDescriptor + fd_NAVOracleUpdate_source_chain protoreflect.FieldDescriptor + fd_NAVOracleUpdate_message_id protoreflect.FieldDescriptor + fd_NAVOracleUpdate_status protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_NAVOracleUpdate = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("NAVOracleUpdate") + fd_NAVOracleUpdate_position_id = md_NAVOracleUpdate.Fields().ByName("position_id") + fd_NAVOracleUpdate_share_price = md_NAVOracleUpdate.Fields().ByName("share_price") + fd_NAVOracleUpdate_shares_held = md_NAVOracleUpdate.Fields().ByName("shares_held") + fd_NAVOracleUpdate_timestamp = md_NAVOracleUpdate.Fields().ByName("timestamp") + fd_NAVOracleUpdate_source_chain = md_NAVOracleUpdate.Fields().ByName("source_chain") + fd_NAVOracleUpdate_message_id = md_NAVOracleUpdate.Fields().ByName("message_id") + fd_NAVOracleUpdate_status = md_NAVOracleUpdate.Fields().ByName("status") +} + +var _ protoreflect.Message = (*fastReflection_NAVOracleUpdate)(nil) + +type fastReflection_NAVOracleUpdate NAVOracleUpdate + +func (x *NAVOracleUpdate) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVOracleUpdate)(x) +} + +func (x *NAVOracleUpdate) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[6] + 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_NAVOracleUpdate_messageType fastReflection_NAVOracleUpdate_messageType +var _ protoreflect.MessageType = fastReflection_NAVOracleUpdate_messageType{} + +type fastReflection_NAVOracleUpdate_messageType struct{} + +func (x fastReflection_NAVOracleUpdate_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVOracleUpdate)(nil) +} +func (x fastReflection_NAVOracleUpdate_messageType) New() protoreflect.Message { + return new(fastReflection_NAVOracleUpdate) +} +func (x fastReflection_NAVOracleUpdate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVOracleUpdate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVOracleUpdate) Descriptor() protoreflect.MessageDescriptor { + return md_NAVOracleUpdate +} + +// 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_NAVOracleUpdate) Type() protoreflect.MessageType { + return _fastReflection_NAVOracleUpdate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVOracleUpdate) New() protoreflect.Message { + return new(fastReflection_NAVOracleUpdate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVOracleUpdate) Interface() protoreflect.ProtoMessage { + return (*NAVOracleUpdate)(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_NAVOracleUpdate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_NAVOracleUpdate_position_id, value) { + return + } + } + if x.SharePrice != "" { + value := protoreflect.ValueOfString(x.SharePrice) + if !f(fd_NAVOracleUpdate_share_price, value) { + return + } + } + if x.SharesHeld != "" { + value := protoreflect.ValueOfString(x.SharesHeld) + if !f(fd_NAVOracleUpdate_shares_held, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_NAVOracleUpdate_timestamp, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_NAVOracleUpdate_source_chain, value) { + return + } + } + if x.MessageId != "" { + value := protoreflect.ValueOfString(x.MessageId) + if !f(fd_NAVOracleUpdate_message_id, value) { + return + } + } + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_NAVOracleUpdate_status, 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_NAVOracleUpdate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVOracleUpdate.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.NAVOracleUpdate.share_price": + return x.SharePrice != "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.shares_held": + return x.SharesHeld != "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.NAVOracleUpdate.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.message_id": + return x.MessageId != "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.status": + return x.Status != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVOracleUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVOracleUpdate 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_NAVOracleUpdate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVOracleUpdate.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.NAVOracleUpdate.share_price": + x.SharePrice = "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.shares_held": + x.SharesHeld = "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.NAVOracleUpdate.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.message_id": + x.MessageId = "" + case "noble.dollar.vaults.v2.NAVOracleUpdate.status": + x.Status = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVOracleUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVOracleUpdate 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_NAVOracleUpdate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVOracleUpdate.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.NAVOracleUpdate.share_price": + value := x.SharePrice + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVOracleUpdate.shares_held": + value := x.SharesHeld + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVOracleUpdate.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVOracleUpdate.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVOracleUpdate.message_id": + value := x.MessageId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVOracleUpdate.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVOracleUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVOracleUpdate 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_NAVOracleUpdate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVOracleUpdate.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.NAVOracleUpdate.share_price": + x.SharePrice = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVOracleUpdate.shares_held": + x.SharesHeld = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVOracleUpdate.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.NAVOracleUpdate.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVOracleUpdate.message_id": + x.MessageId = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVOracleUpdate.status": + x.Status = (OracleUpdateStatus)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVOracleUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVOracleUpdate 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_NAVOracleUpdate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVOracleUpdate.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVOracleUpdate.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.NAVOracleUpdate is not mutable")) + case "noble.dollar.vaults.v2.NAVOracleUpdate.share_price": + panic(fmt.Errorf("field share_price of message noble.dollar.vaults.v2.NAVOracleUpdate is not mutable")) + case "noble.dollar.vaults.v2.NAVOracleUpdate.shares_held": + panic(fmt.Errorf("field shares_held of message noble.dollar.vaults.v2.NAVOracleUpdate is not mutable")) + case "noble.dollar.vaults.v2.NAVOracleUpdate.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.NAVOracleUpdate is not mutable")) + case "noble.dollar.vaults.v2.NAVOracleUpdate.message_id": + panic(fmt.Errorf("field message_id of message noble.dollar.vaults.v2.NAVOracleUpdate is not mutable")) + case "noble.dollar.vaults.v2.NAVOracleUpdate.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.NAVOracleUpdate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVOracleUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVOracleUpdate 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_NAVOracleUpdate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVOracleUpdate.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.NAVOracleUpdate.share_price": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVOracleUpdate.shares_held": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVOracleUpdate.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVOracleUpdate.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVOracleUpdate.message_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVOracleUpdate.status": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVOracleUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVOracleUpdate 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_NAVOracleUpdate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVOracleUpdate", 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_NAVOracleUpdate) 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_NAVOracleUpdate) 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_NAVOracleUpdate) 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_NAVOracleUpdate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVOracleUpdate) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.SharePrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharesHeld) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MessageId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + 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().(*NAVOracleUpdate) + 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.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + i-- + dAtA[i] = 0x38 + } + if len(x.MessageId) > 0 { + i -= len(x.MessageId) + copy(dAtA[i:], x.MessageId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MessageId))) + i-- + dAtA[i] = 0x32 + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x2a + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.SharesHeld) > 0 { + i -= len(x.SharesHeld) + copy(dAtA[i:], x.SharesHeld) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesHeld))) + i-- + dAtA[i] = 0x1a + } + if len(x.SharePrice) > 0 { + i -= len(x.SharePrice) + copy(dAtA[i:], x.SharePrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharePrice))) + i-- + dAtA[i] = 0x12 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*NAVOracleUpdate) + 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: NAVOracleUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVOracleUpdate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharePrice", 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.SharePrice = 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 SharesHeld", 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.SharesHeld = 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 Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MessageId", 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.MessageId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + x.Status = 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.Status |= OracleUpdateStatus(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, + } +} + +var ( + md_PositionOracleConfig protoreflect.MessageDescriptor + fd_PositionOracleConfig_position_id protoreflect.FieldDescriptor + fd_PositionOracleConfig_origin_identifier protoreflect.FieldDescriptor + fd_PositionOracleConfig_max_staleness protoreflect.FieldDescriptor + fd_PositionOracleConfig_oracle_contract protoreflect.FieldDescriptor + fd_PositionOracleConfig_source_chain protoreflect.FieldDescriptor + fd_PositionOracleConfig_last_update protoreflect.FieldDescriptor + fd_PositionOracleConfig_provider_type protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_PositionOracleConfig = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("PositionOracleConfig") + fd_PositionOracleConfig_position_id = md_PositionOracleConfig.Fields().ByName("position_id") + fd_PositionOracleConfig_origin_identifier = md_PositionOracleConfig.Fields().ByName("origin_identifier") + fd_PositionOracleConfig_max_staleness = md_PositionOracleConfig.Fields().ByName("max_staleness") + fd_PositionOracleConfig_oracle_contract = md_PositionOracleConfig.Fields().ByName("oracle_contract") + fd_PositionOracleConfig_source_chain = md_PositionOracleConfig.Fields().ByName("source_chain") + fd_PositionOracleConfig_last_update = md_PositionOracleConfig.Fields().ByName("last_update") + fd_PositionOracleConfig_provider_type = md_PositionOracleConfig.Fields().ByName("provider_type") +} + +var _ protoreflect.Message = (*fastReflection_PositionOracleConfig)(nil) + +type fastReflection_PositionOracleConfig PositionOracleConfig + +func (x *PositionOracleConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_PositionOracleConfig)(x) +} + +func (x *PositionOracleConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[7] + 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_PositionOracleConfig_messageType fastReflection_PositionOracleConfig_messageType +var _ protoreflect.MessageType = fastReflection_PositionOracleConfig_messageType{} + +type fastReflection_PositionOracleConfig_messageType struct{} + +func (x fastReflection_PositionOracleConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_PositionOracleConfig)(nil) +} +func (x fastReflection_PositionOracleConfig_messageType) New() protoreflect.Message { + return new(fastReflection_PositionOracleConfig) +} +func (x fastReflection_PositionOracleConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PositionOracleConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PositionOracleConfig) Descriptor() protoreflect.MessageDescriptor { + return md_PositionOracleConfig +} + +// 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_PositionOracleConfig) Type() protoreflect.MessageType { + return _fastReflection_PositionOracleConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PositionOracleConfig) New() protoreflect.Message { + return new(fastReflection_PositionOracleConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PositionOracleConfig) Interface() protoreflect.ProtoMessage { + return (*PositionOracleConfig)(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_PositionOracleConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_PositionOracleConfig_position_id, value) { + return + } + } + if x.OriginIdentifier != "" { + value := protoreflect.ValueOfString(x.OriginIdentifier) + if !f(fd_PositionOracleConfig_origin_identifier, value) { + return + } + } + if x.MaxStaleness != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxStaleness) + if !f(fd_PositionOracleConfig_max_staleness, value) { + return + } + } + if x.OracleContract != "" { + value := protoreflect.ValueOfString(x.OracleContract) + if !f(fd_PositionOracleConfig_oracle_contract, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_PositionOracleConfig_source_chain, value) { + return + } + } + if x.LastUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + if !f(fd_PositionOracleConfig_last_update, value) { + return + } + } + if x.ProviderType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.ProviderType)) + if !f(fd_PositionOracleConfig_provider_type, 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_PositionOracleConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PositionOracleConfig.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.PositionOracleConfig.origin_identifier": + return x.OriginIdentifier != "" + case "noble.dollar.vaults.v2.PositionOracleConfig.max_staleness": + return x.MaxStaleness != int64(0) + case "noble.dollar.vaults.v2.PositionOracleConfig.oracle_contract": + return x.OracleContract != "" + case "noble.dollar.vaults.v2.PositionOracleConfig.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.PositionOracleConfig.last_update": + return x.LastUpdate != nil + case "noble.dollar.vaults.v2.PositionOracleConfig.provider_type": + return x.ProviderType != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PositionOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PositionOracleConfig 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_PositionOracleConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PositionOracleConfig.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.PositionOracleConfig.origin_identifier": + x.OriginIdentifier = "" + case "noble.dollar.vaults.v2.PositionOracleConfig.max_staleness": + x.MaxStaleness = int64(0) + case "noble.dollar.vaults.v2.PositionOracleConfig.oracle_contract": + x.OracleContract = "" + case "noble.dollar.vaults.v2.PositionOracleConfig.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.PositionOracleConfig.last_update": + x.LastUpdate = nil + case "noble.dollar.vaults.v2.PositionOracleConfig.provider_type": + x.ProviderType = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PositionOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PositionOracleConfig 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_PositionOracleConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.PositionOracleConfig.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.PositionOracleConfig.origin_identifier": + value := x.OriginIdentifier + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.PositionOracleConfig.max_staleness": + value := x.MaxStaleness + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.PositionOracleConfig.oracle_contract": + value := x.OracleContract + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.PositionOracleConfig.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.PositionOracleConfig.last_update": + value := x.LastUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.PositionOracleConfig.provider_type": + value := x.ProviderType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PositionOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PositionOracleConfig 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_PositionOracleConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PositionOracleConfig.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.PositionOracleConfig.origin_identifier": + x.OriginIdentifier = value.Interface().(string) + case "noble.dollar.vaults.v2.PositionOracleConfig.max_staleness": + x.MaxStaleness = value.Int() + case "noble.dollar.vaults.v2.PositionOracleConfig.oracle_contract": + x.OracleContract = value.Interface().(string) + case "noble.dollar.vaults.v2.PositionOracleConfig.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.PositionOracleConfig.last_update": + x.LastUpdate = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.PositionOracleConfig.provider_type": + x.ProviderType = (ProviderType)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PositionOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PositionOracleConfig 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_PositionOracleConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PositionOracleConfig.last_update": + if x.LastUpdate == nil { + x.LastUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.PositionOracleConfig.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.PositionOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.PositionOracleConfig.origin_identifier": + panic(fmt.Errorf("field origin_identifier of message noble.dollar.vaults.v2.PositionOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.PositionOracleConfig.max_staleness": + panic(fmt.Errorf("field max_staleness of message noble.dollar.vaults.v2.PositionOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.PositionOracleConfig.oracle_contract": + panic(fmt.Errorf("field oracle_contract of message noble.dollar.vaults.v2.PositionOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.PositionOracleConfig.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.PositionOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.PositionOracleConfig.provider_type": + panic(fmt.Errorf("field provider_type of message noble.dollar.vaults.v2.PositionOracleConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PositionOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PositionOracleConfig 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_PositionOracleConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PositionOracleConfig.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.PositionOracleConfig.origin_identifier": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.PositionOracleConfig.max_staleness": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.PositionOracleConfig.oracle_contract": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.PositionOracleConfig.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.PositionOracleConfig.last_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.PositionOracleConfig.provider_type": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PositionOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PositionOracleConfig 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_PositionOracleConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.PositionOracleConfig", 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_PositionOracleConfig) 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_PositionOracleConfig) 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_PositionOracleConfig) 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_PositionOracleConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PositionOracleConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.OriginIdentifier) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxStaleness != 0 { + n += 1 + runtime.Sov(uint64(x.MaxStaleness)) + } + l = len(x.OracleContract) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdate != nil { + l = options.Size(x.LastUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ProviderType != 0 { + n += 1 + runtime.Sov(uint64(x.ProviderType)) + } + 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().(*PositionOracleConfig) + 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.ProviderType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ProviderType)) + i-- + dAtA[i] = 0x38 + } + if x.LastUpdate != nil { + encoded, err := options.Marshal(x.LastUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x2a + } + if len(x.OracleContract) > 0 { + i -= len(x.OracleContract) + copy(dAtA[i:], x.OracleContract) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleContract))) + i-- + dAtA[i] = 0x22 + } + if x.MaxStaleness != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxStaleness)) + i-- + dAtA[i] = 0x18 + } + if len(x.OriginIdentifier) > 0 { + i -= len(x.OriginIdentifier) + copy(dAtA[i:], x.OriginIdentifier) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginIdentifier))) + i-- + dAtA[i] = 0x12 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*PositionOracleConfig) + 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: PositionOracleConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PositionOracleConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginIdentifier", 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.OriginIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + x.MaxStaleness = 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.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OracleContract", 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.OracleContract = 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 SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastUpdate == nil { + x.LastUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderType", wireType) + } + x.ProviderType = 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.ProviderType |= ProviderType(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, + } +} + +var _ protoreflect.Map = (*_CrossChainPositionSnapshot_6_map)(nil) + +type _CrossChainPositionSnapshot_6_map struct { + m *map[uint32]string +} + +func (x *_CrossChainPositionSnapshot_6_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_CrossChainPositionSnapshot_6_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfUint32(k)) + mapValue := protoreflect.ValueOfString(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_CrossChainPositionSnapshot_6_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.Uint() + concreteValue := (uint32)(keyUnwrapped) + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_CrossChainPositionSnapshot_6_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.Uint() + concreteKey := (uint32)(keyUnwrapped) + delete(*x.m, concreteKey) +} + +func (x *_CrossChainPositionSnapshot_6_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.Uint() + concreteKey := (uint32)(keyUnwrapped) + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfString(v) +} + +func (x *_CrossChainPositionSnapshot_6_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.Uint() + concreteKey := (uint32)(keyUnwrapped) + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_CrossChainPositionSnapshot_6_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_CrossChainPositionSnapshot_6_map) NewValue() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_CrossChainPositionSnapshot_6_map) IsValid() bool { + return x.m != nil +} + +var ( + md_CrossChainPositionSnapshot protoreflect.MessageDescriptor + fd_CrossChainPositionSnapshot_total_remote_value protoreflect.FieldDescriptor + fd_CrossChainPositionSnapshot_total_inflight_value protoreflect.FieldDescriptor + fd_CrossChainPositionSnapshot_active_positions protoreflect.FieldDescriptor + fd_CrossChainPositionSnapshot_stale_positions protoreflect.FieldDescriptor + fd_CrossChainPositionSnapshot_timestamp protoreflect.FieldDescriptor + fd_CrossChainPositionSnapshot_value_by_route protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_CrossChainPositionSnapshot = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("CrossChainPositionSnapshot") + fd_CrossChainPositionSnapshot_total_remote_value = md_CrossChainPositionSnapshot.Fields().ByName("total_remote_value") + fd_CrossChainPositionSnapshot_total_inflight_value = md_CrossChainPositionSnapshot.Fields().ByName("total_inflight_value") + fd_CrossChainPositionSnapshot_active_positions = md_CrossChainPositionSnapshot.Fields().ByName("active_positions") + fd_CrossChainPositionSnapshot_stale_positions = md_CrossChainPositionSnapshot.Fields().ByName("stale_positions") + fd_CrossChainPositionSnapshot_timestamp = md_CrossChainPositionSnapshot.Fields().ByName("timestamp") + fd_CrossChainPositionSnapshot_value_by_route = md_CrossChainPositionSnapshot.Fields().ByName("value_by_route") +} + +var _ protoreflect.Message = (*fastReflection_CrossChainPositionSnapshot)(nil) + +type fastReflection_CrossChainPositionSnapshot CrossChainPositionSnapshot + +func (x *CrossChainPositionSnapshot) ProtoReflect() protoreflect.Message { + return (*fastReflection_CrossChainPositionSnapshot)(x) +} + +func (x *CrossChainPositionSnapshot) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[8] + 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_CrossChainPositionSnapshot_messageType fastReflection_CrossChainPositionSnapshot_messageType +var _ protoreflect.MessageType = fastReflection_CrossChainPositionSnapshot_messageType{} + +type fastReflection_CrossChainPositionSnapshot_messageType struct{} + +func (x fastReflection_CrossChainPositionSnapshot_messageType) Zero() protoreflect.Message { + return (*fastReflection_CrossChainPositionSnapshot)(nil) +} +func (x fastReflection_CrossChainPositionSnapshot_messageType) New() protoreflect.Message { + return new(fastReflection_CrossChainPositionSnapshot) +} +func (x fastReflection_CrossChainPositionSnapshot_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainPositionSnapshot +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CrossChainPositionSnapshot) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainPositionSnapshot +} + +// 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_CrossChainPositionSnapshot) Type() protoreflect.MessageType { + return _fastReflection_CrossChainPositionSnapshot_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CrossChainPositionSnapshot) New() protoreflect.Message { + return new(fastReflection_CrossChainPositionSnapshot) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CrossChainPositionSnapshot) Interface() protoreflect.ProtoMessage { + return (*CrossChainPositionSnapshot)(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_CrossChainPositionSnapshot) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalRemoteValue != "" { + value := protoreflect.ValueOfString(x.TotalRemoteValue) + if !f(fd_CrossChainPositionSnapshot_total_remote_value, value) { + return + } + } + if x.TotalInflightValue != "" { + value := protoreflect.ValueOfString(x.TotalInflightValue) + if !f(fd_CrossChainPositionSnapshot_total_inflight_value, value) { + return + } + } + if x.ActivePositions != int64(0) { + value := protoreflect.ValueOfInt64(x.ActivePositions) + if !f(fd_CrossChainPositionSnapshot_active_positions, value) { + return + } + } + if x.StalePositions != int64(0) { + value := protoreflect.ValueOfInt64(x.StalePositions) + if !f(fd_CrossChainPositionSnapshot_stale_positions, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_CrossChainPositionSnapshot_timestamp, value) { + return + } + } + if len(x.ValueByRoute) != 0 { + value := protoreflect.ValueOfMap(&_CrossChainPositionSnapshot_6_map{m: &x.ValueByRoute}) + if !f(fd_CrossChainPositionSnapshot_value_by_route, 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_CrossChainPositionSnapshot) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_remote_value": + return x.TotalRemoteValue != "" + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_inflight_value": + return x.TotalInflightValue != "" + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.active_positions": + return x.ActivePositions != int64(0) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.stale_positions": + return x.StalePositions != int64(0) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route": + return len(x.ValueByRoute) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainPositionSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainPositionSnapshot 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_CrossChainPositionSnapshot) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_remote_value": + x.TotalRemoteValue = "" + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_inflight_value": + x.TotalInflightValue = "" + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.active_positions": + x.ActivePositions = int64(0) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.stale_positions": + x.StalePositions = int64(0) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route": + x.ValueByRoute = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainPositionSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainPositionSnapshot 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_CrossChainPositionSnapshot) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_remote_value": + value := x.TotalRemoteValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_inflight_value": + value := x.TotalInflightValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.active_positions": + value := x.ActivePositions + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.stale_positions": + value := x.StalePositions + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route": + if len(x.ValueByRoute) == 0 { + return protoreflect.ValueOfMap(&_CrossChainPositionSnapshot_6_map{}) + } + mapValue := &_CrossChainPositionSnapshot_6_map{m: &x.ValueByRoute} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainPositionSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainPositionSnapshot 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_CrossChainPositionSnapshot) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_remote_value": + x.TotalRemoteValue = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_inflight_value": + x.TotalInflightValue = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.active_positions": + x.ActivePositions = value.Int() + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.stale_positions": + x.StalePositions = value.Int() + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route": + mv := value.Map() + cmv := mv.(*_CrossChainPositionSnapshot_6_map) + x.ValueByRoute = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainPositionSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainPositionSnapshot 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_CrossChainPositionSnapshot) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route": + if x.ValueByRoute == nil { + x.ValueByRoute = make(map[uint32]string) + } + value := &_CrossChainPositionSnapshot_6_map{m: &x.ValueByRoute} + return protoreflect.ValueOfMap(value) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_remote_value": + panic(fmt.Errorf("field total_remote_value of message noble.dollar.vaults.v2.CrossChainPositionSnapshot is not mutable")) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_inflight_value": + panic(fmt.Errorf("field total_inflight_value of message noble.dollar.vaults.v2.CrossChainPositionSnapshot is not mutable")) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.active_positions": + panic(fmt.Errorf("field active_positions of message noble.dollar.vaults.v2.CrossChainPositionSnapshot is not mutable")) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.stale_positions": + panic(fmt.Errorf("field stale_positions of message noble.dollar.vaults.v2.CrossChainPositionSnapshot is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainPositionSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainPositionSnapshot 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_CrossChainPositionSnapshot) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_remote_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.total_inflight_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.active_positions": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.stale_positions": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route": + m := make(map[uint32]string) + return protoreflect.ValueOfMap(&_CrossChainPositionSnapshot_6_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainPositionSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainPositionSnapshot 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_CrossChainPositionSnapshot) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.CrossChainPositionSnapshot", 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_CrossChainPositionSnapshot) 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_CrossChainPositionSnapshot) 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_CrossChainPositionSnapshot) 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_CrossChainPositionSnapshot) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CrossChainPositionSnapshot) + 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.TotalRemoteValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalInflightValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ActivePositions != 0 { + n += 1 + runtime.Sov(uint64(x.ActivePositions)) + } + if x.StalePositions != 0 { + n += 1 + runtime.Sov(uint64(x.StalePositions)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.ValueByRoute) > 0 { + SiZeMaP := func(k uint32, v string) { + mapEntrySize := 1 + runtime.Sov(uint64(k)) + 1 + len(v) + runtime.Sov(uint64(len(v))) + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]uint32, 0, len(x.ValueByRoute)) + for k := range x.ValueByRoute { + sortme = append(sortme, k) + } + sort.Slice(sortme, func(i, j int) bool { + return sortme[i] < sortme[j] + }) + for _, k := range sortme { + v := x.ValueByRoute[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.ValueByRoute { + SiZeMaP(k, v) + } + } + } + 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().(*CrossChainPositionSnapshot) + 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 len(x.ValueByRoute) > 0 { + MaRsHaLmAp := func(k uint32, v string) (protoiface.MarshalOutput, error) { + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i = runtime.EncodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForValueByRoute := make([]uint32, 0, len(x.ValueByRoute)) + for k := range x.ValueByRoute { + keysForValueByRoute = append(keysForValueByRoute, uint32(k)) + } + sort.Slice(keysForValueByRoute, func(i, j int) bool { + return keysForValueByRoute[i] < keysForValueByRoute[j] + }) + for iNdEx := len(keysForValueByRoute) - 1; iNdEx >= 0; iNdEx-- { + v := x.ValueByRoute[uint32(keysForValueByRoute[iNdEx])] + out, err := MaRsHaLmAp(keysForValueByRoute[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.ValueByRoute { + v := x.ValueByRoute[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.StalePositions != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.StalePositions)) + i-- + dAtA[i] = 0x20 + } + if x.ActivePositions != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ActivePositions)) + i-- + dAtA[i] = 0x18 + } + if len(x.TotalInflightValue) > 0 { + i -= len(x.TotalInflightValue) + copy(dAtA[i:], x.TotalInflightValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalInflightValue))) + i-- + dAtA[i] = 0x12 + } + if len(x.TotalRemoteValue) > 0 { + i -= len(x.TotalRemoteValue) + copy(dAtA[i:], x.TotalRemoteValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalRemoteValue))) + 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().(*CrossChainPositionSnapshot) + 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: CrossChainPositionSnapshot: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CrossChainPositionSnapshot: 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 TotalRemoteValue", 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.TotalRemoteValue = 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 TotalInflightValue", 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.TotalInflightValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePositions", wireType) + } + x.ActivePositions = 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.ActivePositions |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StalePositions", wireType) + } + x.StalePositions = 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.StalePositions |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValueByRoute", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ValueByRoute == nil { + x.ValueByRoute = make(map[uint32]string) + } + var mapkey uint32 + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := 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) + if fieldNum == 1 { + 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++ + mapkey |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var stringLenmapvalue 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++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + 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) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.ValueByRoute[mapkey] = mapvalue + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_CrossChainConfig_5_list)(nil) + +type _CrossChainConfig_5_list struct { + list *[]string +} + +func (x *_CrossChainConfig_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_CrossChainConfig_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_CrossChainConfig_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_CrossChainConfig_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_CrossChainConfig_5_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message CrossChainConfig at list field AllowedChains as it is not of Message kind")) +} + +func (x *_CrossChainConfig_5_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_CrossChainConfig_5_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_CrossChainConfig_5_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_CrossChainConfig_9_list)(nil) + +type _CrossChainConfig_9_list struct { + list *[]ProviderType +} + +func (x *_CrossChainConfig_9_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_CrossChainConfig_9_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) +} + +func (x *_CrossChainConfig_9_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (ProviderType)(valueUnwrapped) + (*x.list)[i] = concreteValue +} + +func (x *_CrossChainConfig_9_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (ProviderType)(valueUnwrapped) + *x.list = append(*x.list, concreteValue) +} + +func (x *_CrossChainConfig_9_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message CrossChainConfig at list field SupportedProviders as it is not of Message kind")) +} + +func (x *_CrossChainConfig_9_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_CrossChainConfig_9_list) NewElement() protoreflect.Value { + v := 0 + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) +} + +func (x *_CrossChainConfig_9_list) IsValid() bool { + return x.list != nil +} + +var ( + md_CrossChainConfig protoreflect.MessageDescriptor + fd_CrossChainConfig_max_remote_exposure protoreflect.FieldDescriptor + fd_CrossChainConfig_default_timeout protoreflect.FieldDescriptor + fd_CrossChainConfig_update_frequency protoreflect.FieldDescriptor + fd_CrossChainConfig_max_remote_positions protoreflect.FieldDescriptor + fd_CrossChainConfig_allowed_chains protoreflect.FieldDescriptor + fd_CrossChainConfig_enabled protoreflect.FieldDescriptor + fd_CrossChainConfig_max_inflight_duration protoreflect.FieldDescriptor + fd_CrossChainConfig_max_inflight_value protoreflect.FieldDescriptor + fd_CrossChainConfig_supported_providers protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_CrossChainConfig = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("CrossChainConfig") + fd_CrossChainConfig_max_remote_exposure = md_CrossChainConfig.Fields().ByName("max_remote_exposure") + fd_CrossChainConfig_default_timeout = md_CrossChainConfig.Fields().ByName("default_timeout") + fd_CrossChainConfig_update_frequency = md_CrossChainConfig.Fields().ByName("update_frequency") + fd_CrossChainConfig_max_remote_positions = md_CrossChainConfig.Fields().ByName("max_remote_positions") + fd_CrossChainConfig_allowed_chains = md_CrossChainConfig.Fields().ByName("allowed_chains") + fd_CrossChainConfig_enabled = md_CrossChainConfig.Fields().ByName("enabled") + fd_CrossChainConfig_max_inflight_duration = md_CrossChainConfig.Fields().ByName("max_inflight_duration") + fd_CrossChainConfig_max_inflight_value = md_CrossChainConfig.Fields().ByName("max_inflight_value") + fd_CrossChainConfig_supported_providers = md_CrossChainConfig.Fields().ByName("supported_providers") +} + +var _ protoreflect.Message = (*fastReflection_CrossChainConfig)(nil) + +type fastReflection_CrossChainConfig CrossChainConfig + +func (x *CrossChainConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_CrossChainConfig)(x) +} + +func (x *CrossChainConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[9] + 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_CrossChainConfig_messageType fastReflection_CrossChainConfig_messageType +var _ protoreflect.MessageType = fastReflection_CrossChainConfig_messageType{} + +type fastReflection_CrossChainConfig_messageType struct{} + +func (x fastReflection_CrossChainConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_CrossChainConfig)(nil) +} +func (x fastReflection_CrossChainConfig_messageType) New() protoreflect.Message { + return new(fastReflection_CrossChainConfig) +} +func (x fastReflection_CrossChainConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CrossChainConfig) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainConfig +} + +// 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_CrossChainConfig) Type() protoreflect.MessageType { + return _fastReflection_CrossChainConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CrossChainConfig) New() protoreflect.Message { + return new(fastReflection_CrossChainConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CrossChainConfig) Interface() protoreflect.ProtoMessage { + return (*CrossChainConfig)(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_CrossChainConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MaxRemoteExposure != int32(0) { + value := protoreflect.ValueOfInt32(x.MaxRemoteExposure) + if !f(fd_CrossChainConfig_max_remote_exposure, value) { + return + } + } + if x.DefaultTimeout != int64(0) { + value := protoreflect.ValueOfInt64(x.DefaultTimeout) + if !f(fd_CrossChainConfig_default_timeout, value) { + return + } + } + if x.UpdateFrequency != int64(0) { + value := protoreflect.ValueOfInt64(x.UpdateFrequency) + if !f(fd_CrossChainConfig_update_frequency, value) { + return + } + } + if x.MaxRemotePositions != uint32(0) { + value := protoreflect.ValueOfUint32(x.MaxRemotePositions) + if !f(fd_CrossChainConfig_max_remote_positions, value) { + return + } + } + if len(x.AllowedChains) != 0 { + value := protoreflect.ValueOfList(&_CrossChainConfig_5_list{list: &x.AllowedChains}) + if !f(fd_CrossChainConfig_allowed_chains, value) { + return + } + } + if x.Enabled != false { + value := protoreflect.ValueOfBool(x.Enabled) + if !f(fd_CrossChainConfig_enabled, value) { + return + } + } + if x.MaxInflightDuration != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxInflightDuration) + if !f(fd_CrossChainConfig_max_inflight_duration, value) { + return + } + } + if x.MaxInflightValue != "" { + value := protoreflect.ValueOfString(x.MaxInflightValue) + if !f(fd_CrossChainConfig_max_inflight_value, value) { + return + } + } + if len(x.SupportedProviders) != 0 { + value := protoreflect.ValueOfList(&_CrossChainConfig_9_list{list: &x.SupportedProviders}) + if !f(fd_CrossChainConfig_supported_providers, 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_CrossChainConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_exposure": + return x.MaxRemoteExposure != int32(0) + case "noble.dollar.vaults.v2.CrossChainConfig.default_timeout": + return x.DefaultTimeout != int64(0) + case "noble.dollar.vaults.v2.CrossChainConfig.update_frequency": + return x.UpdateFrequency != int64(0) + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_positions": + return x.MaxRemotePositions != uint32(0) + case "noble.dollar.vaults.v2.CrossChainConfig.allowed_chains": + return len(x.AllowedChains) != 0 + case "noble.dollar.vaults.v2.CrossChainConfig.enabled": + return x.Enabled != false + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_duration": + return x.MaxInflightDuration != int64(0) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_value": + return x.MaxInflightValue != "" + case "noble.dollar.vaults.v2.CrossChainConfig.supported_providers": + return len(x.SupportedProviders) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainConfig 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_CrossChainConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_exposure": + x.MaxRemoteExposure = int32(0) + case "noble.dollar.vaults.v2.CrossChainConfig.default_timeout": + x.DefaultTimeout = int64(0) + case "noble.dollar.vaults.v2.CrossChainConfig.update_frequency": + x.UpdateFrequency = int64(0) + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_positions": + x.MaxRemotePositions = uint32(0) + case "noble.dollar.vaults.v2.CrossChainConfig.allowed_chains": + x.AllowedChains = nil + case "noble.dollar.vaults.v2.CrossChainConfig.enabled": + x.Enabled = false + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_duration": + x.MaxInflightDuration = int64(0) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_value": + x.MaxInflightValue = "" + case "noble.dollar.vaults.v2.CrossChainConfig.supported_providers": + x.SupportedProviders = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainConfig 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_CrossChainConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_exposure": + value := x.MaxRemoteExposure + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.CrossChainConfig.default_timeout": + value := x.DefaultTimeout + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.CrossChainConfig.update_frequency": + value := x.UpdateFrequency + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_positions": + value := x.MaxRemotePositions + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.CrossChainConfig.allowed_chains": + if len(x.AllowedChains) == 0 { + return protoreflect.ValueOfList(&_CrossChainConfig_5_list{}) + } + listValue := &_CrossChainConfig_5_list{list: &x.AllowedChains} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.CrossChainConfig.enabled": + value := x.Enabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_duration": + value := x.MaxInflightDuration + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_value": + value := x.MaxInflightValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainConfig.supported_providers": + if len(x.SupportedProviders) == 0 { + return protoreflect.ValueOfList(&_CrossChainConfig_9_list{}) + } + listValue := &_CrossChainConfig_9_list{list: &x.SupportedProviders} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainConfig 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_CrossChainConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_exposure": + x.MaxRemoteExposure = int32(value.Int()) + case "noble.dollar.vaults.v2.CrossChainConfig.default_timeout": + x.DefaultTimeout = value.Int() + case "noble.dollar.vaults.v2.CrossChainConfig.update_frequency": + x.UpdateFrequency = value.Int() + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_positions": + x.MaxRemotePositions = uint32(value.Uint()) + case "noble.dollar.vaults.v2.CrossChainConfig.allowed_chains": + lv := value.List() + clv := lv.(*_CrossChainConfig_5_list) + x.AllowedChains = *clv.list + case "noble.dollar.vaults.v2.CrossChainConfig.enabled": + x.Enabled = value.Bool() + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_duration": + x.MaxInflightDuration = value.Int() + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_value": + x.MaxInflightValue = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainConfig.supported_providers": + lv := value.List() + clv := lv.(*_CrossChainConfig_9_list) + x.SupportedProviders = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainConfig 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_CrossChainConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainConfig.allowed_chains": + if x.AllowedChains == nil { + x.AllowedChains = []string{} + } + value := &_CrossChainConfig_5_list{list: &x.AllowedChains} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.CrossChainConfig.supported_providers": + if x.SupportedProviders == nil { + x.SupportedProviders = []ProviderType{} + } + value := &_CrossChainConfig_9_list{list: &x.SupportedProviders} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_exposure": + panic(fmt.Errorf("field max_remote_exposure of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + case "noble.dollar.vaults.v2.CrossChainConfig.default_timeout": + panic(fmt.Errorf("field default_timeout of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + case "noble.dollar.vaults.v2.CrossChainConfig.update_frequency": + panic(fmt.Errorf("field update_frequency of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_positions": + panic(fmt.Errorf("field max_remote_positions of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + case "noble.dollar.vaults.v2.CrossChainConfig.enabled": + panic(fmt.Errorf("field enabled of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_duration": + panic(fmt.Errorf("field max_inflight_duration of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_value": + panic(fmt.Errorf("field max_inflight_value of message noble.dollar.vaults.v2.CrossChainConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainConfig 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_CrossChainConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_exposure": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.CrossChainConfig.default_timeout": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.CrossChainConfig.update_frequency": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.CrossChainConfig.max_remote_positions": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.CrossChainConfig.allowed_chains": + list := []string{} + return protoreflect.ValueOfList(&_CrossChainConfig_5_list{list: &list}) + case "noble.dollar.vaults.v2.CrossChainConfig.enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_duration": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.CrossChainConfig.max_inflight_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainConfig.supported_providers": + list := []ProviderType{} + return protoreflect.ValueOfList(&_CrossChainConfig_9_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainConfig 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_CrossChainConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.CrossChainConfig", 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_CrossChainConfig) 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_CrossChainConfig) 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_CrossChainConfig) 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_CrossChainConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CrossChainConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.MaxRemoteExposure != 0 { + n += 1 + runtime.Sov(uint64(x.MaxRemoteExposure)) + } + if x.DefaultTimeout != 0 { + n += 1 + runtime.Sov(uint64(x.DefaultTimeout)) + } + if x.UpdateFrequency != 0 { + n += 1 + runtime.Sov(uint64(x.UpdateFrequency)) + } + if x.MaxRemotePositions != 0 { + n += 1 + runtime.Sov(uint64(x.MaxRemotePositions)) + } + if len(x.AllowedChains) > 0 { + for _, s := range x.AllowedChains { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Enabled { + n += 2 + } + if x.MaxInflightDuration != 0 { + n += 1 + runtime.Sov(uint64(x.MaxInflightDuration)) + } + l = len(x.MaxInflightValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.SupportedProviders) > 0 { + l = 0 + for _, e := range x.SupportedProviders { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + 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().(*CrossChainConfig) + 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 len(x.SupportedProviders) > 0 { + var pksize2 int + for _, num := range x.SupportedProviders { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range x.SupportedProviders { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x4a + } + if len(x.MaxInflightValue) > 0 { + i -= len(x.MaxInflightValue) + copy(dAtA[i:], x.MaxInflightValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxInflightValue))) + i-- + dAtA[i] = 0x42 + } + if x.MaxInflightDuration != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxInflightDuration)) + i-- + dAtA[i] = 0x38 + } + if x.Enabled { + i-- + if x.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(x.AllowedChains) > 0 { + for iNdEx := len(x.AllowedChains) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.AllowedChains[iNdEx]) + copy(dAtA[i:], x.AllowedChains[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AllowedChains[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if x.MaxRemotePositions != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxRemotePositions)) + i-- + dAtA[i] = 0x20 + } + if x.UpdateFrequency != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.UpdateFrequency)) + i-- + dAtA[i] = 0x18 + } + if x.DefaultTimeout != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DefaultTimeout)) + i-- + dAtA[i] = 0x10 + } + if x.MaxRemoteExposure != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxRemoteExposure)) + i-- + dAtA[i] = 0x8 + } + 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().(*CrossChainConfig) + 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: CrossChainConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CrossChainConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxRemoteExposure", wireType) + } + x.MaxRemoteExposure = 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.MaxRemoteExposure |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultTimeout", wireType) + } + x.DefaultTimeout = 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.DefaultTimeout |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateFrequency", wireType) + } + x.UpdateFrequency = 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.UpdateFrequency |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxRemotePositions", wireType) + } + x.MaxRemotePositions = 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.MaxRemotePositions |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllowedChains", 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.AllowedChains = append(x.AllowedChains, 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 Enabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Enabled = bool(v != 0) + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxInflightDuration", wireType) + } + x.MaxInflightDuration = 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.MaxInflightDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxInflightValue", 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.MaxInflightValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType == 0 { + var v ProviderType + 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++ + v |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.SupportedProviders = append(x.SupportedProviders, v) + } else if wireType == 2 { + var packedLen int + 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + 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 + } + var elementCount int + if elementCount != 0 && len(x.SupportedProviders) == 0 { + x.SupportedProviders = make([]ProviderType, 0, elementCount) + } + for iNdEx < postIndex { + var v ProviderType + 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++ + v |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.SupportedProviders = append(x.SupportedProviders, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SupportedProviders", wireType) + } + 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, + } +} + +var ( + md_StaleInflightAlert protoreflect.MessageDescriptor + fd_StaleInflightAlert_route_id protoreflect.FieldDescriptor + fd_StaleInflightAlert_transaction_id protoreflect.FieldDescriptor + fd_StaleInflightAlert_hours_overdue protoreflect.FieldDescriptor + fd_StaleInflightAlert_timestamp protoreflect.FieldDescriptor + fd_StaleInflightAlert_amount protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_cross_chain_proto_init() + md_StaleInflightAlert = File_noble_dollar_vaults_v2_cross_chain_proto.Messages().ByName("StaleInflightAlert") + fd_StaleInflightAlert_route_id = md_StaleInflightAlert.Fields().ByName("route_id") + fd_StaleInflightAlert_transaction_id = md_StaleInflightAlert.Fields().ByName("transaction_id") + fd_StaleInflightAlert_hours_overdue = md_StaleInflightAlert.Fields().ByName("hours_overdue") + fd_StaleInflightAlert_timestamp = md_StaleInflightAlert.Fields().ByName("timestamp") + fd_StaleInflightAlert_amount = md_StaleInflightAlert.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_StaleInflightAlert)(nil) + +type fastReflection_StaleInflightAlert StaleInflightAlert + +func (x *StaleInflightAlert) ProtoReflect() protoreflect.Message { + return (*fastReflection_StaleInflightAlert)(x) +} + +func (x *StaleInflightAlert) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[10] + 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_StaleInflightAlert_messageType fastReflection_StaleInflightAlert_messageType +var _ protoreflect.MessageType = fastReflection_StaleInflightAlert_messageType{} + +type fastReflection_StaleInflightAlert_messageType struct{} + +func (x fastReflection_StaleInflightAlert_messageType) Zero() protoreflect.Message { + return (*fastReflection_StaleInflightAlert)(nil) +} +func (x fastReflection_StaleInflightAlert_messageType) New() protoreflect.Message { + return new(fastReflection_StaleInflightAlert) +} +func (x fastReflection_StaleInflightAlert_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StaleInflightAlert +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StaleInflightAlert) Descriptor() protoreflect.MessageDescriptor { + return md_StaleInflightAlert +} + +// 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_StaleInflightAlert) Type() protoreflect.MessageType { + return _fastReflection_StaleInflightAlert_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StaleInflightAlert) New() protoreflect.Message { + return new(fastReflection_StaleInflightAlert) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StaleInflightAlert) Interface() protoreflect.ProtoMessage { + return (*StaleInflightAlert)(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_StaleInflightAlert) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_StaleInflightAlert_route_id, value) { + return + } + } + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_StaleInflightAlert_transaction_id, value) { + return + } + } + if x.HoursOverdue != float64(0) || math.Signbit(x.HoursOverdue) { + value := protoreflect.ValueOfFloat64(x.HoursOverdue) + if !f(fd_StaleInflightAlert_hours_overdue, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_StaleInflightAlert_timestamp, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_StaleInflightAlert_amount, 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_StaleInflightAlert) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlert.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.StaleInflightAlert.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.StaleInflightAlert.hours_overdue": + return x.HoursOverdue != float64(0) || math.Signbit(x.HoursOverdue) + case "noble.dollar.vaults.v2.StaleInflightAlert.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.StaleInflightAlert.amount": + return x.Amount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlert")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlert 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_StaleInflightAlert) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlert.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.StaleInflightAlert.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.StaleInflightAlert.hours_overdue": + x.HoursOverdue = float64(0) + case "noble.dollar.vaults.v2.StaleInflightAlert.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.StaleInflightAlert.amount": + x.Amount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlert")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlert 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_StaleInflightAlert) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlert.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.StaleInflightAlert.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightAlert.hours_overdue": + value := x.HoursOverdue + return protoreflect.ValueOfFloat64(value) + case "noble.dollar.vaults.v2.StaleInflightAlert.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlert.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlert")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlert 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_StaleInflightAlert) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlert.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.StaleInflightAlert.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightAlert.hours_overdue": + x.HoursOverdue = value.Float() + case "noble.dollar.vaults.v2.StaleInflightAlert.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.StaleInflightAlert.amount": + x.Amount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlert")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlert 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_StaleInflightAlert) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlert.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlert.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.StaleInflightAlert is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightAlert.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.StaleInflightAlert is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightAlert.hours_overdue": + panic(fmt.Errorf("field hours_overdue of message noble.dollar.vaults.v2.StaleInflightAlert is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightAlert.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.StaleInflightAlert is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlert")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlert 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_StaleInflightAlert) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlert.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.StaleInflightAlert.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightAlert.hours_overdue": + return protoreflect.ValueOfFloat64(float64(0)) + case "noble.dollar.vaults.v2.StaleInflightAlert.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlert.amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlert")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlert 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_StaleInflightAlert) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.StaleInflightAlert", 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_StaleInflightAlert) 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_StaleInflightAlert) 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_StaleInflightAlert) 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_StaleInflightAlert) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StaleInflightAlert) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.HoursOverdue != 0 || math.Signbit(x.HoursOverdue) { + n += 9 + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*StaleInflightAlert) + 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 len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x2a + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.HoursOverdue != 0 || math.Signbit(x.HoursOverdue) { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(x.HoursOverdue)))) + i-- + dAtA[i] = 0x19 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*StaleInflightAlert) + 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: StaleInflightAlert: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StaleInflightAlert: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 1 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HoursOverdue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + x.HoursOverdue = float64(math.Float64frombits(v)) + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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: noble/dollar/vaults/v2/cross_chain.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) +) + +// RemotePositionStatus represents the status of a remote position +type RemotePositionStatus int32 + +const ( + // Position is active and being tracked + RemotePositionStatus_REMOTE_POSITION_ACTIVE RemotePositionStatus = 0 + // Position is being withdrawn from + RemotePositionStatus_REMOTE_POSITION_WITHDRAWING RemotePositionStatus = 1 + // Position has been closed + RemotePositionStatus_REMOTE_POSITION_CLOSED RemotePositionStatus = 2 + // Position is in error state + RemotePositionStatus_REMOTE_POSITION_ERROR RemotePositionStatus = 3 +) + +// Enum value maps for RemotePositionStatus. +var ( + RemotePositionStatus_name = map[int32]string{ + 0: "REMOTE_POSITION_ACTIVE", + 1: "REMOTE_POSITION_WITHDRAWING", + 2: "REMOTE_POSITION_CLOSED", + 3: "REMOTE_POSITION_ERROR", + } + RemotePositionStatus_value = map[string]int32{ + "REMOTE_POSITION_ACTIVE": 0, + "REMOTE_POSITION_WITHDRAWING": 1, + "REMOTE_POSITION_CLOSED": 2, + "REMOTE_POSITION_ERROR": 3, + } +) + +func (x RemotePositionStatus) Enum() *RemotePositionStatus { + p := new(RemotePositionStatus) + *p = x + return p +} + +func (x RemotePositionStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RemotePositionStatus) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[0].Descriptor() +} + +func (RemotePositionStatus) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[0] +} + +func (x RemotePositionStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RemotePositionStatus.Descriptor instead. +func (RemotePositionStatus) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{0} +} + +// OperationType represents the type of cross-chain operation +type OperationType int32 + +const ( + // Deposit operation + OperationType_OPERATION_TYPE_DEPOSIT OperationType = 0 + // Withdrawal operation + OperationType_OPERATION_TYPE_WITHDRAWAL OperationType = 1 + // Rebalance operation + OperationType_OPERATION_TYPE_REBALANCE OperationType = 2 +) + +// Enum value maps for OperationType. +var ( + OperationType_name = map[int32]string{ + 0: "OPERATION_TYPE_DEPOSIT", + 1: "OPERATION_TYPE_WITHDRAWAL", + 2: "OPERATION_TYPE_REBALANCE", + } + OperationType_value = map[string]int32{ + "OPERATION_TYPE_DEPOSIT": 0, + "OPERATION_TYPE_WITHDRAWAL": 1, + "OPERATION_TYPE_REBALANCE": 2, + } +) + +func (x OperationType) Enum() *OperationType { + p := new(OperationType) + *p = x + return p +} + +func (x OperationType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OperationType) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[1].Descriptor() +} + +func (OperationType) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[1] +} + +func (x OperationType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OperationType.Descriptor instead. +func (OperationType) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{1} +} + +// InflightType defines the type of inflight funds +type InflightType int32 + +const ( + // USDN being deployed to a remote position + InflightType_INFLIGHT_DEPOSIT_TO_POSITION InflightType = 0 + // USDN returning from a remote position + InflightType_INFLIGHT_WITHDRAWAL_FROM_POSITION InflightType = 1 + // USDN moving between positions (via Noble) + InflightType_INFLIGHT_REBALANCE_BETWEEN_POSITIONS InflightType = 2 + // USDN awaiting deployment to positions + InflightType_INFLIGHT_PENDING_DEPLOYMENT InflightType = 3 + // USDN awaiting distribution to withdrawal queue + InflightType_INFLIGHT_PENDING_WITHDRAWAL_DISTRIBUTION InflightType = 4 +) + +// Enum value maps for InflightType. +var ( + InflightType_name = map[int32]string{ + 0: "INFLIGHT_DEPOSIT_TO_POSITION", + 1: "INFLIGHT_WITHDRAWAL_FROM_POSITION", + 2: "INFLIGHT_REBALANCE_BETWEEN_POSITIONS", + 3: "INFLIGHT_PENDING_DEPLOYMENT", + 4: "INFLIGHT_PENDING_WITHDRAWAL_DISTRIBUTION", + } + InflightType_value = map[string]int32{ + "INFLIGHT_DEPOSIT_TO_POSITION": 0, + "INFLIGHT_WITHDRAWAL_FROM_POSITION": 1, + "INFLIGHT_REBALANCE_BETWEEN_POSITIONS": 2, + "INFLIGHT_PENDING_DEPLOYMENT": 3, + "INFLIGHT_PENDING_WITHDRAWAL_DISTRIBUTION": 4, + } +) + +func (x InflightType) Enum() *InflightType { + p := new(InflightType) + *p = x + return p +} + +func (x InflightType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InflightType) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[2].Descriptor() +} + +func (InflightType) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[2] +} + +func (x InflightType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InflightType.Descriptor instead. +func (InflightType) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{2} +} + +// InflightStatus represents the status of inflight funds +type InflightStatus int32 + +const ( + // Transaction is pending + InflightStatus_INFLIGHT_PENDING InflightStatus = 0 + // Transaction is confirmed by provider + InflightStatus_INFLIGHT_CONFIRMED InflightStatus = 1 + // Transaction completed successfully + InflightStatus_INFLIGHT_COMPLETED InflightStatus = 2 + // Transaction failed + InflightStatus_INFLIGHT_FAILED InflightStatus = 3 + // Transaction timed out + InflightStatus_INFLIGHT_TIMEOUT InflightStatus = 4 +) + +// Enum value maps for InflightStatus. +var ( + InflightStatus_name = map[int32]string{ + 0: "INFLIGHT_PENDING", + 1: "INFLIGHT_CONFIRMED", + 2: "INFLIGHT_COMPLETED", + 3: "INFLIGHT_FAILED", + 4: "INFLIGHT_TIMEOUT", + } + InflightStatus_value = map[string]int32{ + "INFLIGHT_PENDING": 0, + "INFLIGHT_CONFIRMED": 1, + "INFLIGHT_COMPLETED": 2, + "INFLIGHT_FAILED": 3, + "INFLIGHT_TIMEOUT": 4, + } +) + +func (x InflightStatus) Enum() *InflightStatus { + p := new(InflightStatus) + *p = x + return p +} + +func (x InflightStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InflightStatus) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[3].Descriptor() +} + +func (InflightStatus) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[3] +} + +func (x InflightStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InflightStatus.Descriptor instead. +func (InflightStatus) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{3} +} + +// OracleUpdateStatus represents the status of an oracle update +type OracleUpdateStatus int32 + +const ( + // Update has been validated + OracleUpdateStatus_ORACLE_UPDATE_VALIDATED OracleUpdateStatus = 0 + // Update has been applied to position + OracleUpdateStatus_ORACLE_UPDATE_APPLIED OracleUpdateStatus = 1 + // Update was rejected (stale, invalid, etc.) + OracleUpdateStatus_ORACLE_UPDATE_REJECTED OracleUpdateStatus = 2 +) + +// Enum value maps for OracleUpdateStatus. +var ( + OracleUpdateStatus_name = map[int32]string{ + 0: "ORACLE_UPDATE_VALIDATED", + 1: "ORACLE_UPDATE_APPLIED", + 2: "ORACLE_UPDATE_REJECTED", + } + OracleUpdateStatus_value = map[string]int32{ + "ORACLE_UPDATE_VALIDATED": 0, + "ORACLE_UPDATE_APPLIED": 1, + "ORACLE_UPDATE_REJECTED": 2, + } +) + +func (x OracleUpdateStatus) Enum() *OracleUpdateStatus { + p := new(OracleUpdateStatus) + *p = x + return p +} + +func (x OracleUpdateStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OracleUpdateStatus) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[4].Descriptor() +} + +func (OracleUpdateStatus) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[4] +} + +func (x OracleUpdateStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OracleUpdateStatus.Descriptor instead. +func (OracleUpdateStatus) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{4} +} + +// ProviderType represents the cross-chain provider type +type ProviderType int32 + +const ( + // Hyperlane provider + ProviderType_PROVIDER_TYPE_HYPERLANE ProviderType = 0 + // IBC provider + ProviderType_PROVIDER_TYPE_IBC ProviderType = 1 +) + +// Enum value maps for ProviderType. +var ( + ProviderType_name = map[int32]string{ + 0: "PROVIDER_TYPE_HYPERLANE", + 1: "PROVIDER_TYPE_IBC", + } + ProviderType_value = map[string]int32{ + "PROVIDER_TYPE_HYPERLANE": 0, + "PROVIDER_TYPE_IBC": 1, + } +) + +func (x ProviderType) Enum() *ProviderType { + p := new(ProviderType) + *p = x + return p +} + +func (x ProviderType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProviderType) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[5].Descriptor() +} + +func (ProviderType) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes[5] +} + +func (x ProviderType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProviderType.Descriptor instead. +func (ProviderType) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{5} +} + +// CrossChainRoute defines a route for cross-chain operations +// Currently supports Hyperlane, with potential for future IBC support +type CrossChainRoute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // HypToken + HyptokenId string `protobuf:"bytes,1,opt,name=hyptoken_id,json=hyptokenId,proto3" json:"hyptoken_id,omitempty"` + // Reciever chain hook; + ReceiverChainHook string `protobuf:"bytes,2,opt,name=receiver_chain_hook,json=receiverChainHook,proto3" json:"receiver_chain_hook,omitempty"` + // Vault + RemotePositionAddress string `protobuf:"bytes,3,opt,name=remote_position_address,json=remotePositionAddress,proto3" json:"remote_position_address,omitempty"` + // Maximum value allowed inflight on this route + MaxInflightValue string `protobuf:"bytes,4,opt,name=max_inflight_value,json=maxInflightValue,proto3" json:"max_inflight_value,omitempty"` +} + +func (x *CrossChainRoute) Reset() { + *x = CrossChainRoute{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CrossChainRoute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CrossChainRoute) ProtoMessage() {} + +// Deprecated: Use CrossChainRoute.ProtoReflect.Descriptor instead. +func (*CrossChainRoute) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{0} +} + +func (x *CrossChainRoute) GetHyptokenId() string { + if x != nil { + return x.HyptokenId + } + return "" +} + +func (x *CrossChainRoute) GetReceiverChainHook() string { + if x != nil { + return x.ReceiverChainHook + } + return "" +} + +func (x *CrossChainRoute) GetRemotePositionAddress() string { + if x != nil { + return x.RemotePositionAddress + } + return "" +} + +func (x *CrossChainRoute) GetMaxInflightValue() string { + if x != nil { + return x.MaxInflightValue + } + return "" +} + +// RemotePosition represents a position in an ERC-4626 compatible vault on another chain +type RemotePosition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // HypToken + HyptokenId string `protobuf:"bytes,1,opt,name=hyptoken_id,json=hyptokenId,proto3" json:"hyptoken_id,omitempty"` + // Address of the ERC-4626 compatible vault + VaultAddress []byte `protobuf:"bytes,2,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + // Number of vault shares held + SharesHeld string `protobuf:"bytes,3,opt,name=shares_held,json=sharesHeld,proto3" json:"shares_held,omitempty"` + // Principal amount initially deposited (in USDN) + Principal string `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"` + // Current share price from oracle + SharePrice string `protobuf:"bytes,5,opt,name=share_price,json=sharePrice,proto3" json:"share_price,omitempty"` + // Total value of position (shares * price) + TotalValue string `protobuf:"bytes,6,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` + // Last oracle update timestamp + LastUpdate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` + // Position status + Status RemotePositionStatus `protobuf:"varint,8,opt,name=status,proto3,enum=noble.dollar.vaults.v2.RemotePositionStatus" json:"status,omitempty"` + // Oracle configuration for this position + OracleAddress string `protobuf:"bytes,9,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` + // Maximum staleness for oracle data (seconds) + MaxStaleness int64 `protobuf:"varint,10,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` +} + +func (x *RemotePosition) Reset() { + *x = RemotePosition{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemotePosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemotePosition) ProtoMessage() {} + +// Deprecated: Use RemotePosition.ProtoReflect.Descriptor instead. +func (*RemotePosition) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{1} +} + +func (x *RemotePosition) GetHyptokenId() string { + if x != nil { + return x.HyptokenId + } + return "" +} + +func (x *RemotePosition) GetVaultAddress() []byte { + if x != nil { + return x.VaultAddress + } + return nil +} + +func (x *RemotePosition) GetSharesHeld() string { + if x != nil { + return x.SharesHeld + } + return "" +} + +func (x *RemotePosition) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +func (x *RemotePosition) GetSharePrice() string { + if x != nil { + return x.SharePrice + } + return "" +} + +func (x *RemotePosition) GetTotalValue() string { + if x != nil { + return x.TotalValue + } + return "" +} + +func (x *RemotePosition) GetLastUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdate + } + return nil +} + +func (x *RemotePosition) GetStatus() RemotePositionStatus { + if x != nil { + return x.Status + } + return RemotePositionStatus_REMOTE_POSITION_ACTIVE +} + +func (x *RemotePosition) GetOracleAddress() string { + if x != nil { + return x.OracleAddress + } + return "" +} + +func (x *RemotePosition) GetMaxStaleness() int64 { + if x != nil { + return x.MaxStaleness + } + return 0 +} + +// InflightFund represents funds in transit between Noble and remote positions +type InflightFund struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier for this inflight transaction + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Transaction ID (Hyperlane message ID or IBC packet sequence) + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Amount in USDN (always USDN, never shares) + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + // Origin information + // + // Types that are assignable to Origin: + // + // *InflightFund_NobleOrigin + // *InflightFund_RemoteOrigin + Origin isInflightFund_Origin `protobuf_oneof:"origin"` + // Destination information + // + // Types that are assignable to Destination: + // + // *InflightFund_NobleDestination + // *InflightFund_RemoteDestination + Destination isInflightFund_Destination `protobuf_oneof:"destination"` + // When the operation was initiated + InitiatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=initiated_at,json=initiatedAt,proto3" json:"initiated_at,omitempty"` + // Expected completion time + ExpectedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expected_at,json=expectedAt,proto3" json:"expected_at,omitempty"` + // Current status + Status InflightStatus `protobuf:"varint,10,opt,name=status,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"status,omitempty"` + // Value at initiation (for NAV calculation) + ValueAtInitiation string `protobuf:"bytes,11,opt,name=value_at_initiation,json=valueAtInitiation,proto3" json:"value_at_initiation,omitempty"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,12,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (x *InflightFund) Reset() { + *x = InflightFund{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InflightFund) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InflightFund) ProtoMessage() {} + +// Deprecated: Use InflightFund.ProtoReflect.Descriptor instead. +func (*InflightFund) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{2} +} + +func (x *InflightFund) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *InflightFund) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *InflightFund) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *InflightFund) GetOrigin() isInflightFund_Origin { + if x != nil { + return x.Origin + } + return nil +} + +func (x *InflightFund) GetNobleOrigin() *NobleEndpoint { + if x, ok := x.GetOrigin().(*InflightFund_NobleOrigin); ok { + return x.NobleOrigin + } + return nil +} + +func (x *InflightFund) GetRemoteOrigin() *RemotePosition { + if x, ok := x.GetOrigin().(*InflightFund_RemoteOrigin); ok { + return x.RemoteOrigin + } + return nil +} + +func (x *InflightFund) GetDestination() isInflightFund_Destination { + if x != nil { + return x.Destination + } + return nil +} + +func (x *InflightFund) GetNobleDestination() *NobleEndpoint { + if x, ok := x.GetDestination().(*InflightFund_NobleDestination); ok { + return x.NobleDestination + } + return nil +} + +func (x *InflightFund) GetRemoteDestination() *RemotePosition { + if x, ok := x.GetDestination().(*InflightFund_RemoteDestination); ok { + return x.RemoteDestination + } + return nil +} + +func (x *InflightFund) GetInitiatedAt() *timestamppb.Timestamp { + if x != nil { + return x.InitiatedAt + } + return nil +} + +func (x *InflightFund) GetExpectedAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedAt + } + return nil +} + +func (x *InflightFund) GetStatus() InflightStatus { + if x != nil { + return x.Status + } + return InflightStatus_INFLIGHT_PENDING +} + +func (x *InflightFund) GetValueAtInitiation() string { + if x != nil { + return x.ValueAtInitiation + } + return "" +} + +func (x *InflightFund) GetProviderTracking() *ProviderTrackingInfo { + if x != nil { + return x.ProviderTracking + } + return nil +} + +type isInflightFund_Origin interface { + isInflightFund_Origin() +} + +type InflightFund_NobleOrigin struct { + // Origin is Noble + NobleOrigin *NobleEndpoint `protobuf:"bytes,4,opt,name=noble_origin,json=nobleOrigin,proto3,oneof"` +} + +type InflightFund_RemoteOrigin struct { + // Origin is a remote position (withdrawing USDN from it) + RemoteOrigin *RemotePosition `protobuf:"bytes,5,opt,name=remote_origin,json=remoteOrigin,proto3,oneof"` +} + +func (*InflightFund_NobleOrigin) isInflightFund_Origin() {} + +func (*InflightFund_RemoteOrigin) isInflightFund_Origin() {} + +type isInflightFund_Destination interface { + isInflightFund_Destination() +} + +type InflightFund_NobleDestination struct { + // Destination is Noble + NobleDestination *NobleEndpoint `protobuf:"bytes,6,opt,name=noble_destination,json=nobleDestination,proto3,oneof"` +} + +type InflightFund_RemoteDestination struct { + // Destination is a remote position (depositing USDN to it) + RemoteDestination *RemotePosition `protobuf:"bytes,7,opt,name=remote_destination,json=remoteDestination,proto3,oneof"` +} + +func (*InflightFund_NobleDestination) isInflightFund_Destination() {} + +func (*InflightFund_RemoteDestination) isInflightFund_Destination() {} + +// NobleEndpoint represents Noble as an origin or destination +type NobleEndpoint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Purpose/context of the operation (deposit, withdrawal, rebalance) + OperationType OperationType `protobuf:"varint,1,opt,name=operation_type,json=operationType,proto3,enum=noble.dollar.vaults.v2.OperationType" json:"operation_type,omitempty"` +} + +func (x *NobleEndpoint) Reset() { + *x = NobleEndpoint{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NobleEndpoint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NobleEndpoint) ProtoMessage() {} + +// Deprecated: Use NobleEndpoint.ProtoReflect.Descriptor instead. +func (*NobleEndpoint) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{3} +} + +func (x *NobleEndpoint) GetOperationType() OperationType { + if x != nil { + return x.OperationType + } + return OperationType_OPERATION_TYPE_DEPOSIT +} + +// ProviderTrackingInfo contains provider-specific tracking data +type ProviderTrackingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to TrackingInfo: + // + // *ProviderTrackingInfo_HyperlaneTracking + TrackingInfo isProviderTrackingInfo_TrackingInfo `protobuf_oneof:"tracking_info"` +} + +func (x *ProviderTrackingInfo) Reset() { + *x = ProviderTrackingInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderTrackingInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderTrackingInfo) ProtoMessage() {} + +// Deprecated: Use ProviderTrackingInfo.ProtoReflect.Descriptor instead. +func (*ProviderTrackingInfo) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{4} +} + +func (x *ProviderTrackingInfo) GetTrackingInfo() isProviderTrackingInfo_TrackingInfo { + if x != nil { + return x.TrackingInfo + } + return nil +} + +func (x *ProviderTrackingInfo) GetHyperlaneTracking() *HyperlaneTrackingInfo { + if x, ok := x.GetTrackingInfo().(*ProviderTrackingInfo_HyperlaneTracking); ok { + return x.HyperlaneTracking + } + return nil +} + +type isProviderTrackingInfo_TrackingInfo interface { + isProviderTrackingInfo_TrackingInfo() +} + +type ProviderTrackingInfo_HyperlaneTracking struct { + // Hyperlane-specific tracking information + HyperlaneTracking *HyperlaneTrackingInfo `protobuf:"bytes,1,opt,name=hyperlane_tracking,json=hyperlaneTracking,proto3,oneof"` // Future: IBC tracking could be added here +} + +func (*ProviderTrackingInfo_HyperlaneTracking) isProviderTrackingInfo_TrackingInfo() {} + +// HyperlaneTrackingInfo contains Hyperlane-specific tracking data +type HyperlaneTrackingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Hyperlane message ID + MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + // Origin domain + OriginDomain uint32 `protobuf:"varint,2,opt,name=origin_domain,json=originDomain,proto3" json:"origin_domain,omitempty"` + // Destination domain + DestinationDomain uint32 `protobuf:"varint,3,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + // Message nonce + Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Transaction hash on origin chain + OriginTxHash string `protobuf:"bytes,5,opt,name=origin_tx_hash,json=originTxHash,proto3" json:"origin_tx_hash,omitempty"` + // Transaction hash on destination chain + DestinationTxHash string `protobuf:"bytes,6,opt,name=destination_tx_hash,json=destinationTxHash,proto3" json:"destination_tx_hash,omitempty"` + // Whether message has been processed + Processed bool `protobuf:"varint,7,opt,name=processed,proto3" json:"processed,omitempty"` +} + +func (x *HyperlaneTrackingInfo) Reset() { + *x = HyperlaneTrackingInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HyperlaneTrackingInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HyperlaneTrackingInfo) ProtoMessage() {} + +// Deprecated: Use HyperlaneTrackingInfo.ProtoReflect.Descriptor instead. +func (*HyperlaneTrackingInfo) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{5} +} + +func (x *HyperlaneTrackingInfo) GetMessageId() []byte { + if x != nil { + return x.MessageId + } + return nil +} + +func (x *HyperlaneTrackingInfo) GetOriginDomain() uint32 { + if x != nil { + return x.OriginDomain + } + return 0 +} + +func (x *HyperlaneTrackingInfo) GetDestinationDomain() uint32 { + if x != nil { + return x.DestinationDomain + } + return 0 +} + +func (x *HyperlaneTrackingInfo) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *HyperlaneTrackingInfo) GetOriginTxHash() string { + if x != nil { + return x.OriginTxHash + } + return "" +} + +func (x *HyperlaneTrackingInfo) GetDestinationTxHash() string { + if x != nil { + return x.DestinationTxHash + } + return "" +} + +func (x *HyperlaneTrackingInfo) GetProcessed() bool { + if x != nil { + return x.Processed + } + return false +} + +// NAVOracleUpdate represents an oracle price update received via cross-chain messaging +type NAVOracleUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Position identifier this update is for + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Current share price + SharePrice string `protobuf:"bytes,2,opt,name=share_price,json=sharePrice,proto3" json:"share_price,omitempty"` + // Number of shares held + SharesHeld string `protobuf:"bytes,3,opt,name=shares_held,json=sharesHeld,proto3" json:"shares_held,omitempty"` + // Timestamp of the update + Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,5,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Message ID (Hyperlane message ID or IBC packet) + MessageId string `protobuf:"bytes,6,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + // Update status + Status OracleUpdateStatus `protobuf:"varint,7,opt,name=status,proto3,enum=noble.dollar.vaults.v2.OracleUpdateStatus" json:"status,omitempty"` +} + +func (x *NAVOracleUpdate) Reset() { + *x = NAVOracleUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVOracleUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVOracleUpdate) ProtoMessage() {} + +// Deprecated: Use NAVOracleUpdate.ProtoReflect.Descriptor instead. +func (*NAVOracleUpdate) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{6} +} + +func (x *NAVOracleUpdate) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *NAVOracleUpdate) GetSharePrice() string { + if x != nil { + return x.SharePrice + } + return "" +} + +func (x *NAVOracleUpdate) GetSharesHeld() string { + if x != nil { + return x.SharesHeld + } + return "" +} + +func (x *NAVOracleUpdate) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *NAVOracleUpdate) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *NAVOracleUpdate) GetMessageId() string { + if x != nil { + return x.MessageId + } + return "" +} + +func (x *NAVOracleUpdate) GetStatus() OracleUpdateStatus { + if x != nil { + return x.Status + } + return OracleUpdateStatus_ORACLE_UPDATE_VALIDATED +} + +// PositionOracleConfig stores oracle configuration for a position +type PositionOracleConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Expected origin mailbox/channel + OriginIdentifier string `protobuf:"bytes,2,opt,name=origin_identifier,json=originIdentifier,proto3" json:"origin_identifier,omitempty"` + // Maximum age before data is considered stale (seconds) + MaxStaleness int64 `protobuf:"varint,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Authorized oracle contract address on remote chain + OracleContract string `protobuf:"bytes,4,opt,name=oracle_contract,json=oracleContract,proto3" json:"oracle_contract,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,5,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Last update timestamp + LastUpdate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` + // Provider type (HYPERLANE, IBC) + ProviderType ProviderType `protobuf:"varint,7,opt,name=provider_type,json=providerType,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"provider_type,omitempty"` +} + +func (x *PositionOracleConfig) Reset() { + *x = PositionOracleConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PositionOracleConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PositionOracleConfig) ProtoMessage() {} + +// Deprecated: Use PositionOracleConfig.ProtoReflect.Descriptor instead. +func (*PositionOracleConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{7} +} + +func (x *PositionOracleConfig) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *PositionOracleConfig) GetOriginIdentifier() string { + if x != nil { + return x.OriginIdentifier + } + return "" +} + +func (x *PositionOracleConfig) GetMaxStaleness() int64 { + if x != nil { + return x.MaxStaleness + } + return 0 +} + +func (x *PositionOracleConfig) GetOracleContract() string { + if x != nil { + return x.OracleContract + } + return "" +} + +func (x *PositionOracleConfig) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *PositionOracleConfig) GetLastUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdate + } + return nil +} + +func (x *PositionOracleConfig) GetProviderType() ProviderType { + if x != nil { + return x.ProviderType + } + return ProviderType_PROVIDER_TYPE_HYPERLANE +} + +// CrossChainPositionSnapshot provides a snapshot of all cross-chain positions +type CrossChainPositionSnapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total value of all remote positions + TotalRemoteValue string `protobuf:"bytes,1,opt,name=total_remote_value,json=totalRemoteValue,proto3" json:"total_remote_value,omitempty"` + // Total value of inflight funds + TotalInflightValue string `protobuf:"bytes,2,opt,name=total_inflight_value,json=totalInflightValue,proto3" json:"total_inflight_value,omitempty"` + // Number of active remote positions + ActivePositions int64 `protobuf:"varint,3,opt,name=active_positions,json=activePositions,proto3" json:"active_positions,omitempty"` + // Number of positions with stale data + StalePositions int64 `protobuf:"varint,4,opt,name=stale_positions,json=stalePositions,proto3" json:"stale_positions,omitempty"` + // Snapshot timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Breakdown by route + ValueByRoute map[uint32]string `protobuf:"bytes,6,rep,name=value_by_route,json=valueByRoute,proto3" json:"value_by_route,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *CrossChainPositionSnapshot) Reset() { + *x = CrossChainPositionSnapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CrossChainPositionSnapshot) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CrossChainPositionSnapshot) ProtoMessage() {} + +// Deprecated: Use CrossChainPositionSnapshot.ProtoReflect.Descriptor instead. +func (*CrossChainPositionSnapshot) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{8} +} + +func (x *CrossChainPositionSnapshot) GetTotalRemoteValue() string { + if x != nil { + return x.TotalRemoteValue + } + return "" +} + +func (x *CrossChainPositionSnapshot) GetTotalInflightValue() string { + if x != nil { + return x.TotalInflightValue + } + return "" +} + +func (x *CrossChainPositionSnapshot) GetActivePositions() int64 { + if x != nil { + return x.ActivePositions + } + return 0 +} + +func (x *CrossChainPositionSnapshot) GetStalePositions() int64 { + if x != nil { + return x.StalePositions + } + return 0 +} + +func (x *CrossChainPositionSnapshot) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *CrossChainPositionSnapshot) GetValueByRoute() map[uint32]string { + if x != nil { + return x.ValueByRoute + } + return nil +} + +// CrossChainConfig defines global configuration for cross-chain operations +type CrossChainConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maximum total remote position value as percentage of vault (basis points) + MaxRemoteExposure int32 `protobuf:"varint,1,opt,name=max_remote_exposure,json=maxRemoteExposure,proto3" json:"max_remote_exposure,omitempty"` + // Default operation timeout (seconds) + DefaultTimeout int64 `protobuf:"varint,2,opt,name=default_timeout,json=defaultTimeout,proto3" json:"default_timeout,omitempty"` + // Position update frequency (seconds) + UpdateFrequency int64 `protobuf:"varint,3,opt,name=update_frequency,json=updateFrequency,proto3" json:"update_frequency,omitempty"` + // Maximum number of remote positions + MaxRemotePositions uint32 `protobuf:"varint,4,opt,name=max_remote_positions,json=maxRemotePositions,proto3" json:"max_remote_positions,omitempty"` + // Allowed chains (can be Hyperlane domains or IBC chain IDs) + AllowedChains []string `protobuf:"bytes,5,rep,name=allowed_chains,json=allowedChains,proto3" json:"allowed_chains,omitempty"` + // Whether cross-chain operations are enabled + Enabled bool `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Maximum duration funds can be inflight (seconds) + MaxInflightDuration int64 `protobuf:"varint,7,opt,name=max_inflight_duration,json=maxInflightDuration,proto3" json:"max_inflight_duration,omitempty"` + // Maximum total value allowed inflight + MaxInflightValue string `protobuf:"bytes,8,opt,name=max_inflight_value,json=maxInflightValue,proto3" json:"max_inflight_value,omitempty"` + // Supported providers (currently only HYPERLANE) + SupportedProviders []ProviderType `protobuf:"varint,9,rep,packed,name=supported_providers,json=supportedProviders,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"supported_providers,omitempty"` +} + +func (x *CrossChainConfig) Reset() { + *x = CrossChainConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CrossChainConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CrossChainConfig) ProtoMessage() {} + +// Deprecated: Use CrossChainConfig.ProtoReflect.Descriptor instead. +func (*CrossChainConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{9} +} + +func (x *CrossChainConfig) GetMaxRemoteExposure() int32 { + if x != nil { + return x.MaxRemoteExposure + } + return 0 +} + +func (x *CrossChainConfig) GetDefaultTimeout() int64 { + if x != nil { + return x.DefaultTimeout + } + return 0 +} + +func (x *CrossChainConfig) GetUpdateFrequency() int64 { + if x != nil { + return x.UpdateFrequency + } + return 0 +} + +func (x *CrossChainConfig) GetMaxRemotePositions() uint32 { + if x != nil { + return x.MaxRemotePositions + } + return 0 +} + +func (x *CrossChainConfig) GetAllowedChains() []string { + if x != nil { + return x.AllowedChains + } + return nil +} + +func (x *CrossChainConfig) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *CrossChainConfig) GetMaxInflightDuration() int64 { + if x != nil { + return x.MaxInflightDuration + } + return 0 +} + +func (x *CrossChainConfig) GetMaxInflightValue() string { + if x != nil { + return x.MaxInflightValue + } + return "" +} + +func (x *CrossChainConfig) GetSupportedProviders() []ProviderType { + if x != nil { + return x.SupportedProviders + } + return nil +} + +// StaleInflightAlert represents an alert for inflight funds exceeding expected duration +type StaleInflightAlert struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Transaction ID + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Hours overdue + HoursOverdue float64 `protobuf:"fixed64,3,opt,name=hours_overdue,json=hoursOverdue,proto3" json:"hours_overdue,omitempty"` + // Alert timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Amount stuck in transit + Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *StaleInflightAlert) Reset() { + *x = StaleInflightAlert{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StaleInflightAlert) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StaleInflightAlert) ProtoMessage() {} + +// Deprecated: Use StaleInflightAlert.ProtoReflect.Descriptor instead. +func (*StaleInflightAlert) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP(), []int{10} +} + +func (x *StaleInflightAlert) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *StaleInflightAlert) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *StaleInflightAlert) GetHoursOverdue() float64 { + if x != nil { + return x.HoursOverdue + } + return 0 +} + +func (x *StaleInflightAlert) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *StaleInflightAlert) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +var File_noble_dollar_vaults_v2_cross_chain_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_cross_chain_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, + 0x6e, 0x65, 0x2f, 0x77, 0x61, 0x72, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x03, 0x0a, 0x0f, 0x43, 0x72, 0x6f, 0x73, 0x73, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x64, 0x0a, 0x0b, 0x68, 0x79, + 0x70, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x52, 0x0a, 0x68, 0x79, 0x70, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, + 0x12, 0x73, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x5f, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x48, 0x6f, 0x6f, 0x6b, 0x12, 0x7b, 0x0a, 0x17, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, + 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, + 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, + 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x15, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x5e, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x10, 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x88, 0x06, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x0b, 0x68, 0x79, 0x70, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, + 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, + 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x0a, 0x68, 0x79, 0x70, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x68, 0x0a, 0x0d, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, + 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, + 0x68, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x48, 0x65, 0x6c, 0x64, 0x12, 0x4e, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, + 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x70, + 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x57, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, + 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, + 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, + 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0c, 0x6d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x22, 0xff, 0x06, + 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, + 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x4a, 0x0a, 0x0c, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, + 0x6f, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x4d, 0x0a, 0x0d, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x54, 0x0a, 0x11, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, + 0x6f, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x01, 0x52, 0x10, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x57, 0x0a, 0x12, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x65, + 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x5f, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, + 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, 0x0a, 0x11, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x72, + 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x5d, 0x0a, 0x0d, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x12, 0x4c, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x87, + 0x01, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, + 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5e, 0x0a, 0x12, 0x68, 0x79, 0x70, 0x65, 0x72, + 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x79, 0x70, + 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x66, 0x6f, 0x48, 0x00, 0x52, 0x11, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x54, + 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x0f, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x94, 0x02, 0x0a, 0x15, 0x48, 0x79, 0x70, + 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, + 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x78, 0x48, 0x61, 0x73, + 0x68, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x78, 0x48, 0x61, 0x73, + 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x22, + 0xa8, 0x03, 0x0a, 0x0f, 0x4e, 0x41, 0x56, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x57, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, + 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x48, 0x65, 0x6c, 0x64, + 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xe7, 0x02, 0x0a, 0x14, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x53, 0x74, 0x61, + 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x12, 0x45, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x6c, + 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x54, 0x79, 0x70, 0x65, 0x22, 0xa5, 0x04, 0x0a, 0x1a, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x12, 0x5e, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x62, 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, + 0x6c, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, + 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x6a, 0x0a, 0x0e, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x6f, 0x75, 0x74, + 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf4, 0x03, 0x0a, + 0x10, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, + 0x65, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, + 0x6d, 0x61, 0x78, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, + 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x30, 0x0a, 0x14, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, + 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, + 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5e, 0x0a, 0x12, + 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x55, 0x0a, 0x13, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x22, 0x89, 0x02, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, + 0x68, 0x6f, 0x75, 0x72, 0x73, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x64, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x0c, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x64, 0x75, + 0x65, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2a, + 0x90, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x4d, 0x4f, + 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x54, 0x49, + 0x56, 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x50, + 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, + 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, + 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, + 0x02, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x1a, 0x04, 0x88, 0xa3, + 0x1e, 0x00, 0x2a, 0x6e, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x10, 0x00, 0x12, + 0x1d, 0x0a, 0x19, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x1c, + 0x0a, 0x18, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x52, 0x45, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x02, 0x1a, 0x04, 0x88, 0xa3, + 0x1e, 0x00, 0x2a, 0xd6, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, + 0x44, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, + 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, + 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x5f, 0x46, 0x52, 0x4f, + 0x4d, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x28, 0x0a, 0x24, + 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x52, 0x45, 0x42, 0x41, 0x4c, 0x41, 0x4e, + 0x43, 0x45, 0x5f, 0x42, 0x45, 0x54, 0x57, 0x45, 0x45, 0x4e, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, + 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, + 0x48, 0x54, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x45, 0x50, 0x4c, 0x4f, + 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x2c, 0x0a, 0x28, 0x49, 0x4e, 0x46, 0x4c, 0x49, + 0x47, 0x48, 0x54, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x57, 0x49, 0x54, 0x48, + 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, + 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x87, 0x01, 0x0a, 0x0e, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, + 0x0a, 0x10, 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, + 0x4e, 0x47, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, + 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, + 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, + 0x45, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x4e, 0x46, 0x4c, 0x49, 0x47, 0x48, 0x54, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x46, + 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x04, 0x1a, + 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x6e, 0x0a, 0x12, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x4f, + 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x41, 0x43, + 0x4c, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x5f, 0x55, 0x50, + 0x44, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x1a, + 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x2a, 0x48, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, + 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x59, 0x50, 0x45, 0x52, 0x4c, 0x41, 0x4e, 0x45, + 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x49, 0x42, 0x43, 0x10, 0x01, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x42, + 0xe1, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0f, + 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x37, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x78, 0x79, 0x7a, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, + 0x32, 0x3b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, 0x56, + 0xaa, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, + 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, + 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, + 0x3a, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x3a, + 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_cross_chain_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_cross_chain_proto_rawDescData = file_noble_dollar_vaults_v2_cross_chain_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_cross_chain_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_cross_chain_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_cross_chain_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_cross_chain_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_cross_chain_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_noble_dollar_vaults_v2_cross_chain_proto_goTypes = []interface{}{ + (RemotePositionStatus)(0), // 0: noble.dollar.vaults.v2.RemotePositionStatus + (OperationType)(0), // 1: noble.dollar.vaults.v2.OperationType + (InflightType)(0), // 2: noble.dollar.vaults.v2.InflightType + (InflightStatus)(0), // 3: noble.dollar.vaults.v2.InflightStatus + (OracleUpdateStatus)(0), // 4: noble.dollar.vaults.v2.OracleUpdateStatus + (ProviderType)(0), // 5: noble.dollar.vaults.v2.ProviderType + (*CrossChainRoute)(nil), // 6: noble.dollar.vaults.v2.CrossChainRoute + (*RemotePosition)(nil), // 7: noble.dollar.vaults.v2.RemotePosition + (*InflightFund)(nil), // 8: noble.dollar.vaults.v2.InflightFund + (*NobleEndpoint)(nil), // 9: noble.dollar.vaults.v2.NobleEndpoint + (*ProviderTrackingInfo)(nil), // 10: noble.dollar.vaults.v2.ProviderTrackingInfo + (*HyperlaneTrackingInfo)(nil), // 11: noble.dollar.vaults.v2.HyperlaneTrackingInfo + (*NAVOracleUpdate)(nil), // 12: noble.dollar.vaults.v2.NAVOracleUpdate + (*PositionOracleConfig)(nil), // 13: noble.dollar.vaults.v2.PositionOracleConfig + (*CrossChainPositionSnapshot)(nil), // 14: noble.dollar.vaults.v2.CrossChainPositionSnapshot + (*CrossChainConfig)(nil), // 15: noble.dollar.vaults.v2.CrossChainConfig + (*StaleInflightAlert)(nil), // 16: noble.dollar.vaults.v2.StaleInflightAlert + nil, // 17: noble.dollar.vaults.v2.CrossChainPositionSnapshot.ValueByRouteEntry + (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp +} +var file_noble_dollar_vaults_v2_cross_chain_proto_depIdxs = []int32{ + 18, // 0: noble.dollar.vaults.v2.RemotePosition.last_update:type_name -> google.protobuf.Timestamp + 0, // 1: noble.dollar.vaults.v2.RemotePosition.status:type_name -> noble.dollar.vaults.v2.RemotePositionStatus + 9, // 2: noble.dollar.vaults.v2.InflightFund.noble_origin:type_name -> noble.dollar.vaults.v2.NobleEndpoint + 7, // 3: noble.dollar.vaults.v2.InflightFund.remote_origin:type_name -> noble.dollar.vaults.v2.RemotePosition + 9, // 4: noble.dollar.vaults.v2.InflightFund.noble_destination:type_name -> noble.dollar.vaults.v2.NobleEndpoint + 7, // 5: noble.dollar.vaults.v2.InflightFund.remote_destination:type_name -> noble.dollar.vaults.v2.RemotePosition + 18, // 6: noble.dollar.vaults.v2.InflightFund.initiated_at:type_name -> google.protobuf.Timestamp + 18, // 7: noble.dollar.vaults.v2.InflightFund.expected_at:type_name -> google.protobuf.Timestamp + 3, // 8: noble.dollar.vaults.v2.InflightFund.status:type_name -> noble.dollar.vaults.v2.InflightStatus + 10, // 9: noble.dollar.vaults.v2.InflightFund.provider_tracking:type_name -> noble.dollar.vaults.v2.ProviderTrackingInfo + 1, // 10: noble.dollar.vaults.v2.NobleEndpoint.operation_type:type_name -> noble.dollar.vaults.v2.OperationType + 11, // 11: noble.dollar.vaults.v2.ProviderTrackingInfo.hyperlane_tracking:type_name -> noble.dollar.vaults.v2.HyperlaneTrackingInfo + 18, // 12: noble.dollar.vaults.v2.NAVOracleUpdate.timestamp:type_name -> google.protobuf.Timestamp + 4, // 13: noble.dollar.vaults.v2.NAVOracleUpdate.status:type_name -> noble.dollar.vaults.v2.OracleUpdateStatus + 18, // 14: noble.dollar.vaults.v2.PositionOracleConfig.last_update:type_name -> google.protobuf.Timestamp + 5, // 15: noble.dollar.vaults.v2.PositionOracleConfig.provider_type:type_name -> noble.dollar.vaults.v2.ProviderType + 18, // 16: noble.dollar.vaults.v2.CrossChainPositionSnapshot.timestamp:type_name -> google.protobuf.Timestamp + 17, // 17: noble.dollar.vaults.v2.CrossChainPositionSnapshot.value_by_route:type_name -> noble.dollar.vaults.v2.CrossChainPositionSnapshot.ValueByRouteEntry + 5, // 18: noble.dollar.vaults.v2.CrossChainConfig.supported_providers:type_name -> noble.dollar.vaults.v2.ProviderType + 18, // 19: noble.dollar.vaults.v2.StaleInflightAlert.timestamp:type_name -> google.protobuf.Timestamp + 20, // [20:20] is the sub-list for method output_type + 20, // [20:20] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_cross_chain_proto_init() } +func file_noble_dollar_vaults_v2_cross_chain_proto_init() { + if File_noble_dollar_vaults_v2_cross_chain_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CrossChainRoute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemotePosition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InflightFund); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NobleEndpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderTrackingInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HyperlaneTrackingInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVOracleUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PositionOracleConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CrossChainPositionSnapshot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CrossChainConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StaleInflightAlert); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*InflightFund_NobleOrigin)(nil), + (*InflightFund_RemoteOrigin)(nil), + (*InflightFund_NobleDestination)(nil), + (*InflightFund_RemoteDestination)(nil), + } + file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*ProviderTrackingInfo_HyperlaneTracking)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_noble_dollar_vaults_v2_cross_chain_proto_rawDesc, + NumEnums: 6, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_cross_chain_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_cross_chain_proto_depIdxs, + EnumInfos: file_noble_dollar_vaults_v2_cross_chain_proto_enumTypes, + MessageInfos: file_noble_dollar_vaults_v2_cross_chain_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_cross_chain_proto = out.File + file_noble_dollar_vaults_v2_cross_chain_proto_rawDesc = nil + file_noble_dollar_vaults_v2_cross_chain_proto_goTypes = nil + file_noble_dollar_vaults_v2_cross_chain_proto_depIdxs = nil +} diff --git a/api/vaults/v2/events.pulsar.go b/api/vaults/v2/events.pulsar.go new file mode 100644 index 00000000..48adf03c --- /dev/null +++ b/api/vaults/v2/events.pulsar.go @@ -0,0 +1,13750 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_EventDeposit protoreflect.MessageDescriptor + fd_EventDeposit_depositor protoreflect.FieldDescriptor + fd_EventDeposit_amount_deposited protoreflect.FieldDescriptor + fd_EventDeposit_block_height protoreflect.FieldDescriptor + fd_EventDeposit_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventDeposit = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventDeposit") + fd_EventDeposit_depositor = md_EventDeposit.Fields().ByName("depositor") + fd_EventDeposit_amount_deposited = md_EventDeposit.Fields().ByName("amount_deposited") + fd_EventDeposit_block_height = md_EventDeposit.Fields().ByName("block_height") + fd_EventDeposit_timestamp = md_EventDeposit.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventDeposit)(nil) + +type fastReflection_EventDeposit EventDeposit + +func (x *EventDeposit) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventDeposit)(x) +} + +func (x *EventDeposit) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_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_EventDeposit_messageType fastReflection_EventDeposit_messageType +var _ protoreflect.MessageType = fastReflection_EventDeposit_messageType{} + +type fastReflection_EventDeposit_messageType struct{} + +func (x fastReflection_EventDeposit_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventDeposit)(nil) +} +func (x fastReflection_EventDeposit_messageType) New() protoreflect.Message { + return new(fastReflection_EventDeposit) +} +func (x fastReflection_EventDeposit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventDeposit +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventDeposit) Descriptor() protoreflect.MessageDescriptor { + return md_EventDeposit +} + +// 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_EventDeposit) Type() protoreflect.MessageType { + return _fastReflection_EventDeposit_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventDeposit) New() protoreflect.Message { + return new(fastReflection_EventDeposit) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventDeposit) Interface() protoreflect.ProtoMessage { + return (*EventDeposit)(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_EventDeposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Depositor != "" { + value := protoreflect.ValueOfString(x.Depositor) + if !f(fd_EventDeposit_depositor, value) { + return + } + } + if x.AmountDeposited != "" { + value := protoreflect.ValueOfString(x.AmountDeposited) + if !f(fd_EventDeposit_amount_deposited, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventDeposit_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventDeposit_timestamp, 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_EventDeposit) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventDeposit.depositor": + return x.Depositor != "" + case "noble.dollar.vaults.v2.EventDeposit.amount_deposited": + return x.AmountDeposited != "" + case "noble.dollar.vaults.v2.EventDeposit.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventDeposit.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventDeposit 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_EventDeposit) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventDeposit.depositor": + x.Depositor = "" + case "noble.dollar.vaults.v2.EventDeposit.amount_deposited": + x.AmountDeposited = "" + case "noble.dollar.vaults.v2.EventDeposit.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventDeposit.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventDeposit 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_EventDeposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventDeposit.depositor": + value := x.Depositor + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventDeposit.amount_deposited": + value := x.AmountDeposited + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventDeposit.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventDeposit.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventDeposit 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_EventDeposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventDeposit.depositor": + x.Depositor = value.Interface().(string) + case "noble.dollar.vaults.v2.EventDeposit.amount_deposited": + x.AmountDeposited = value.Interface().(string) + case "noble.dollar.vaults.v2.EventDeposit.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventDeposit.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventDeposit 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_EventDeposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventDeposit.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventDeposit.depositor": + panic(fmt.Errorf("field depositor of message noble.dollar.vaults.v2.EventDeposit is not mutable")) + case "noble.dollar.vaults.v2.EventDeposit.amount_deposited": + panic(fmt.Errorf("field amount_deposited of message noble.dollar.vaults.v2.EventDeposit is not mutable")) + case "noble.dollar.vaults.v2.EventDeposit.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventDeposit is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventDeposit 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_EventDeposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventDeposit.depositor": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventDeposit.amount_deposited": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventDeposit.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventDeposit.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventDeposit 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_EventDeposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventDeposit", 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_EventDeposit) 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_EventDeposit) 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_EventDeposit) 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_EventDeposit) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventDeposit) + 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.Depositor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountDeposited) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventDeposit) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if len(x.AmountDeposited) > 0 { + i -= len(x.AmountDeposited) + copy(dAtA[i:], x.AmountDeposited) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountDeposited))) + i-- + dAtA[i] = 0x12 + } + if len(x.Depositor) > 0 { + i -= len(x.Depositor) + copy(dAtA[i:], x.Depositor) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Depositor))) + 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().(*EventDeposit) + 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: EventDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDeposit: 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 Depositor", 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.Depositor = 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 AmountDeposited", 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.AmountDeposited = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventWithdraw protoreflect.MessageDescriptor + fd_EventWithdraw_withdrawer protoreflect.FieldDescriptor + fd_EventWithdraw_principal_withdrawn protoreflect.FieldDescriptor + fd_EventWithdraw_yield_withdrawn protoreflect.FieldDescriptor + fd_EventWithdraw_total_amount_received protoreflect.FieldDescriptor + fd_EventWithdraw_fees_paid protoreflect.FieldDescriptor + fd_EventWithdraw_block_height protoreflect.FieldDescriptor + fd_EventWithdraw_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventWithdraw = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventWithdraw") + fd_EventWithdraw_withdrawer = md_EventWithdraw.Fields().ByName("withdrawer") + fd_EventWithdraw_principal_withdrawn = md_EventWithdraw.Fields().ByName("principal_withdrawn") + fd_EventWithdraw_yield_withdrawn = md_EventWithdraw.Fields().ByName("yield_withdrawn") + fd_EventWithdraw_total_amount_received = md_EventWithdraw.Fields().ByName("total_amount_received") + fd_EventWithdraw_fees_paid = md_EventWithdraw.Fields().ByName("fees_paid") + fd_EventWithdraw_block_height = md_EventWithdraw.Fields().ByName("block_height") + fd_EventWithdraw_timestamp = md_EventWithdraw.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventWithdraw)(nil) + +type fastReflection_EventWithdraw EventWithdraw + +func (x *EventWithdraw) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWithdraw)(x) +} + +func (x *EventWithdraw) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[1] + 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_EventWithdraw_messageType fastReflection_EventWithdraw_messageType +var _ protoreflect.MessageType = fastReflection_EventWithdraw_messageType{} + +type fastReflection_EventWithdraw_messageType struct{} + +func (x fastReflection_EventWithdraw_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWithdraw)(nil) +} +func (x fastReflection_EventWithdraw_messageType) New() protoreflect.Message { + return new(fastReflection_EventWithdraw) +} +func (x fastReflection_EventWithdraw_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdraw +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWithdraw) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdraw +} + +// 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_EventWithdraw) Type() protoreflect.MessageType { + return _fastReflection_EventWithdraw_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWithdraw) New() protoreflect.Message { + return new(fastReflection_EventWithdraw) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWithdraw) Interface() protoreflect.ProtoMessage { + return (*EventWithdraw)(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_EventWithdraw) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Withdrawer != "" { + value := protoreflect.ValueOfString(x.Withdrawer) + if !f(fd_EventWithdraw_withdrawer, value) { + return + } + } + if x.PrincipalWithdrawn != "" { + value := protoreflect.ValueOfString(x.PrincipalWithdrawn) + if !f(fd_EventWithdraw_principal_withdrawn, value) { + return + } + } + if x.YieldWithdrawn != "" { + value := protoreflect.ValueOfString(x.YieldWithdrawn) + if !f(fd_EventWithdraw_yield_withdrawn, value) { + return + } + } + if x.TotalAmountReceived != "" { + value := protoreflect.ValueOfString(x.TotalAmountReceived) + if !f(fd_EventWithdraw_total_amount_received, value) { + return + } + } + if x.FeesPaid != "" { + value := protoreflect.ValueOfString(x.FeesPaid) + if !f(fd_EventWithdraw_fees_paid, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventWithdraw_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventWithdraw_timestamp, 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_EventWithdraw) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdraw.withdrawer": + return x.Withdrawer != "" + case "noble.dollar.vaults.v2.EventWithdraw.principal_withdrawn": + return x.PrincipalWithdrawn != "" + case "noble.dollar.vaults.v2.EventWithdraw.yield_withdrawn": + return x.YieldWithdrawn != "" + case "noble.dollar.vaults.v2.EventWithdraw.total_amount_received": + return x.TotalAmountReceived != "" + case "noble.dollar.vaults.v2.EventWithdraw.fees_paid": + return x.FeesPaid != "" + case "noble.dollar.vaults.v2.EventWithdraw.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventWithdraw.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdraw 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_EventWithdraw) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdraw.withdrawer": + x.Withdrawer = "" + case "noble.dollar.vaults.v2.EventWithdraw.principal_withdrawn": + x.PrincipalWithdrawn = "" + case "noble.dollar.vaults.v2.EventWithdraw.yield_withdrawn": + x.YieldWithdrawn = "" + case "noble.dollar.vaults.v2.EventWithdraw.total_amount_received": + x.TotalAmountReceived = "" + case "noble.dollar.vaults.v2.EventWithdraw.fees_paid": + x.FeesPaid = "" + case "noble.dollar.vaults.v2.EventWithdraw.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventWithdraw.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdraw 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_EventWithdraw) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventWithdraw.withdrawer": + value := x.Withdrawer + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdraw.principal_withdrawn": + value := x.PrincipalWithdrawn + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdraw.yield_withdrawn": + value := x.YieldWithdrawn + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdraw.total_amount_received": + value := x.TotalAmountReceived + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdraw.fees_paid": + value := x.FeesPaid + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdraw.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventWithdraw.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdraw 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_EventWithdraw) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdraw.withdrawer": + x.Withdrawer = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdraw.principal_withdrawn": + x.PrincipalWithdrawn = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdraw.yield_withdrawn": + x.YieldWithdrawn = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdraw.total_amount_received": + x.TotalAmountReceived = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdraw.fees_paid": + x.FeesPaid = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdraw.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventWithdraw.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdraw 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_EventWithdraw) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdraw.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdraw.withdrawer": + panic(fmt.Errorf("field withdrawer of message noble.dollar.vaults.v2.EventWithdraw is not mutable")) + case "noble.dollar.vaults.v2.EventWithdraw.principal_withdrawn": + panic(fmt.Errorf("field principal_withdrawn of message noble.dollar.vaults.v2.EventWithdraw is not mutable")) + case "noble.dollar.vaults.v2.EventWithdraw.yield_withdrawn": + panic(fmt.Errorf("field yield_withdrawn of message noble.dollar.vaults.v2.EventWithdraw is not mutable")) + case "noble.dollar.vaults.v2.EventWithdraw.total_amount_received": + panic(fmt.Errorf("field total_amount_received of message noble.dollar.vaults.v2.EventWithdraw is not mutable")) + case "noble.dollar.vaults.v2.EventWithdraw.fees_paid": + panic(fmt.Errorf("field fees_paid of message noble.dollar.vaults.v2.EventWithdraw is not mutable")) + case "noble.dollar.vaults.v2.EventWithdraw.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventWithdraw is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdraw 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_EventWithdraw) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdraw.withdrawer": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdraw.principal_withdrawn": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdraw.yield_withdrawn": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdraw.total_amount_received": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdraw.fees_paid": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdraw.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventWithdraw.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdraw 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_EventWithdraw) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventWithdraw", 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_EventWithdraw) 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_EventWithdraw) 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_EventWithdraw) 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_EventWithdraw) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWithdraw) + 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.Withdrawer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PrincipalWithdrawn) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldWithdrawn) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAmountReceived) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.FeesPaid) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventWithdraw) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x30 + } + if len(x.FeesPaid) > 0 { + i -= len(x.FeesPaid) + copy(dAtA[i:], x.FeesPaid) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeesPaid))) + i-- + dAtA[i] = 0x2a + } + if len(x.TotalAmountReceived) > 0 { + i -= len(x.TotalAmountReceived) + copy(dAtA[i:], x.TotalAmountReceived) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountReceived))) + i-- + dAtA[i] = 0x22 + } + if len(x.YieldWithdrawn) > 0 { + i -= len(x.YieldWithdrawn) + copy(dAtA[i:], x.YieldWithdrawn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldWithdrawn))) + i-- + dAtA[i] = 0x1a + } + if len(x.PrincipalWithdrawn) > 0 { + i -= len(x.PrincipalWithdrawn) + copy(dAtA[i:], x.PrincipalWithdrawn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PrincipalWithdrawn))) + i-- + dAtA[i] = 0x12 + } + if len(x.Withdrawer) > 0 { + i -= len(x.Withdrawer) + copy(dAtA[i:], x.Withdrawer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Withdrawer))) + 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().(*EventWithdraw) + 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: EventWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWithdraw: 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 Withdrawer", 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.Withdrawer = 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 PrincipalWithdrawn", 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.PrincipalWithdrawn = 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 YieldWithdrawn", 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.YieldWithdrawn = 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 TotalAmountReceived", 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.TotalAmountReceived = 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 FeesPaid", 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.FeesPaid = 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 BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventWithdrawlRequested protoreflect.MessageDescriptor + fd_EventWithdrawlRequested_requester protoreflect.FieldDescriptor + fd_EventWithdrawlRequested_amount_to_withdraw protoreflect.FieldDescriptor + fd_EventWithdrawlRequested_withdrawal_request_id protoreflect.FieldDescriptor + fd_EventWithdrawlRequested_expected_unlock_time protoreflect.FieldDescriptor + fd_EventWithdrawlRequested_block_height protoreflect.FieldDescriptor + fd_EventWithdrawlRequested_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventWithdrawlRequested = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventWithdrawlRequested") + fd_EventWithdrawlRequested_requester = md_EventWithdrawlRequested.Fields().ByName("requester") + fd_EventWithdrawlRequested_amount_to_withdraw = md_EventWithdrawlRequested.Fields().ByName("amount_to_withdraw") + fd_EventWithdrawlRequested_withdrawal_request_id = md_EventWithdrawlRequested.Fields().ByName("withdrawal_request_id") + fd_EventWithdrawlRequested_expected_unlock_time = md_EventWithdrawlRequested.Fields().ByName("expected_unlock_time") + fd_EventWithdrawlRequested_block_height = md_EventWithdrawlRequested.Fields().ByName("block_height") + fd_EventWithdrawlRequested_timestamp = md_EventWithdrawlRequested.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventWithdrawlRequested)(nil) + +type fastReflection_EventWithdrawlRequested EventWithdrawlRequested + +func (x *EventWithdrawlRequested) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWithdrawlRequested)(x) +} + +func (x *EventWithdrawlRequested) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[2] + 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_EventWithdrawlRequested_messageType fastReflection_EventWithdrawlRequested_messageType +var _ protoreflect.MessageType = fastReflection_EventWithdrawlRequested_messageType{} + +type fastReflection_EventWithdrawlRequested_messageType struct{} + +func (x fastReflection_EventWithdrawlRequested_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWithdrawlRequested)(nil) +} +func (x fastReflection_EventWithdrawlRequested_messageType) New() protoreflect.Message { + return new(fastReflection_EventWithdrawlRequested) +} +func (x fastReflection_EventWithdrawlRequested_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdrawlRequested +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWithdrawlRequested) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdrawlRequested +} + +// 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_EventWithdrawlRequested) Type() protoreflect.MessageType { + return _fastReflection_EventWithdrawlRequested_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWithdrawlRequested) New() protoreflect.Message { + return new(fastReflection_EventWithdrawlRequested) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWithdrawlRequested) Interface() protoreflect.ProtoMessage { + return (*EventWithdrawlRequested)(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_EventWithdrawlRequested) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Requester != "" { + value := protoreflect.ValueOfString(x.Requester) + if !f(fd_EventWithdrawlRequested_requester, value) { + return + } + } + if x.AmountToWithdraw != "" { + value := protoreflect.ValueOfString(x.AmountToWithdraw) + if !f(fd_EventWithdrawlRequested_amount_to_withdraw, value) { + return + } + } + if x.WithdrawalRequestId != "" { + value := protoreflect.ValueOfString(x.WithdrawalRequestId) + if !f(fd_EventWithdrawlRequested_withdrawal_request_id, value) { + return + } + } + if x.ExpectedUnlockTime != nil { + value := protoreflect.ValueOfMessage(x.ExpectedUnlockTime.ProtoReflect()) + if !f(fd_EventWithdrawlRequested_expected_unlock_time, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventWithdrawlRequested_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventWithdrawlRequested_timestamp, 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_EventWithdrawlRequested) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawlRequested.requester": + return x.Requester != "" + case "noble.dollar.vaults.v2.EventWithdrawlRequested.amount_to_withdraw": + return x.AmountToWithdraw != "" + case "noble.dollar.vaults.v2.EventWithdrawlRequested.withdrawal_request_id": + return x.WithdrawalRequestId != "" + case "noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time": + return x.ExpectedUnlockTime != nil + case "noble.dollar.vaults.v2.EventWithdrawlRequested.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawlRequested")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawlRequested 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_EventWithdrawlRequested) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawlRequested.requester": + x.Requester = "" + case "noble.dollar.vaults.v2.EventWithdrawlRequested.amount_to_withdraw": + x.AmountToWithdraw = "" + case "noble.dollar.vaults.v2.EventWithdrawlRequested.withdrawal_request_id": + x.WithdrawalRequestId = "" + case "noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time": + x.ExpectedUnlockTime = nil + case "noble.dollar.vaults.v2.EventWithdrawlRequested.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawlRequested")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawlRequested 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_EventWithdrawlRequested) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawlRequested.requester": + value := x.Requester + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.amount_to_withdraw": + value := x.AmountToWithdraw + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.withdrawal_request_id": + value := x.WithdrawalRequestId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time": + value := x.ExpectedUnlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawlRequested")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawlRequested 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_EventWithdrawlRequested) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawlRequested.requester": + x.Requester = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.amount_to_withdraw": + x.AmountToWithdraw = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.withdrawal_request_id": + x.WithdrawalRequestId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time": + x.ExpectedUnlockTime = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawlRequested")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawlRequested 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_EventWithdrawlRequested) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time": + if x.ExpectedUnlockTime == nil { + x.ExpectedUnlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedUnlockTime.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.requester": + panic(fmt.Errorf("field requester of message noble.dollar.vaults.v2.EventWithdrawlRequested is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.amount_to_withdraw": + panic(fmt.Errorf("field amount_to_withdraw of message noble.dollar.vaults.v2.EventWithdrawlRequested is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.withdrawal_request_id": + panic(fmt.Errorf("field withdrawal_request_id of message noble.dollar.vaults.v2.EventWithdrawlRequested is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventWithdrawlRequested is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawlRequested")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawlRequested 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_EventWithdrawlRequested) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawlRequested.requester": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawlRequested.amount_to_withdraw": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawlRequested.withdrawal_request_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawlRequested")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawlRequested 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_EventWithdrawlRequested) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventWithdrawlRequested", 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_EventWithdrawlRequested) 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_EventWithdrawlRequested) 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_EventWithdrawlRequested) 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_EventWithdrawlRequested) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWithdrawlRequested) + 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.Requester) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountToWithdraw) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.WithdrawalRequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedUnlockTime != nil { + l = options.Size(x.ExpectedUnlockTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventWithdrawlRequested) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if x.ExpectedUnlockTime != nil { + encoded, err := options.Marshal(x.ExpectedUnlockTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.WithdrawalRequestId) > 0 { + i -= len(x.WithdrawalRequestId) + copy(dAtA[i:], x.WithdrawalRequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WithdrawalRequestId))) + i-- + dAtA[i] = 0x1a + } + if len(x.AmountToWithdraw) > 0 { + i -= len(x.AmountToWithdraw) + copy(dAtA[i:], x.AmountToWithdraw) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountToWithdraw))) + i-- + dAtA[i] = 0x12 + } + if len(x.Requester) > 0 { + i -= len(x.Requester) + copy(dAtA[i:], x.Requester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Requester))) + 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().(*EventWithdrawlRequested) + 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: EventWithdrawlRequested: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWithdrawlRequested: 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 Requester", 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.Requester = 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 AmountToWithdraw", 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.AmountToWithdraw = 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 WithdrawalRequestId", 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.WithdrawalRequestId = 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 ExpectedUnlockTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedUnlockTime == nil { + x.ExpectedUnlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedUnlockTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventWithdrawalCancelled protoreflect.MessageDescriptor + fd_EventWithdrawalCancelled_requester protoreflect.FieldDescriptor + fd_EventWithdrawalCancelled_withdrawal_request_id protoreflect.FieldDescriptor + fd_EventWithdrawalCancelled_amount_returned protoreflect.FieldDescriptor + fd_EventWithdrawalCancelled_block_height protoreflect.FieldDescriptor + fd_EventWithdrawalCancelled_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventWithdrawalCancelled = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventWithdrawalCancelled") + fd_EventWithdrawalCancelled_requester = md_EventWithdrawalCancelled.Fields().ByName("requester") + fd_EventWithdrawalCancelled_withdrawal_request_id = md_EventWithdrawalCancelled.Fields().ByName("withdrawal_request_id") + fd_EventWithdrawalCancelled_amount_returned = md_EventWithdrawalCancelled.Fields().ByName("amount_returned") + fd_EventWithdrawalCancelled_block_height = md_EventWithdrawalCancelled.Fields().ByName("block_height") + fd_EventWithdrawalCancelled_timestamp = md_EventWithdrawalCancelled.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventWithdrawalCancelled)(nil) + +type fastReflection_EventWithdrawalCancelled EventWithdrawalCancelled + +func (x *EventWithdrawalCancelled) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWithdrawalCancelled)(x) +} + +func (x *EventWithdrawalCancelled) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[3] + 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_EventWithdrawalCancelled_messageType fastReflection_EventWithdrawalCancelled_messageType +var _ protoreflect.MessageType = fastReflection_EventWithdrawalCancelled_messageType{} + +type fastReflection_EventWithdrawalCancelled_messageType struct{} + +func (x fastReflection_EventWithdrawalCancelled_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWithdrawalCancelled)(nil) +} +func (x fastReflection_EventWithdrawalCancelled_messageType) New() protoreflect.Message { + return new(fastReflection_EventWithdrawalCancelled) +} +func (x fastReflection_EventWithdrawalCancelled_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdrawalCancelled +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWithdrawalCancelled) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdrawalCancelled +} + +// 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_EventWithdrawalCancelled) Type() protoreflect.MessageType { + return _fastReflection_EventWithdrawalCancelled_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWithdrawalCancelled) New() protoreflect.Message { + return new(fastReflection_EventWithdrawalCancelled) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWithdrawalCancelled) Interface() protoreflect.ProtoMessage { + return (*EventWithdrawalCancelled)(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_EventWithdrawalCancelled) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Requester != "" { + value := protoreflect.ValueOfString(x.Requester) + if !f(fd_EventWithdrawalCancelled_requester, value) { + return + } + } + if x.WithdrawalRequestId != "" { + value := protoreflect.ValueOfString(x.WithdrawalRequestId) + if !f(fd_EventWithdrawalCancelled_withdrawal_request_id, value) { + return + } + } + if x.AmountReturned != "" { + value := protoreflect.ValueOfString(x.AmountReturned) + if !f(fd_EventWithdrawalCancelled_amount_returned, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventWithdrawalCancelled_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventWithdrawalCancelled_timestamp, 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_EventWithdrawalCancelled) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.requester": + return x.Requester != "" + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.withdrawal_request_id": + return x.WithdrawalRequestId != "" + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.amount_returned": + return x.AmountReturned != "" + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalCancelled")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalCancelled 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_EventWithdrawalCancelled) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.requester": + x.Requester = "" + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.withdrawal_request_id": + x.WithdrawalRequestId = "" + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.amount_returned": + x.AmountReturned = "" + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalCancelled")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalCancelled 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_EventWithdrawalCancelled) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.requester": + value := x.Requester + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.withdrawal_request_id": + value := x.WithdrawalRequestId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.amount_returned": + value := x.AmountReturned + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalCancelled")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalCancelled 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_EventWithdrawalCancelled) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.requester": + x.Requester = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.withdrawal_request_id": + x.WithdrawalRequestId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.amount_returned": + x.AmountReturned = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalCancelled")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalCancelled 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_EventWithdrawalCancelled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.requester": + panic(fmt.Errorf("field requester of message noble.dollar.vaults.v2.EventWithdrawalCancelled is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.withdrawal_request_id": + panic(fmt.Errorf("field withdrawal_request_id of message noble.dollar.vaults.v2.EventWithdrawalCancelled is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.amount_returned": + panic(fmt.Errorf("field amount_returned of message noble.dollar.vaults.v2.EventWithdrawalCancelled is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventWithdrawalCancelled is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalCancelled")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalCancelled 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_EventWithdrawalCancelled) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.requester": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.withdrawal_request_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.amount_returned": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalCancelled")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalCancelled 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_EventWithdrawalCancelled) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventWithdrawalCancelled", 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_EventWithdrawalCancelled) 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_EventWithdrawalCancelled) 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_EventWithdrawalCancelled) 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_EventWithdrawalCancelled) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWithdrawalCancelled) + 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.Requester) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.WithdrawalRequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountReturned) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventWithdrawalCancelled) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if len(x.AmountReturned) > 0 { + i -= len(x.AmountReturned) + copy(dAtA[i:], x.AmountReturned) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountReturned))) + i-- + dAtA[i] = 0x1a + } + if len(x.WithdrawalRequestId) > 0 { + i -= len(x.WithdrawalRequestId) + copy(dAtA[i:], x.WithdrawalRequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WithdrawalRequestId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Requester) > 0 { + i -= len(x.Requester) + copy(dAtA[i:], x.Requester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Requester))) + 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().(*EventWithdrawalCancelled) + 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: EventWithdrawalCancelled: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWithdrawalCancelled: 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 Requester", 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.Requester = 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 WithdrawalRequestId", 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.WithdrawalRequestId = 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 AmountReturned", 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.AmountReturned = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventWithdrawalProcessed protoreflect.MessageDescriptor + fd_EventWithdrawalProcessed_requests_processed protoreflect.FieldDescriptor + fd_EventWithdrawalProcessed_total_amount_processed protoreflect.FieldDescriptor + fd_EventWithdrawalProcessed_total_amount_distributed protoreflect.FieldDescriptor + fd_EventWithdrawalProcessed_block_height protoreflect.FieldDescriptor + fd_EventWithdrawalProcessed_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventWithdrawalProcessed = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventWithdrawalProcessed") + fd_EventWithdrawalProcessed_requests_processed = md_EventWithdrawalProcessed.Fields().ByName("requests_processed") + fd_EventWithdrawalProcessed_total_amount_processed = md_EventWithdrawalProcessed.Fields().ByName("total_amount_processed") + fd_EventWithdrawalProcessed_total_amount_distributed = md_EventWithdrawalProcessed.Fields().ByName("total_amount_distributed") + fd_EventWithdrawalProcessed_block_height = md_EventWithdrawalProcessed.Fields().ByName("block_height") + fd_EventWithdrawalProcessed_timestamp = md_EventWithdrawalProcessed.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventWithdrawalProcessed)(nil) + +type fastReflection_EventWithdrawalProcessed EventWithdrawalProcessed + +func (x *EventWithdrawalProcessed) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventWithdrawalProcessed)(x) +} + +func (x *EventWithdrawalProcessed) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[4] + 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_EventWithdrawalProcessed_messageType fastReflection_EventWithdrawalProcessed_messageType +var _ protoreflect.MessageType = fastReflection_EventWithdrawalProcessed_messageType{} + +type fastReflection_EventWithdrawalProcessed_messageType struct{} + +func (x fastReflection_EventWithdrawalProcessed_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventWithdrawalProcessed)(nil) +} +func (x fastReflection_EventWithdrawalProcessed_messageType) New() protoreflect.Message { + return new(fastReflection_EventWithdrawalProcessed) +} +func (x fastReflection_EventWithdrawalProcessed_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdrawalProcessed +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventWithdrawalProcessed) Descriptor() protoreflect.MessageDescriptor { + return md_EventWithdrawalProcessed +} + +// 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_EventWithdrawalProcessed) Type() protoreflect.MessageType { + return _fastReflection_EventWithdrawalProcessed_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventWithdrawalProcessed) New() protoreflect.Message { + return new(fastReflection_EventWithdrawalProcessed) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventWithdrawalProcessed) Interface() protoreflect.ProtoMessage { + return (*EventWithdrawalProcessed)(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_EventWithdrawalProcessed) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestsProcessed != int32(0) { + value := protoreflect.ValueOfInt32(x.RequestsProcessed) + if !f(fd_EventWithdrawalProcessed_requests_processed, value) { + return + } + } + if x.TotalAmountProcessed != "" { + value := protoreflect.ValueOfString(x.TotalAmountProcessed) + if !f(fd_EventWithdrawalProcessed_total_amount_processed, value) { + return + } + } + if x.TotalAmountDistributed != "" { + value := protoreflect.ValueOfString(x.TotalAmountDistributed) + if !f(fd_EventWithdrawalProcessed_total_amount_distributed, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventWithdrawalProcessed_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventWithdrawalProcessed_timestamp, 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_EventWithdrawalProcessed) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.requests_processed": + return x.RequestsProcessed != int32(0) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_processed": + return x.TotalAmountProcessed != "" + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_distributed": + return x.TotalAmountDistributed != "" + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalProcessed")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalProcessed 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_EventWithdrawalProcessed) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.requests_processed": + x.RequestsProcessed = int32(0) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_processed": + x.TotalAmountProcessed = "" + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_distributed": + x.TotalAmountDistributed = "" + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalProcessed")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalProcessed 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_EventWithdrawalProcessed) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.requests_processed": + value := x.RequestsProcessed + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_processed": + value := x.TotalAmountProcessed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_distributed": + value := x.TotalAmountDistributed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalProcessed")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalProcessed 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_EventWithdrawalProcessed) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.requests_processed": + x.RequestsProcessed = int32(value.Int()) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_processed": + x.TotalAmountProcessed = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_distributed": + x.TotalAmountDistributed = value.Interface().(string) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalProcessed")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalProcessed 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_EventWithdrawalProcessed) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.requests_processed": + panic(fmt.Errorf("field requests_processed of message noble.dollar.vaults.v2.EventWithdrawalProcessed is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_processed": + panic(fmt.Errorf("field total_amount_processed of message noble.dollar.vaults.v2.EventWithdrawalProcessed is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_distributed": + panic(fmt.Errorf("field total_amount_distributed of message noble.dollar.vaults.v2.EventWithdrawalProcessed is not mutable")) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventWithdrawalProcessed is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalProcessed")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalProcessed 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_EventWithdrawalProcessed) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.requests_processed": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_processed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.total_amount_distributed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventWithdrawalProcessed")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventWithdrawalProcessed 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_EventWithdrawalProcessed) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventWithdrawalProcessed", 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_EventWithdrawalProcessed) 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_EventWithdrawalProcessed) 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_EventWithdrawalProcessed) 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_EventWithdrawalProcessed) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventWithdrawalProcessed) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RequestsProcessed != 0 { + n += 1 + runtime.Sov(uint64(x.RequestsProcessed)) + } + l = len(x.TotalAmountProcessed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAmountDistributed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventWithdrawalProcessed) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if len(x.TotalAmountDistributed) > 0 { + i -= len(x.TotalAmountDistributed) + copy(dAtA[i:], x.TotalAmountDistributed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountDistributed))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalAmountProcessed) > 0 { + i -= len(x.TotalAmountProcessed) + copy(dAtA[i:], x.TotalAmountProcessed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountProcessed))) + i-- + dAtA[i] = 0x12 + } + if x.RequestsProcessed != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RequestsProcessed)) + i-- + dAtA[i] = 0x8 + } + 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().(*EventWithdrawalProcessed) + 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: EventWithdrawalProcessed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWithdrawalProcessed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestsProcessed", wireType) + } + x.RequestsProcessed = 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.RequestsProcessed |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalAmountProcessed", 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.TotalAmountProcessed = 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 TotalAmountDistributed", 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.TotalAmountDistributed = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventNAVUpdated protoreflect.MessageDescriptor + fd_EventNAVUpdated_previous_nav protoreflect.FieldDescriptor + fd_EventNAVUpdated_new_nav protoreflect.FieldDescriptor + fd_EventNAVUpdated_change_bps protoreflect.FieldDescriptor + fd_EventNAVUpdated_total_deposits protoreflect.FieldDescriptor + fd_EventNAVUpdated_total_accrued_yield protoreflect.FieldDescriptor + fd_EventNAVUpdated_authority protoreflect.FieldDescriptor + fd_EventNAVUpdated_reason protoreflect.FieldDescriptor + fd_EventNAVUpdated_block_height protoreflect.FieldDescriptor + fd_EventNAVUpdated_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventNAVUpdated = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventNAVUpdated") + fd_EventNAVUpdated_previous_nav = md_EventNAVUpdated.Fields().ByName("previous_nav") + fd_EventNAVUpdated_new_nav = md_EventNAVUpdated.Fields().ByName("new_nav") + fd_EventNAVUpdated_change_bps = md_EventNAVUpdated.Fields().ByName("change_bps") + fd_EventNAVUpdated_total_deposits = md_EventNAVUpdated.Fields().ByName("total_deposits") + fd_EventNAVUpdated_total_accrued_yield = md_EventNAVUpdated.Fields().ByName("total_accrued_yield") + fd_EventNAVUpdated_authority = md_EventNAVUpdated.Fields().ByName("authority") + fd_EventNAVUpdated_reason = md_EventNAVUpdated.Fields().ByName("reason") + fd_EventNAVUpdated_block_height = md_EventNAVUpdated.Fields().ByName("block_height") + fd_EventNAVUpdated_timestamp = md_EventNAVUpdated.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventNAVUpdated)(nil) + +type fastReflection_EventNAVUpdated EventNAVUpdated + +func (x *EventNAVUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventNAVUpdated)(x) +} + +func (x *EventNAVUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[5] + 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_EventNAVUpdated_messageType fastReflection_EventNAVUpdated_messageType +var _ protoreflect.MessageType = fastReflection_EventNAVUpdated_messageType{} + +type fastReflection_EventNAVUpdated_messageType struct{} + +func (x fastReflection_EventNAVUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventNAVUpdated)(nil) +} +func (x fastReflection_EventNAVUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_EventNAVUpdated) +} +func (x fastReflection_EventNAVUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventNAVUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventNAVUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_EventNAVUpdated +} + +// 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_EventNAVUpdated) Type() protoreflect.MessageType { + return _fastReflection_EventNAVUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventNAVUpdated) New() protoreflect.Message { + return new(fastReflection_EventNAVUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventNAVUpdated) Interface() protoreflect.ProtoMessage { + return (*EventNAVUpdated)(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_EventNAVUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousNav != "" { + value := protoreflect.ValueOfString(x.PreviousNav) + if !f(fd_EventNAVUpdated_previous_nav, value) { + return + } + } + if x.NewNav != "" { + value := protoreflect.ValueOfString(x.NewNav) + if !f(fd_EventNAVUpdated_new_nav, value) { + return + } + } + if x.ChangeBps != int32(0) { + value := protoreflect.ValueOfInt32(x.ChangeBps) + if !f(fd_EventNAVUpdated_change_bps, value) { + return + } + } + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_EventNAVUpdated_total_deposits, value) { + return + } + } + if x.TotalAccruedYield != "" { + value := protoreflect.ValueOfString(x.TotalAccruedYield) + if !f(fd_EventNAVUpdated_total_accrued_yield, value) { + return + } + } + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_EventNAVUpdated_authority, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_EventNAVUpdated_reason, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventNAVUpdated_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventNAVUpdated_timestamp, 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_EventNAVUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventNAVUpdated.previous_nav": + return x.PreviousNav != "" + case "noble.dollar.vaults.v2.EventNAVUpdated.new_nav": + return x.NewNav != "" + case "noble.dollar.vaults.v2.EventNAVUpdated.change_bps": + return x.ChangeBps != int32(0) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.EventNAVUpdated.total_accrued_yield": + return x.TotalAccruedYield != "" + case "noble.dollar.vaults.v2.EventNAVUpdated.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.EventNAVUpdated.reason": + return x.Reason != "" + case "noble.dollar.vaults.v2.EventNAVUpdated.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventNAVUpdated.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventNAVUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventNAVUpdated 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_EventNAVUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventNAVUpdated.previous_nav": + x.PreviousNav = "" + case "noble.dollar.vaults.v2.EventNAVUpdated.new_nav": + x.NewNav = "" + case "noble.dollar.vaults.v2.EventNAVUpdated.change_bps": + x.ChangeBps = int32(0) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.EventNAVUpdated.total_accrued_yield": + x.TotalAccruedYield = "" + case "noble.dollar.vaults.v2.EventNAVUpdated.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.EventNAVUpdated.reason": + x.Reason = "" + case "noble.dollar.vaults.v2.EventNAVUpdated.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventNAVUpdated.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventNAVUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventNAVUpdated 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_EventNAVUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventNAVUpdated.previous_nav": + value := x.PreviousNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.new_nav": + value := x.NewNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.change_bps": + value := x.ChangeBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_accrued_yield": + value := x.TotalAccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventNAVUpdated.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventNAVUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventNAVUpdated 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_EventNAVUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventNAVUpdated.previous_nav": + x.PreviousNav = value.Interface().(string) + case "noble.dollar.vaults.v2.EventNAVUpdated.new_nav": + x.NewNav = value.Interface().(string) + case "noble.dollar.vaults.v2.EventNAVUpdated.change_bps": + x.ChangeBps = int32(value.Int()) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_accrued_yield": + x.TotalAccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.EventNAVUpdated.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.EventNAVUpdated.reason": + x.Reason = value.Interface().(string) + case "noble.dollar.vaults.v2.EventNAVUpdated.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventNAVUpdated.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventNAVUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventNAVUpdated 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_EventNAVUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventNAVUpdated.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventNAVUpdated.previous_nav": + panic(fmt.Errorf("field previous_nav of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.new_nav": + panic(fmt.Errorf("field new_nav of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.change_bps": + panic(fmt.Errorf("field change_bps of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_accrued_yield": + panic(fmt.Errorf("field total_accrued_yield of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventNAVUpdated.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventNAVUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventNAVUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventNAVUpdated 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_EventNAVUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventNAVUpdated.previous_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventNAVUpdated.new_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventNAVUpdated.change_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.EventNAVUpdated.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventNAVUpdated.total_accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventNAVUpdated.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventNAVUpdated.reason": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventNAVUpdated.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventNAVUpdated.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventNAVUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventNAVUpdated 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_EventNAVUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventNAVUpdated", 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_EventNAVUpdated) 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_EventNAVUpdated) 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_EventNAVUpdated) 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_EventNAVUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventNAVUpdated) + 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.PreviousNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChangeBps != 0 { + n += 1 + runtime.Sov(uint64(x.ChangeBps)) + } + l = len(x.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventNAVUpdated) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x40 + } + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x3a + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0x32 + } + if len(x.TotalAccruedYield) > 0 { + i -= len(x.TotalAccruedYield) + copy(dAtA[i:], x.TotalAccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAccruedYield))) + i-- + dAtA[i] = 0x2a + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + i-- + dAtA[i] = 0x22 + } + if x.ChangeBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChangeBps)) + i-- + dAtA[i] = 0x18 + } + if len(x.NewNav) > 0 { + i -= len(x.NewNav) + copy(dAtA[i:], x.NewNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewNav))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousNav) > 0 { + i -= len(x.PreviousNav) + copy(dAtA[i:], x.PreviousNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousNav))) + 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().(*EventNAVUpdated) + 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: EventNAVUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventNAVUpdated: 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 PreviousNav", 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.PreviousNav = 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 NewNav", 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.NewNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + x.ChangeBps = 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.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits = 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 TotalAccruedYield", 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.TotalAccruedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventFeeCollected protoreflect.MessageDescriptor + fd_EventFeeCollected_fee_type protoreflect.FieldDescriptor + fd_EventFeeCollected_amount_collected protoreflect.FieldDescriptor + fd_EventFeeCollected_fee_rate_bps protoreflect.FieldDescriptor + fd_EventFeeCollected_payer protoreflect.FieldDescriptor + fd_EventFeeCollected_block_height protoreflect.FieldDescriptor + fd_EventFeeCollected_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventFeeCollected = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventFeeCollected") + fd_EventFeeCollected_fee_type = md_EventFeeCollected.Fields().ByName("fee_type") + fd_EventFeeCollected_amount_collected = md_EventFeeCollected.Fields().ByName("amount_collected") + fd_EventFeeCollected_fee_rate_bps = md_EventFeeCollected.Fields().ByName("fee_rate_bps") + fd_EventFeeCollected_payer = md_EventFeeCollected.Fields().ByName("payer") + fd_EventFeeCollected_block_height = md_EventFeeCollected.Fields().ByName("block_height") + fd_EventFeeCollected_timestamp = md_EventFeeCollected.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventFeeCollected)(nil) + +type fastReflection_EventFeeCollected EventFeeCollected + +func (x *EventFeeCollected) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventFeeCollected)(x) +} + +func (x *EventFeeCollected) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[6] + 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_EventFeeCollected_messageType fastReflection_EventFeeCollected_messageType +var _ protoreflect.MessageType = fastReflection_EventFeeCollected_messageType{} + +type fastReflection_EventFeeCollected_messageType struct{} + +func (x fastReflection_EventFeeCollected_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventFeeCollected)(nil) +} +func (x fastReflection_EventFeeCollected_messageType) New() protoreflect.Message { + return new(fastReflection_EventFeeCollected) +} +func (x fastReflection_EventFeeCollected_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventFeeCollected +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventFeeCollected) Descriptor() protoreflect.MessageDescriptor { + return md_EventFeeCollected +} + +// 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_EventFeeCollected) Type() protoreflect.MessageType { + return _fastReflection_EventFeeCollected_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventFeeCollected) New() protoreflect.Message { + return new(fastReflection_EventFeeCollected) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventFeeCollected) Interface() protoreflect.ProtoMessage { + return (*EventFeeCollected)(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_EventFeeCollected) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.FeeType != "" { + value := protoreflect.ValueOfString(x.FeeType) + if !f(fd_EventFeeCollected_fee_type, value) { + return + } + } + if x.AmountCollected != "" { + value := protoreflect.ValueOfString(x.AmountCollected) + if !f(fd_EventFeeCollected_amount_collected, value) { + return + } + } + if x.FeeRateBps != int32(0) { + value := protoreflect.ValueOfInt32(x.FeeRateBps) + if !f(fd_EventFeeCollected_fee_rate_bps, value) { + return + } + } + if x.Payer != "" { + value := protoreflect.ValueOfString(x.Payer) + if !f(fd_EventFeeCollected_payer, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventFeeCollected_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventFeeCollected_timestamp, 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_EventFeeCollected) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventFeeCollected.fee_type": + return x.FeeType != "" + case "noble.dollar.vaults.v2.EventFeeCollected.amount_collected": + return x.AmountCollected != "" + case "noble.dollar.vaults.v2.EventFeeCollected.fee_rate_bps": + return x.FeeRateBps != int32(0) + case "noble.dollar.vaults.v2.EventFeeCollected.payer": + return x.Payer != "" + case "noble.dollar.vaults.v2.EventFeeCollected.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventFeeCollected.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventFeeCollected")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventFeeCollected 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_EventFeeCollected) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventFeeCollected.fee_type": + x.FeeType = "" + case "noble.dollar.vaults.v2.EventFeeCollected.amount_collected": + x.AmountCollected = "" + case "noble.dollar.vaults.v2.EventFeeCollected.fee_rate_bps": + x.FeeRateBps = int32(0) + case "noble.dollar.vaults.v2.EventFeeCollected.payer": + x.Payer = "" + case "noble.dollar.vaults.v2.EventFeeCollected.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventFeeCollected.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventFeeCollected")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventFeeCollected 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_EventFeeCollected) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventFeeCollected.fee_type": + value := x.FeeType + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventFeeCollected.amount_collected": + value := x.AmountCollected + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventFeeCollected.fee_rate_bps": + value := x.FeeRateBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.EventFeeCollected.payer": + value := x.Payer + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventFeeCollected.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventFeeCollected.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventFeeCollected")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventFeeCollected 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_EventFeeCollected) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventFeeCollected.fee_type": + x.FeeType = value.Interface().(string) + case "noble.dollar.vaults.v2.EventFeeCollected.amount_collected": + x.AmountCollected = value.Interface().(string) + case "noble.dollar.vaults.v2.EventFeeCollected.fee_rate_bps": + x.FeeRateBps = int32(value.Int()) + case "noble.dollar.vaults.v2.EventFeeCollected.payer": + x.Payer = value.Interface().(string) + case "noble.dollar.vaults.v2.EventFeeCollected.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventFeeCollected.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventFeeCollected")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventFeeCollected 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_EventFeeCollected) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventFeeCollected.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventFeeCollected.fee_type": + panic(fmt.Errorf("field fee_type of message noble.dollar.vaults.v2.EventFeeCollected is not mutable")) + case "noble.dollar.vaults.v2.EventFeeCollected.amount_collected": + panic(fmt.Errorf("field amount_collected of message noble.dollar.vaults.v2.EventFeeCollected is not mutable")) + case "noble.dollar.vaults.v2.EventFeeCollected.fee_rate_bps": + panic(fmt.Errorf("field fee_rate_bps of message noble.dollar.vaults.v2.EventFeeCollected is not mutable")) + case "noble.dollar.vaults.v2.EventFeeCollected.payer": + panic(fmt.Errorf("field payer of message noble.dollar.vaults.v2.EventFeeCollected is not mutable")) + case "noble.dollar.vaults.v2.EventFeeCollected.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventFeeCollected is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventFeeCollected")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventFeeCollected 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_EventFeeCollected) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventFeeCollected.fee_type": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventFeeCollected.amount_collected": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventFeeCollected.fee_rate_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.EventFeeCollected.payer": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventFeeCollected.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventFeeCollected.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventFeeCollected")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventFeeCollected 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_EventFeeCollected) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventFeeCollected", 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_EventFeeCollected) 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_EventFeeCollected) 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_EventFeeCollected) 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_EventFeeCollected) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventFeeCollected) + 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.FeeType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountCollected) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FeeRateBps != 0 { + n += 1 + runtime.Sov(uint64(x.FeeRateBps)) + } + l = len(x.Payer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventFeeCollected) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(x.Payer) > 0 { + i -= len(x.Payer) + copy(dAtA[i:], x.Payer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Payer))) + i-- + dAtA[i] = 0x22 + } + if x.FeeRateBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FeeRateBps)) + i-- + dAtA[i] = 0x18 + } + if len(x.AmountCollected) > 0 { + i -= len(x.AmountCollected) + copy(dAtA[i:], x.AmountCollected) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountCollected))) + i-- + dAtA[i] = 0x12 + } + if len(x.FeeType) > 0 { + i -= len(x.FeeType) + copy(dAtA[i:], x.FeeType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeType))) + 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().(*EventFeeCollected) + 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: EventFeeCollected: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventFeeCollected: 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 FeeType", 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.FeeType = 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 AmountCollected", 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.AmountCollected = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeRateBps", wireType) + } + x.FeeRateBps = 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.FeeRateBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Payer", 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.Payer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventYieldPreferenceUpdated protoreflect.MessageDescriptor + fd_EventYieldPreferenceUpdated_user protoreflect.FieldDescriptor + fd_EventYieldPreferenceUpdated_previous_yield_preference protoreflect.FieldDescriptor + fd_EventYieldPreferenceUpdated_new_yield_preference protoreflect.FieldDescriptor + fd_EventYieldPreferenceUpdated_block_height protoreflect.FieldDescriptor + fd_EventYieldPreferenceUpdated_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventYieldPreferenceUpdated = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventYieldPreferenceUpdated") + fd_EventYieldPreferenceUpdated_user = md_EventYieldPreferenceUpdated.Fields().ByName("user") + fd_EventYieldPreferenceUpdated_previous_yield_preference = md_EventYieldPreferenceUpdated.Fields().ByName("previous_yield_preference") + fd_EventYieldPreferenceUpdated_new_yield_preference = md_EventYieldPreferenceUpdated.Fields().ByName("new_yield_preference") + fd_EventYieldPreferenceUpdated_block_height = md_EventYieldPreferenceUpdated.Fields().ByName("block_height") + fd_EventYieldPreferenceUpdated_timestamp = md_EventYieldPreferenceUpdated.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventYieldPreferenceUpdated)(nil) + +type fastReflection_EventYieldPreferenceUpdated EventYieldPreferenceUpdated + +func (x *EventYieldPreferenceUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventYieldPreferenceUpdated)(x) +} + +func (x *EventYieldPreferenceUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[7] + 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_EventYieldPreferenceUpdated_messageType fastReflection_EventYieldPreferenceUpdated_messageType +var _ protoreflect.MessageType = fastReflection_EventYieldPreferenceUpdated_messageType{} + +type fastReflection_EventYieldPreferenceUpdated_messageType struct{} + +func (x fastReflection_EventYieldPreferenceUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventYieldPreferenceUpdated)(nil) +} +func (x fastReflection_EventYieldPreferenceUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_EventYieldPreferenceUpdated) +} +func (x fastReflection_EventYieldPreferenceUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventYieldPreferenceUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventYieldPreferenceUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_EventYieldPreferenceUpdated +} + +// 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_EventYieldPreferenceUpdated) Type() protoreflect.MessageType { + return _fastReflection_EventYieldPreferenceUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventYieldPreferenceUpdated) New() protoreflect.Message { + return new(fastReflection_EventYieldPreferenceUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventYieldPreferenceUpdated) Interface() protoreflect.ProtoMessage { + return (*EventYieldPreferenceUpdated)(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_EventYieldPreferenceUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.User != "" { + value := protoreflect.ValueOfString(x.User) + if !f(fd_EventYieldPreferenceUpdated_user, value) { + return + } + } + if x.PreviousYieldPreference != false { + value := protoreflect.ValueOfBool(x.PreviousYieldPreference) + if !f(fd_EventYieldPreferenceUpdated_previous_yield_preference, value) { + return + } + } + if x.NewYieldPreference != false { + value := protoreflect.ValueOfBool(x.NewYieldPreference) + if !f(fd_EventYieldPreferenceUpdated_new_yield_preference, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventYieldPreferenceUpdated_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventYieldPreferenceUpdated_timestamp, 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_EventYieldPreferenceUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.user": + return x.User != "" + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.previous_yield_preference": + return x.PreviousYieldPreference != false + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.new_yield_preference": + return x.NewYieldPreference != false + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventYieldPreferenceUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventYieldPreferenceUpdated 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_EventYieldPreferenceUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.user": + x.User = "" + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.previous_yield_preference": + x.PreviousYieldPreference = false + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.new_yield_preference": + x.NewYieldPreference = false + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventYieldPreferenceUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventYieldPreferenceUpdated 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_EventYieldPreferenceUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.user": + value := x.User + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.previous_yield_preference": + value := x.PreviousYieldPreference + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.new_yield_preference": + value := x.NewYieldPreference + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventYieldPreferenceUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventYieldPreferenceUpdated 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_EventYieldPreferenceUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.user": + x.User = value.Interface().(string) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.previous_yield_preference": + x.PreviousYieldPreference = value.Bool() + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.new_yield_preference": + x.NewYieldPreference = value.Bool() + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventYieldPreferenceUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventYieldPreferenceUpdated 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_EventYieldPreferenceUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.user": + panic(fmt.Errorf("field user of message noble.dollar.vaults.v2.EventYieldPreferenceUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.previous_yield_preference": + panic(fmt.Errorf("field previous_yield_preference of message noble.dollar.vaults.v2.EventYieldPreferenceUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.new_yield_preference": + panic(fmt.Errorf("field new_yield_preference of message noble.dollar.vaults.v2.EventYieldPreferenceUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventYieldPreferenceUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventYieldPreferenceUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventYieldPreferenceUpdated 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_EventYieldPreferenceUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.user": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.previous_yield_preference": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.new_yield_preference": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventYieldPreferenceUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventYieldPreferenceUpdated 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_EventYieldPreferenceUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventYieldPreferenceUpdated", 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_EventYieldPreferenceUpdated) 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_EventYieldPreferenceUpdated) 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_EventYieldPreferenceUpdated) 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_EventYieldPreferenceUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventYieldPreferenceUpdated) + 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.User) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PreviousYieldPreference { + n += 2 + } + if x.NewYieldPreference { + n += 2 + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventYieldPreferenceUpdated) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if x.NewYieldPreference { + i-- + if x.NewYieldPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if x.PreviousYieldPreference { + i-- + if x.PreviousYieldPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(x.User) > 0 { + i -= len(x.User) + copy(dAtA[i:], x.User) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) + 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().(*EventYieldPreferenceUpdated) + 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: EventYieldPreferenceUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventYieldPreferenceUpdated: 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 User", 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.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousYieldPreference", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PreviousYieldPreference = bool(v != 0) + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewYieldPreference", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.NewYieldPreference = bool(v != 0) + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventVaultConfigUpdated protoreflect.MessageDescriptor + fd_EventVaultConfigUpdated_previous_config protoreflect.FieldDescriptor + fd_EventVaultConfigUpdated_new_config protoreflect.FieldDescriptor + fd_EventVaultConfigUpdated_authority protoreflect.FieldDescriptor + fd_EventVaultConfigUpdated_reason protoreflect.FieldDescriptor + fd_EventVaultConfigUpdated_block_height protoreflect.FieldDescriptor + fd_EventVaultConfigUpdated_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventVaultConfigUpdated = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventVaultConfigUpdated") + fd_EventVaultConfigUpdated_previous_config = md_EventVaultConfigUpdated.Fields().ByName("previous_config") + fd_EventVaultConfigUpdated_new_config = md_EventVaultConfigUpdated.Fields().ByName("new_config") + fd_EventVaultConfigUpdated_authority = md_EventVaultConfigUpdated.Fields().ByName("authority") + fd_EventVaultConfigUpdated_reason = md_EventVaultConfigUpdated.Fields().ByName("reason") + fd_EventVaultConfigUpdated_block_height = md_EventVaultConfigUpdated.Fields().ByName("block_height") + fd_EventVaultConfigUpdated_timestamp = md_EventVaultConfigUpdated.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventVaultConfigUpdated)(nil) + +type fastReflection_EventVaultConfigUpdated EventVaultConfigUpdated + +func (x *EventVaultConfigUpdated) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventVaultConfigUpdated)(x) +} + +func (x *EventVaultConfigUpdated) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[8] + 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_EventVaultConfigUpdated_messageType fastReflection_EventVaultConfigUpdated_messageType +var _ protoreflect.MessageType = fastReflection_EventVaultConfigUpdated_messageType{} + +type fastReflection_EventVaultConfigUpdated_messageType struct{} + +func (x fastReflection_EventVaultConfigUpdated_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventVaultConfigUpdated)(nil) +} +func (x fastReflection_EventVaultConfigUpdated_messageType) New() protoreflect.Message { + return new(fastReflection_EventVaultConfigUpdated) +} +func (x fastReflection_EventVaultConfigUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventVaultConfigUpdated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventVaultConfigUpdated) Descriptor() protoreflect.MessageDescriptor { + return md_EventVaultConfigUpdated +} + +// 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_EventVaultConfigUpdated) Type() protoreflect.MessageType { + return _fastReflection_EventVaultConfigUpdated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventVaultConfigUpdated) New() protoreflect.Message { + return new(fastReflection_EventVaultConfigUpdated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventVaultConfigUpdated) Interface() protoreflect.ProtoMessage { + return (*EventVaultConfigUpdated)(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_EventVaultConfigUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousConfig != "" { + value := protoreflect.ValueOfString(x.PreviousConfig) + if !f(fd_EventVaultConfigUpdated_previous_config, value) { + return + } + } + if x.NewConfig != "" { + value := protoreflect.ValueOfString(x.NewConfig) + if !f(fd_EventVaultConfigUpdated_new_config, value) { + return + } + } + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_EventVaultConfigUpdated_authority, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_EventVaultConfigUpdated_reason, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventVaultConfigUpdated_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventVaultConfigUpdated_timestamp, 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_EventVaultConfigUpdated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.previous_config": + return x.PreviousConfig != "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.new_config": + return x.NewConfig != "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.reason": + return x.Reason != "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventVaultConfigUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventVaultConfigUpdated 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_EventVaultConfigUpdated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.previous_config": + x.PreviousConfig = "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.new_config": + x.NewConfig = "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.reason": + x.Reason = "" + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventVaultConfigUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventVaultConfigUpdated 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_EventVaultConfigUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.previous_config": + value := x.PreviousConfig + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.new_config": + value := x.NewConfig + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventVaultConfigUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventVaultConfigUpdated 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_EventVaultConfigUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.previous_config": + x.PreviousConfig = value.Interface().(string) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.new_config": + x.NewConfig = value.Interface().(string) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.reason": + x.Reason = value.Interface().(string) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventVaultConfigUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventVaultConfigUpdated 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_EventVaultConfigUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.previous_config": + panic(fmt.Errorf("field previous_config of message noble.dollar.vaults.v2.EventVaultConfigUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.new_config": + panic(fmt.Errorf("field new_config of message noble.dollar.vaults.v2.EventVaultConfigUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.EventVaultConfigUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.EventVaultConfigUpdated is not mutable")) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventVaultConfigUpdated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventVaultConfigUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventVaultConfigUpdated 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_EventVaultConfigUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.previous_config": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.new_config": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.reason": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventVaultConfigUpdated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventVaultConfigUpdated 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_EventVaultConfigUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventVaultConfigUpdated", 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_EventVaultConfigUpdated) 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_EventVaultConfigUpdated) 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_EventVaultConfigUpdated) 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_EventVaultConfigUpdated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventVaultConfigUpdated) + 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.PreviousConfig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewConfig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventVaultConfigUpdated) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x22 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0x1a + } + if len(x.NewConfig) > 0 { + i -= len(x.NewConfig) + copy(dAtA[i:], x.NewConfig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewConfig))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousConfig) > 0 { + i -= len(x.PreviousConfig) + copy(dAtA[i:], x.PreviousConfig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousConfig))) + 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().(*EventVaultConfigUpdated) + 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: EventVaultConfigUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventVaultConfigUpdated: 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 PreviousConfig", 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.PreviousConfig = 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 NewConfig", 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.NewConfig = 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 Authority", 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.Authority = 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 Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventInflightFundCreated protoreflect.MessageDescriptor + fd_EventInflightFundCreated_transaction_id protoreflect.FieldDescriptor + fd_EventInflightFundCreated_route_id protoreflect.FieldDescriptor + fd_EventInflightFundCreated_operation_type protoreflect.FieldDescriptor + fd_EventInflightFundCreated_amount protoreflect.FieldDescriptor + fd_EventInflightFundCreated_value_at_initiation protoreflect.FieldDescriptor + fd_EventInflightFundCreated_initiator protoreflect.FieldDescriptor + fd_EventInflightFundCreated_source_chain protoreflect.FieldDescriptor + fd_EventInflightFundCreated_destination_chain protoreflect.FieldDescriptor + fd_EventInflightFundCreated_expected_at protoreflect.FieldDescriptor + fd_EventInflightFundCreated_block_height protoreflect.FieldDescriptor + fd_EventInflightFundCreated_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventInflightFundCreated = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventInflightFundCreated") + fd_EventInflightFundCreated_transaction_id = md_EventInflightFundCreated.Fields().ByName("transaction_id") + fd_EventInflightFundCreated_route_id = md_EventInflightFundCreated.Fields().ByName("route_id") + fd_EventInflightFundCreated_operation_type = md_EventInflightFundCreated.Fields().ByName("operation_type") + fd_EventInflightFundCreated_amount = md_EventInflightFundCreated.Fields().ByName("amount") + fd_EventInflightFundCreated_value_at_initiation = md_EventInflightFundCreated.Fields().ByName("value_at_initiation") + fd_EventInflightFundCreated_initiator = md_EventInflightFundCreated.Fields().ByName("initiator") + fd_EventInflightFundCreated_source_chain = md_EventInflightFundCreated.Fields().ByName("source_chain") + fd_EventInflightFundCreated_destination_chain = md_EventInflightFundCreated.Fields().ByName("destination_chain") + fd_EventInflightFundCreated_expected_at = md_EventInflightFundCreated.Fields().ByName("expected_at") + fd_EventInflightFundCreated_block_height = md_EventInflightFundCreated.Fields().ByName("block_height") + fd_EventInflightFundCreated_timestamp = md_EventInflightFundCreated.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventInflightFundCreated)(nil) + +type fastReflection_EventInflightFundCreated EventInflightFundCreated + +func (x *EventInflightFundCreated) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventInflightFundCreated)(x) +} + +func (x *EventInflightFundCreated) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[9] + 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_EventInflightFundCreated_messageType fastReflection_EventInflightFundCreated_messageType +var _ protoreflect.MessageType = fastReflection_EventInflightFundCreated_messageType{} + +type fastReflection_EventInflightFundCreated_messageType struct{} + +func (x fastReflection_EventInflightFundCreated_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventInflightFundCreated)(nil) +} +func (x fastReflection_EventInflightFundCreated_messageType) New() protoreflect.Message { + return new(fastReflection_EventInflightFundCreated) +} +func (x fastReflection_EventInflightFundCreated_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundCreated +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventInflightFundCreated) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundCreated +} + +// 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_EventInflightFundCreated) Type() protoreflect.MessageType { + return _fastReflection_EventInflightFundCreated_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventInflightFundCreated) New() protoreflect.Message { + return new(fastReflection_EventInflightFundCreated) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventInflightFundCreated) Interface() protoreflect.ProtoMessage { + return (*EventInflightFundCreated)(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_EventInflightFundCreated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_EventInflightFundCreated_transaction_id, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_EventInflightFundCreated_route_id, value) { + return + } + } + if x.OperationType != "" { + value := protoreflect.ValueOfString(x.OperationType) + if !f(fd_EventInflightFundCreated_operation_type, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_EventInflightFundCreated_amount, value) { + return + } + } + if x.ValueAtInitiation != "" { + value := protoreflect.ValueOfString(x.ValueAtInitiation) + if !f(fd_EventInflightFundCreated_value_at_initiation, value) { + return + } + } + if x.Initiator != "" { + value := protoreflect.ValueOfString(x.Initiator) + if !f(fd_EventInflightFundCreated_initiator, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_EventInflightFundCreated_source_chain, value) { + return + } + } + if x.DestinationChain != "" { + value := protoreflect.ValueOfString(x.DestinationChain) + if !f(fd_EventInflightFundCreated_destination_chain, value) { + return + } + } + if x.ExpectedAt != nil { + value := protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + if !f(fd_EventInflightFundCreated_expected_at, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventInflightFundCreated_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventInflightFundCreated_timestamp, 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_EventInflightFundCreated) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCreated.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundCreated.operation_type": + return x.OperationType != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.value_at_initiation": + return x.ValueAtInitiation != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.initiator": + return x.Initiator != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.destination_chain": + return x.DestinationChain != "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.expected_at": + return x.ExpectedAt != nil + case "noble.dollar.vaults.v2.EventInflightFundCreated.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCreated.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCreated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCreated 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_EventInflightFundCreated) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCreated.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundCreated.operation_type": + x.OperationType = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.value_at_initiation": + x.ValueAtInitiation = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.initiator": + x.Initiator = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.destination_chain": + x.DestinationChain = "" + case "noble.dollar.vaults.v2.EventInflightFundCreated.expected_at": + x.ExpectedAt = nil + case "noble.dollar.vaults.v2.EventInflightFundCreated.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCreated.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCreated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCreated 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_EventInflightFundCreated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCreated.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.operation_type": + value := x.OperationType + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.value_at_initiation": + value := x.ValueAtInitiation + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.initiator": + value := x.Initiator + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.destination_chain": + value := x.DestinationChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.expected_at": + value := x.ExpectedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundCreated.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundCreated.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCreated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCreated 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_EventInflightFundCreated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCreated.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.EventInflightFundCreated.operation_type": + x.OperationType = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.value_at_initiation": + x.ValueAtInitiation = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.initiator": + x.Initiator = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.destination_chain": + x.DestinationChain = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCreated.expected_at": + x.ExpectedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.EventInflightFundCreated.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundCreated.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCreated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCreated 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_EventInflightFundCreated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCreated.expected_at": + if x.ExpectedAt == nil { + x.ExpectedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundCreated.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundCreated.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.operation_type": + panic(fmt.Errorf("field operation_type of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.value_at_initiation": + panic(fmt.Errorf("field value_at_initiation of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.initiator": + panic(fmt.Errorf("field initiator of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.destination_chain": + panic(fmt.Errorf("field destination_chain of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCreated.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventInflightFundCreated is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCreated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCreated 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_EventInflightFundCreated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCreated.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.EventInflightFundCreated.operation_type": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.value_at_initiation": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.initiator": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.destination_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCreated.expected_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundCreated.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundCreated.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCreated")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCreated 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_EventInflightFundCreated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventInflightFundCreated", 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_EventInflightFundCreated) 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_EventInflightFundCreated) 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_EventInflightFundCreated) 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_EventInflightFundCreated) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventInflightFundCreated) + 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.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.OperationType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ValueAtInitiation) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Initiator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedAt != nil { + l = options.Size(x.ExpectedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventInflightFundCreated) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x5a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x50 + } + if x.ExpectedAt != nil { + encoded, err := options.Marshal(x.ExpectedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + if len(x.DestinationChain) > 0 { + i -= len(x.DestinationChain) + copy(dAtA[i:], x.DestinationChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationChain))) + i-- + dAtA[i] = 0x42 + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x3a + } + if len(x.Initiator) > 0 { + i -= len(x.Initiator) + copy(dAtA[i:], x.Initiator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Initiator))) + i-- + dAtA[i] = 0x32 + } + if len(x.ValueAtInitiation) > 0 { + i -= len(x.ValueAtInitiation) + copy(dAtA[i:], x.ValueAtInitiation) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ValueAtInitiation))) + i-- + dAtA[i] = 0x2a + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x22 + } + if len(x.OperationType) > 0 { + i -= len(x.OperationType) + copy(dAtA[i:], x.OperationType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OperationType))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + 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().(*EventInflightFundCreated) + 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: EventInflightFundCreated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventInflightFundCreated: 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 TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OperationType", 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.OperationType = 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 Amount", 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.Amount = 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 ValueAtInitiation", 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.ValueAtInitiation = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Initiator", 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.Initiator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationChain", 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.DestinationChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedAt == nil { + x.ExpectedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventInflightFundStatusChanged protoreflect.MessageDescriptor + fd_EventInflightFundStatusChanged_transaction_id protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_route_id protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_previous_status protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_new_status protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_amount protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_reason protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_block_height protoreflect.FieldDescriptor + fd_EventInflightFundStatusChanged_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventInflightFundStatusChanged = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventInflightFundStatusChanged") + fd_EventInflightFundStatusChanged_transaction_id = md_EventInflightFundStatusChanged.Fields().ByName("transaction_id") + fd_EventInflightFundStatusChanged_route_id = md_EventInflightFundStatusChanged.Fields().ByName("route_id") + fd_EventInflightFundStatusChanged_previous_status = md_EventInflightFundStatusChanged.Fields().ByName("previous_status") + fd_EventInflightFundStatusChanged_new_status = md_EventInflightFundStatusChanged.Fields().ByName("new_status") + fd_EventInflightFundStatusChanged_amount = md_EventInflightFundStatusChanged.Fields().ByName("amount") + fd_EventInflightFundStatusChanged_reason = md_EventInflightFundStatusChanged.Fields().ByName("reason") + fd_EventInflightFundStatusChanged_block_height = md_EventInflightFundStatusChanged.Fields().ByName("block_height") + fd_EventInflightFundStatusChanged_timestamp = md_EventInflightFundStatusChanged.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventInflightFundStatusChanged)(nil) + +type fastReflection_EventInflightFundStatusChanged EventInflightFundStatusChanged + +func (x *EventInflightFundStatusChanged) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventInflightFundStatusChanged)(x) +} + +func (x *EventInflightFundStatusChanged) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[10] + 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_EventInflightFundStatusChanged_messageType fastReflection_EventInflightFundStatusChanged_messageType +var _ protoreflect.MessageType = fastReflection_EventInflightFundStatusChanged_messageType{} + +type fastReflection_EventInflightFundStatusChanged_messageType struct{} + +func (x fastReflection_EventInflightFundStatusChanged_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventInflightFundStatusChanged)(nil) +} +func (x fastReflection_EventInflightFundStatusChanged_messageType) New() protoreflect.Message { + return new(fastReflection_EventInflightFundStatusChanged) +} +func (x fastReflection_EventInflightFundStatusChanged_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundStatusChanged +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventInflightFundStatusChanged) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundStatusChanged +} + +// 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_EventInflightFundStatusChanged) Type() protoreflect.MessageType { + return _fastReflection_EventInflightFundStatusChanged_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventInflightFundStatusChanged) New() protoreflect.Message { + return new(fastReflection_EventInflightFundStatusChanged) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventInflightFundStatusChanged) Interface() protoreflect.ProtoMessage { + return (*EventInflightFundStatusChanged)(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_EventInflightFundStatusChanged) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_EventInflightFundStatusChanged_transaction_id, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_EventInflightFundStatusChanged_route_id, value) { + return + } + } + if x.PreviousStatus != "" { + value := protoreflect.ValueOfString(x.PreviousStatus) + if !f(fd_EventInflightFundStatusChanged_previous_status, value) { + return + } + } + if x.NewStatus != "" { + value := protoreflect.ValueOfString(x.NewStatus) + if !f(fd_EventInflightFundStatusChanged_new_status, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_EventInflightFundStatusChanged_amount, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_EventInflightFundStatusChanged_reason, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventInflightFundStatusChanged_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventInflightFundStatusChanged_timestamp, 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_EventInflightFundStatusChanged) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.previous_status": + return x.PreviousStatus != "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.new_status": + return x.NewStatus != "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.reason": + return x.Reason != "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStatusChanged")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStatusChanged 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_EventInflightFundStatusChanged) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.previous_status": + x.PreviousStatus = "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.new_status": + x.NewStatus = "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.reason": + x.Reason = "" + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStatusChanged")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStatusChanged 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_EventInflightFundStatusChanged) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.previous_status": + value := x.PreviousStatus + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.new_status": + value := x.NewStatus + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStatusChanged")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStatusChanged 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_EventInflightFundStatusChanged) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.previous_status": + x.PreviousStatus = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.new_status": + x.NewStatus = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.reason": + x.Reason = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStatusChanged")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStatusChanged 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_EventInflightFundStatusChanged) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.previous_status": + panic(fmt.Errorf("field previous_status of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.new_status": + panic(fmt.Errorf("field new_status of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventInflightFundStatusChanged is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStatusChanged")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStatusChanged 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_EventInflightFundStatusChanged) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.previous_status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.new_status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.reason": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStatusChanged")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStatusChanged 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_EventInflightFundStatusChanged) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventInflightFundStatusChanged", 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_EventInflightFundStatusChanged) 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_EventInflightFundStatusChanged) 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_EventInflightFundStatusChanged) 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_EventInflightFundStatusChanged) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventInflightFundStatusChanged) + 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.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.PreviousStatus) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewStatus) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventInflightFundStatusChanged) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x38 + } + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x32 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x2a + } + if len(x.NewStatus) > 0 { + i -= len(x.NewStatus) + copy(dAtA[i:], x.NewStatus) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewStatus))) + i-- + dAtA[i] = 0x22 + } + if len(x.PreviousStatus) > 0 { + i -= len(x.PreviousStatus) + copy(dAtA[i:], x.PreviousStatus) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousStatus))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + 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().(*EventInflightFundStatusChanged) + 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: EventInflightFundStatusChanged: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventInflightFundStatusChanged: 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 TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousStatus", 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.PreviousStatus = 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 NewStatus", 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.NewStatus = 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 Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventInflightFundCompleted protoreflect.MessageDescriptor + fd_EventInflightFundCompleted_transaction_id protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_route_id protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_operation_type protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_final_amount protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_initial_amount protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_duration_seconds protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_block_height protoreflect.FieldDescriptor + fd_EventInflightFundCompleted_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventInflightFundCompleted = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventInflightFundCompleted") + fd_EventInflightFundCompleted_transaction_id = md_EventInflightFundCompleted.Fields().ByName("transaction_id") + fd_EventInflightFundCompleted_route_id = md_EventInflightFundCompleted.Fields().ByName("route_id") + fd_EventInflightFundCompleted_operation_type = md_EventInflightFundCompleted.Fields().ByName("operation_type") + fd_EventInflightFundCompleted_final_amount = md_EventInflightFundCompleted.Fields().ByName("final_amount") + fd_EventInflightFundCompleted_initial_amount = md_EventInflightFundCompleted.Fields().ByName("initial_amount") + fd_EventInflightFundCompleted_duration_seconds = md_EventInflightFundCompleted.Fields().ByName("duration_seconds") + fd_EventInflightFundCompleted_block_height = md_EventInflightFundCompleted.Fields().ByName("block_height") + fd_EventInflightFundCompleted_timestamp = md_EventInflightFundCompleted.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventInflightFundCompleted)(nil) + +type fastReflection_EventInflightFundCompleted EventInflightFundCompleted + +func (x *EventInflightFundCompleted) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventInflightFundCompleted)(x) +} + +func (x *EventInflightFundCompleted) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[11] + 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_EventInflightFundCompleted_messageType fastReflection_EventInflightFundCompleted_messageType +var _ protoreflect.MessageType = fastReflection_EventInflightFundCompleted_messageType{} + +type fastReflection_EventInflightFundCompleted_messageType struct{} + +func (x fastReflection_EventInflightFundCompleted_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventInflightFundCompleted)(nil) +} +func (x fastReflection_EventInflightFundCompleted_messageType) New() protoreflect.Message { + return new(fastReflection_EventInflightFundCompleted) +} +func (x fastReflection_EventInflightFundCompleted_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundCompleted +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventInflightFundCompleted) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundCompleted +} + +// 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_EventInflightFundCompleted) Type() protoreflect.MessageType { + return _fastReflection_EventInflightFundCompleted_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventInflightFundCompleted) New() protoreflect.Message { + return new(fastReflection_EventInflightFundCompleted) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventInflightFundCompleted) Interface() protoreflect.ProtoMessage { + return (*EventInflightFundCompleted)(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_EventInflightFundCompleted) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_EventInflightFundCompleted_transaction_id, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_EventInflightFundCompleted_route_id, value) { + return + } + } + if x.OperationType != "" { + value := protoreflect.ValueOfString(x.OperationType) + if !f(fd_EventInflightFundCompleted_operation_type, value) { + return + } + } + if x.FinalAmount != "" { + value := protoreflect.ValueOfString(x.FinalAmount) + if !f(fd_EventInflightFundCompleted_final_amount, value) { + return + } + } + if x.InitialAmount != "" { + value := protoreflect.ValueOfString(x.InitialAmount) + if !f(fd_EventInflightFundCompleted_initial_amount, value) { + return + } + } + if x.DurationSeconds != int64(0) { + value := protoreflect.ValueOfInt64(x.DurationSeconds) + if !f(fd_EventInflightFundCompleted_duration_seconds, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventInflightFundCompleted_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventInflightFundCompleted_timestamp, 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_EventInflightFundCompleted) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCompleted.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.operation_type": + return x.OperationType != "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.final_amount": + return x.FinalAmount != "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.initial_amount": + return x.InitialAmount != "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.duration_seconds": + return x.DurationSeconds != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCompleted")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCompleted 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_EventInflightFundCompleted) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCompleted.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.operation_type": + x.OperationType = "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.final_amount": + x.FinalAmount = "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.initial_amount": + x.InitialAmount = "" + case "noble.dollar.vaults.v2.EventInflightFundCompleted.duration_seconds": + x.DurationSeconds = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCompleted")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCompleted 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_EventInflightFundCompleted) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCompleted.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.operation_type": + value := x.OperationType + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.final_amount": + value := x.FinalAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.initial_amount": + value := x.InitialAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.duration_seconds": + value := x.DurationSeconds + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCompleted")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCompleted 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_EventInflightFundCompleted) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCompleted.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.operation_type": + x.OperationType = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.final_amount": + x.FinalAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.initial_amount": + x.InitialAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.duration_seconds": + x.DurationSeconds = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundCompleted.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCompleted")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCompleted 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_EventInflightFundCompleted) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.operation_type": + panic(fmt.Errorf("field operation_type of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.final_amount": + panic(fmt.Errorf("field final_amount of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.initial_amount": + panic(fmt.Errorf("field initial_amount of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.duration_seconds": + panic(fmt.Errorf("field duration_seconds of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventInflightFundCompleted is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCompleted")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCompleted 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_EventInflightFundCompleted) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCompleted.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCompleted.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.operation_type": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCompleted.final_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCompleted.initial_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCompleted.duration_seconds": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCompleted")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCompleted 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_EventInflightFundCompleted) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventInflightFundCompleted", 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_EventInflightFundCompleted) 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_EventInflightFundCompleted) 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_EventInflightFundCompleted) 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_EventInflightFundCompleted) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventInflightFundCompleted) + 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.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.OperationType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.FinalAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.InitialAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DurationSeconds != 0 { + n += 1 + runtime.Sov(uint64(x.DurationSeconds)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventInflightFundCompleted) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x38 + } + if x.DurationSeconds != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DurationSeconds)) + i-- + dAtA[i] = 0x30 + } + if len(x.InitialAmount) > 0 { + i -= len(x.InitialAmount) + copy(dAtA[i:], x.InitialAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InitialAmount))) + i-- + dAtA[i] = 0x2a + } + if len(x.FinalAmount) > 0 { + i -= len(x.FinalAmount) + copy(dAtA[i:], x.FinalAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FinalAmount))) + i-- + dAtA[i] = 0x22 + } + if len(x.OperationType) > 0 { + i -= len(x.OperationType) + copy(dAtA[i:], x.OperationType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OperationType))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + 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().(*EventInflightFundCompleted) + 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: EventInflightFundCompleted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventInflightFundCompleted: 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 TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OperationType", 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.OperationType = 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 FinalAmount", 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.FinalAmount = 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 InitialAmount", 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.InitialAmount = 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 DurationSeconds", wireType) + } + x.DurationSeconds = 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.DurationSeconds |= int64(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 BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventInflightFundStale protoreflect.MessageDescriptor + fd_EventInflightFundStale_transaction_id protoreflect.FieldDescriptor + fd_EventInflightFundStale_route_id protoreflect.FieldDescriptor + fd_EventInflightFundStale_amount protoreflect.FieldDescriptor + fd_EventInflightFundStale_hours_overdue protoreflect.FieldDescriptor + fd_EventInflightFundStale_expected_at protoreflect.FieldDescriptor + fd_EventInflightFundStale_current_status protoreflect.FieldDescriptor + fd_EventInflightFundStale_recommended_action protoreflect.FieldDescriptor + fd_EventInflightFundStale_block_height protoreflect.FieldDescriptor + fd_EventInflightFundStale_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventInflightFundStale = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventInflightFundStale") + fd_EventInflightFundStale_transaction_id = md_EventInflightFundStale.Fields().ByName("transaction_id") + fd_EventInflightFundStale_route_id = md_EventInflightFundStale.Fields().ByName("route_id") + fd_EventInflightFundStale_amount = md_EventInflightFundStale.Fields().ByName("amount") + fd_EventInflightFundStale_hours_overdue = md_EventInflightFundStale.Fields().ByName("hours_overdue") + fd_EventInflightFundStale_expected_at = md_EventInflightFundStale.Fields().ByName("expected_at") + fd_EventInflightFundStale_current_status = md_EventInflightFundStale.Fields().ByName("current_status") + fd_EventInflightFundStale_recommended_action = md_EventInflightFundStale.Fields().ByName("recommended_action") + fd_EventInflightFundStale_block_height = md_EventInflightFundStale.Fields().ByName("block_height") + fd_EventInflightFundStale_timestamp = md_EventInflightFundStale.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventInflightFundStale)(nil) + +type fastReflection_EventInflightFundStale EventInflightFundStale + +func (x *EventInflightFundStale) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventInflightFundStale)(x) +} + +func (x *EventInflightFundStale) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[12] + 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_EventInflightFundStale_messageType fastReflection_EventInflightFundStale_messageType +var _ protoreflect.MessageType = fastReflection_EventInflightFundStale_messageType{} + +type fastReflection_EventInflightFundStale_messageType struct{} + +func (x fastReflection_EventInflightFundStale_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventInflightFundStale)(nil) +} +func (x fastReflection_EventInflightFundStale_messageType) New() protoreflect.Message { + return new(fastReflection_EventInflightFundStale) +} +func (x fastReflection_EventInflightFundStale_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundStale +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventInflightFundStale) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundStale +} + +// 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_EventInflightFundStale) Type() protoreflect.MessageType { + return _fastReflection_EventInflightFundStale_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventInflightFundStale) New() protoreflect.Message { + return new(fastReflection_EventInflightFundStale) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventInflightFundStale) Interface() protoreflect.ProtoMessage { + return (*EventInflightFundStale)(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_EventInflightFundStale) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_EventInflightFundStale_transaction_id, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_EventInflightFundStale_route_id, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_EventInflightFundStale_amount, value) { + return + } + } + if x.HoursOverdue != int64(0) { + value := protoreflect.ValueOfInt64(x.HoursOverdue) + if !f(fd_EventInflightFundStale_hours_overdue, value) { + return + } + } + if x.ExpectedAt != nil { + value := protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + if !f(fd_EventInflightFundStale_expected_at, value) { + return + } + } + if x.CurrentStatus != "" { + value := protoreflect.ValueOfString(x.CurrentStatus) + if !f(fd_EventInflightFundStale_current_status, value) { + return + } + } + if x.RecommendedAction != "" { + value := protoreflect.ValueOfString(x.RecommendedAction) + if !f(fd_EventInflightFundStale_recommended_action, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventInflightFundStale_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventInflightFundStale_timestamp, 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_EventInflightFundStale) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStale.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.EventInflightFundStale.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundStale.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.EventInflightFundStale.hours_overdue": + return x.HoursOverdue != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundStale.expected_at": + return x.ExpectedAt != nil + case "noble.dollar.vaults.v2.EventInflightFundStale.current_status": + return x.CurrentStatus != "" + case "noble.dollar.vaults.v2.EventInflightFundStale.recommended_action": + return x.RecommendedAction != "" + case "noble.dollar.vaults.v2.EventInflightFundStale.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundStale.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStale")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStale 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_EventInflightFundStale) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStale.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.EventInflightFundStale.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundStale.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.EventInflightFundStale.hours_overdue": + x.HoursOverdue = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundStale.expected_at": + x.ExpectedAt = nil + case "noble.dollar.vaults.v2.EventInflightFundStale.current_status": + x.CurrentStatus = "" + case "noble.dollar.vaults.v2.EventInflightFundStale.recommended_action": + x.RecommendedAction = "" + case "noble.dollar.vaults.v2.EventInflightFundStale.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundStale.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStale")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStale 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_EventInflightFundStale) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStale.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.hours_overdue": + value := x.HoursOverdue + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.expected_at": + value := x.ExpectedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundStale.current_status": + value := x.CurrentStatus + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.recommended_action": + value := x.RecommendedAction + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundStale.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStale")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStale 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_EventInflightFundStale) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStale.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStale.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.EventInflightFundStale.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStale.hours_overdue": + x.HoursOverdue = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundStale.expected_at": + x.ExpectedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.EventInflightFundStale.current_status": + x.CurrentStatus = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStale.recommended_action": + x.RecommendedAction = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundStale.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundStale.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStale")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStale 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_EventInflightFundStale) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStale.expected_at": + if x.ExpectedAt == nil { + x.ExpectedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundStale.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundStale.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStale.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStale.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStale.hours_overdue": + panic(fmt.Errorf("field hours_overdue of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStale.current_status": + panic(fmt.Errorf("field current_status of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStale.recommended_action": + panic(fmt.Errorf("field recommended_action of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundStale.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventInflightFundStale is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStale")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStale 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_EventInflightFundStale) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundStale.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStale.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.EventInflightFundStale.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStale.hours_overdue": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundStale.expected_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundStale.current_status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStale.recommended_action": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundStale.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundStale.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundStale")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundStale 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_EventInflightFundStale) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventInflightFundStale", 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_EventInflightFundStale) 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_EventInflightFundStale) 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_EventInflightFundStale) 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_EventInflightFundStale) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventInflightFundStale) + 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.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.HoursOverdue != 0 { + n += 1 + runtime.Sov(uint64(x.HoursOverdue)) + } + if x.ExpectedAt != nil { + l = options.Size(x.ExpectedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CurrentStatus) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RecommendedAction) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventInflightFundStale) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x40 + } + if len(x.RecommendedAction) > 0 { + i -= len(x.RecommendedAction) + copy(dAtA[i:], x.RecommendedAction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecommendedAction))) + i-- + dAtA[i] = 0x3a + } + if len(x.CurrentStatus) > 0 { + i -= len(x.CurrentStatus) + copy(dAtA[i:], x.CurrentStatus) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentStatus))) + i-- + dAtA[i] = 0x32 + } + if x.ExpectedAt != nil { + encoded, err := options.Marshal(x.ExpectedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.HoursOverdue != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.HoursOverdue)) + i-- + dAtA[i] = 0x20 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + 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().(*EventInflightFundStale) + 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: EventInflightFundStale: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventInflightFundStale: 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 TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HoursOverdue", wireType) + } + x.HoursOverdue = 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.HoursOverdue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedAt == nil { + x.ExpectedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrentStatus", 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.CurrentStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecommendedAction", 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.RecommendedAction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventInflightFundCleaned protoreflect.MessageDescriptor + fd_EventInflightFundCleaned_transaction_id protoreflect.FieldDescriptor + fd_EventInflightFundCleaned_route_id protoreflect.FieldDescriptor + fd_EventInflightFundCleaned_amount_returned protoreflect.FieldDescriptor + fd_EventInflightFundCleaned_reason protoreflect.FieldDescriptor + fd_EventInflightFundCleaned_authority protoreflect.FieldDescriptor + fd_EventInflightFundCleaned_block_height protoreflect.FieldDescriptor + fd_EventInflightFundCleaned_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventInflightFundCleaned = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventInflightFundCleaned") + fd_EventInflightFundCleaned_transaction_id = md_EventInflightFundCleaned.Fields().ByName("transaction_id") + fd_EventInflightFundCleaned_route_id = md_EventInflightFundCleaned.Fields().ByName("route_id") + fd_EventInflightFundCleaned_amount_returned = md_EventInflightFundCleaned.Fields().ByName("amount_returned") + fd_EventInflightFundCleaned_reason = md_EventInflightFundCleaned.Fields().ByName("reason") + fd_EventInflightFundCleaned_authority = md_EventInflightFundCleaned.Fields().ByName("authority") + fd_EventInflightFundCleaned_block_height = md_EventInflightFundCleaned.Fields().ByName("block_height") + fd_EventInflightFundCleaned_timestamp = md_EventInflightFundCleaned.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventInflightFundCleaned)(nil) + +type fastReflection_EventInflightFundCleaned EventInflightFundCleaned + +func (x *EventInflightFundCleaned) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventInflightFundCleaned)(x) +} + +func (x *EventInflightFundCleaned) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[13] + 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_EventInflightFundCleaned_messageType fastReflection_EventInflightFundCleaned_messageType +var _ protoreflect.MessageType = fastReflection_EventInflightFundCleaned_messageType{} + +type fastReflection_EventInflightFundCleaned_messageType struct{} + +func (x fastReflection_EventInflightFundCleaned_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventInflightFundCleaned)(nil) +} +func (x fastReflection_EventInflightFundCleaned_messageType) New() protoreflect.Message { + return new(fastReflection_EventInflightFundCleaned) +} +func (x fastReflection_EventInflightFundCleaned_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundCleaned +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventInflightFundCleaned) Descriptor() protoreflect.MessageDescriptor { + return md_EventInflightFundCleaned +} + +// 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_EventInflightFundCleaned) Type() protoreflect.MessageType { + return _fastReflection_EventInflightFundCleaned_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventInflightFundCleaned) New() protoreflect.Message { + return new(fastReflection_EventInflightFundCleaned) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventInflightFundCleaned) Interface() protoreflect.ProtoMessage { + return (*EventInflightFundCleaned)(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_EventInflightFundCleaned) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_EventInflightFundCleaned_transaction_id, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_EventInflightFundCleaned_route_id, value) { + return + } + } + if x.AmountReturned != "" { + value := protoreflect.ValueOfString(x.AmountReturned) + if !f(fd_EventInflightFundCleaned_amount_returned, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_EventInflightFundCleaned_reason, value) { + return + } + } + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_EventInflightFundCleaned_authority, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventInflightFundCleaned_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventInflightFundCleaned_timestamp, 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_EventInflightFundCleaned) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCleaned.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.amount_returned": + return x.AmountReturned != "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.reason": + return x.Reason != "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCleaned")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCleaned 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_EventInflightFundCleaned) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCleaned.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.amount_returned": + x.AmountReturned = "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.reason": + x.Reason = "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.EventInflightFundCleaned.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCleaned")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCleaned 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_EventInflightFundCleaned) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCleaned.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.amount_returned": + value := x.AmountReturned + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCleaned")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCleaned 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_EventInflightFundCleaned) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCleaned.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.amount_returned": + x.AmountReturned = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.reason": + x.Reason = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCleaned")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCleaned 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_EventInflightFundCleaned) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.EventInflightFundCleaned is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.EventInflightFundCleaned is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.amount_returned": + panic(fmt.Errorf("field amount_returned of message noble.dollar.vaults.v2.EventInflightFundCleaned is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.EventInflightFundCleaned is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.EventInflightFundCleaned is not mutable")) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventInflightFundCleaned is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCleaned")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCleaned 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_EventInflightFundCleaned) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventInflightFundCleaned.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCleaned.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.amount_returned": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCleaned.reason": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCleaned.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventInflightFundCleaned.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventInflightFundCleaned")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventInflightFundCleaned 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_EventInflightFundCleaned) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventInflightFundCleaned", 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_EventInflightFundCleaned) 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_EventInflightFundCleaned) 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_EventInflightFundCleaned) 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_EventInflightFundCleaned) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventInflightFundCleaned) + 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.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.AmountReturned) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventInflightFundCleaned) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x30 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0x2a + } + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x22 + } + if len(x.AmountReturned) > 0 { + i -= len(x.AmountReturned) + copy(dAtA[i:], x.AmountReturned) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountReturned))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + 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().(*EventInflightFundCleaned) + 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: EventInflightFundCleaned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventInflightFundCleaned: 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 TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AmountReturned", 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.AmountReturned = 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 Reason", 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.Reason = 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 Authority", 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.Authority = 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 BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_EventRouteCapacityExceeded protoreflect.MessageDescriptor + fd_EventRouteCapacityExceeded_route_id protoreflect.FieldDescriptor + fd_EventRouteCapacityExceeded_current_inflight_value protoreflect.FieldDescriptor + fd_EventRouteCapacityExceeded_capacity_limit protoreflect.FieldDescriptor + fd_EventRouteCapacityExceeded_attempted_amount protoreflect.FieldDescriptor + fd_EventRouteCapacityExceeded_block_height protoreflect.FieldDescriptor + fd_EventRouteCapacityExceeded_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_events_proto_init() + md_EventRouteCapacityExceeded = File_noble_dollar_vaults_v2_events_proto.Messages().ByName("EventRouteCapacityExceeded") + fd_EventRouteCapacityExceeded_route_id = md_EventRouteCapacityExceeded.Fields().ByName("route_id") + fd_EventRouteCapacityExceeded_current_inflight_value = md_EventRouteCapacityExceeded.Fields().ByName("current_inflight_value") + fd_EventRouteCapacityExceeded_capacity_limit = md_EventRouteCapacityExceeded.Fields().ByName("capacity_limit") + fd_EventRouteCapacityExceeded_attempted_amount = md_EventRouteCapacityExceeded.Fields().ByName("attempted_amount") + fd_EventRouteCapacityExceeded_block_height = md_EventRouteCapacityExceeded.Fields().ByName("block_height") + fd_EventRouteCapacityExceeded_timestamp = md_EventRouteCapacityExceeded.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_EventRouteCapacityExceeded)(nil) + +type fastReflection_EventRouteCapacityExceeded EventRouteCapacityExceeded + +func (x *EventRouteCapacityExceeded) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventRouteCapacityExceeded)(x) +} + +func (x *EventRouteCapacityExceeded) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[14] + 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_EventRouteCapacityExceeded_messageType fastReflection_EventRouteCapacityExceeded_messageType +var _ protoreflect.MessageType = fastReflection_EventRouteCapacityExceeded_messageType{} + +type fastReflection_EventRouteCapacityExceeded_messageType struct{} + +func (x fastReflection_EventRouteCapacityExceeded_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventRouteCapacityExceeded)(nil) +} +func (x fastReflection_EventRouteCapacityExceeded_messageType) New() protoreflect.Message { + return new(fastReflection_EventRouteCapacityExceeded) +} +func (x fastReflection_EventRouteCapacityExceeded_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventRouteCapacityExceeded +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventRouteCapacityExceeded) Descriptor() protoreflect.MessageDescriptor { + return md_EventRouteCapacityExceeded +} + +// 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_EventRouteCapacityExceeded) Type() protoreflect.MessageType { + return _fastReflection_EventRouteCapacityExceeded_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventRouteCapacityExceeded) New() protoreflect.Message { + return new(fastReflection_EventRouteCapacityExceeded) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventRouteCapacityExceeded) Interface() protoreflect.ProtoMessage { + return (*EventRouteCapacityExceeded)(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_EventRouteCapacityExceeded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_EventRouteCapacityExceeded_route_id, value) { + return + } + } + if x.CurrentInflightValue != "" { + value := protoreflect.ValueOfString(x.CurrentInflightValue) + if !f(fd_EventRouteCapacityExceeded_current_inflight_value, value) { + return + } + } + if x.CapacityLimit != "" { + value := protoreflect.ValueOfString(x.CapacityLimit) + if !f(fd_EventRouteCapacityExceeded_capacity_limit, value) { + return + } + } + if x.AttemptedAmount != "" { + value := protoreflect.ValueOfString(x.AttemptedAmount) + if !f(fd_EventRouteCapacityExceeded_attempted_amount, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_EventRouteCapacityExceeded_block_height, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_EventRouteCapacityExceeded_timestamp, 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_EventRouteCapacityExceeded) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.current_inflight_value": + return x.CurrentInflightValue != "" + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.capacity_limit": + return x.CapacityLimit != "" + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.attempted_amount": + return x.AttemptedAmount != "" + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventRouteCapacityExceeded")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventRouteCapacityExceeded 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_EventRouteCapacityExceeded) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.current_inflight_value": + x.CurrentInflightValue = "" + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.capacity_limit": + x.CapacityLimit = "" + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.attempted_amount": + x.AttemptedAmount = "" + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventRouteCapacityExceeded")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventRouteCapacityExceeded 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_EventRouteCapacityExceeded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.current_inflight_value": + value := x.CurrentInflightValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.capacity_limit": + value := x.CapacityLimit + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.attempted_amount": + value := x.AttemptedAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventRouteCapacityExceeded")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventRouteCapacityExceeded 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_EventRouteCapacityExceeded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.current_inflight_value": + x.CurrentInflightValue = value.Interface().(string) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.capacity_limit": + x.CapacityLimit = value.Interface().(string) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.attempted_amount": + x.AttemptedAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventRouteCapacityExceeded")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventRouteCapacityExceeded 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_EventRouteCapacityExceeded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.EventRouteCapacityExceeded is not mutable")) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.current_inflight_value": + panic(fmt.Errorf("field current_inflight_value of message noble.dollar.vaults.v2.EventRouteCapacityExceeded is not mutable")) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.capacity_limit": + panic(fmt.Errorf("field capacity_limit of message noble.dollar.vaults.v2.EventRouteCapacityExceeded is not mutable")) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.attempted_amount": + panic(fmt.Errorf("field attempted_amount of message noble.dollar.vaults.v2.EventRouteCapacityExceeded is not mutable")) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.EventRouteCapacityExceeded is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventRouteCapacityExceeded")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventRouteCapacityExceeded 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_EventRouteCapacityExceeded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.current_inflight_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.capacity_limit": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.attempted_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EventRouteCapacityExceeded")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EventRouteCapacityExceeded 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_EventRouteCapacityExceeded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EventRouteCapacityExceeded", 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_EventRouteCapacityExceeded) 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_EventRouteCapacityExceeded) 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_EventRouteCapacityExceeded) 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_EventRouteCapacityExceeded) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventRouteCapacityExceeded) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.CurrentInflightValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CapacityLimit) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AttemptedAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EventRouteCapacityExceeded) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(x.AttemptedAmount) > 0 { + i -= len(x.AttemptedAmount) + copy(dAtA[i:], x.AttemptedAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttemptedAmount))) + i-- + dAtA[i] = 0x22 + } + if len(x.CapacityLimit) > 0 { + i -= len(x.CapacityLimit) + copy(dAtA[i:], x.CapacityLimit) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CapacityLimit))) + i-- + dAtA[i] = 0x1a + } + if len(x.CurrentInflightValue) > 0 { + i -= len(x.CurrentInflightValue) + copy(dAtA[i:], x.CurrentInflightValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentInflightValue))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*EventRouteCapacityExceeded) + 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: EventRouteCapacityExceeded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventRouteCapacityExceeded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrentInflightValue", 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.CurrentInflightValue = 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 CapacityLimit", 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.CapacityLimit = 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 AttemptedAmount", 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.AttemptedAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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: noble/dollar/vaults/v2/events.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) +) + +// EventDeposit is emitted when a user deposits into the V2 vault +type EventDeposit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address making the deposit + Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` + // Amount deposited + AmountDeposited string `protobuf:"bytes,2,opt,name=amount_deposited,json=amountDeposited,proto3" json:"amount_deposited,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventDeposit) Reset() { + *x = EventDeposit{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventDeposit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventDeposit) ProtoMessage() {} + +// Deprecated: Use EventDeposit.ProtoReflect.Descriptor instead. +func (*EventDeposit) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{0} +} + +func (x *EventDeposit) GetDepositor() string { + if x != nil { + return x.Depositor + } + return "" +} + +func (x *EventDeposit) GetAmountDeposited() string { + if x != nil { + return x.AmountDeposited + } + return "" +} + +func (x *EventDeposit) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventDeposit) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventWithdraw is emitted when a user withdraws from the V2 vault +type EventWithdraw struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address making the withdrawal + Withdrawer string `protobuf:"bytes,1,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"` + // Principal withdrawn + PrincipalWithdrawn string `protobuf:"bytes,2,opt,name=principal_withdrawn,json=principalWithdrawn,proto3" json:"principal_withdrawn,omitempty"` + // Yield withdrawn + YieldWithdrawn string `protobuf:"bytes,3,opt,name=yield_withdrawn,json=yieldWithdrawn,proto3" json:"yield_withdrawn,omitempty"` + // Total amount received (principal + yield - fees) + TotalAmountReceived string `protobuf:"bytes,4,opt,name=total_amount_received,json=totalAmountReceived,proto3" json:"total_amount_received,omitempty"` + // Fees paid + FeesPaid string `protobuf:"bytes,5,opt,name=fees_paid,json=feesPaid,proto3" json:"fees_paid,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventWithdraw) Reset() { + *x = EventWithdraw{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWithdraw) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWithdraw) ProtoMessage() {} + +// Deprecated: Use EventWithdraw.ProtoReflect.Descriptor instead. +func (*EventWithdraw) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{1} +} + +func (x *EventWithdraw) GetWithdrawer() string { + if x != nil { + return x.Withdrawer + } + return "" +} + +func (x *EventWithdraw) GetPrincipalWithdrawn() string { + if x != nil { + return x.PrincipalWithdrawn + } + return "" +} + +func (x *EventWithdraw) GetYieldWithdrawn() string { + if x != nil { + return x.YieldWithdrawn + } + return "" +} + +func (x *EventWithdraw) GetTotalAmountReceived() string { + if x != nil { + return x.TotalAmountReceived + } + return "" +} + +func (x *EventWithdraw) GetFeesPaid() string { + if x != nil { + return x.FeesPaid + } + return "" +} + +func (x *EventWithdraw) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventWithdraw) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventWithdrawlRequested is emitted when a user requests a withdrawal from the V2 vault +type EventWithdrawlRequested struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address requesting withdrawal + Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // Amount to withdraw (principal + yield) + AmountToWithdraw string `protobuf:"bytes,2,opt,name=amount_to_withdraw,json=amountToWithdraw,proto3" json:"amount_to_withdraw,omitempty"` + // Withdrawal request ID + WithdrawalRequestId string `protobuf:"bytes,3,opt,name=withdrawal_request_id,json=withdrawalRequestId,proto3" json:"withdrawal_request_id,omitempty"` + // Expected unlock time + ExpectedUnlockTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expected_unlock_time,json=expectedUnlockTime,proto3" json:"expected_unlock_time,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventWithdrawlRequested) Reset() { + *x = EventWithdrawlRequested{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWithdrawlRequested) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWithdrawlRequested) ProtoMessage() {} + +// Deprecated: Use EventWithdrawlRequested.ProtoReflect.Descriptor instead. +func (*EventWithdrawlRequested) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{2} +} + +func (x *EventWithdrawlRequested) GetRequester() string { + if x != nil { + return x.Requester + } + return "" +} + +func (x *EventWithdrawlRequested) GetAmountToWithdraw() string { + if x != nil { + return x.AmountToWithdraw + } + return "" +} + +func (x *EventWithdrawlRequested) GetWithdrawalRequestId() string { + if x != nil { + return x.WithdrawalRequestId + } + return "" +} + +func (x *EventWithdrawlRequested) GetExpectedUnlockTime() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedUnlockTime + } + return nil +} + +func (x *EventWithdrawlRequested) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventWithdrawlRequested) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventWithdrawalCancelled is emitted when a user cancels a withdrawal request +type EventWithdrawalCancelled struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address cancelling withdrawal + Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // Withdrawal request ID that was cancelled + WithdrawalRequestId string `protobuf:"bytes,2,opt,name=withdrawal_request_id,json=withdrawalRequestId,proto3" json:"withdrawal_request_id,omitempty"` + // Amount returned to active position + AmountReturned string `protobuf:"bytes,3,opt,name=amount_returned,json=amountReturned,proto3" json:"amount_returned,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventWithdrawalCancelled) Reset() { + *x = EventWithdrawalCancelled{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWithdrawalCancelled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWithdrawalCancelled) ProtoMessage() {} + +// Deprecated: Use EventWithdrawalCancelled.ProtoReflect.Descriptor instead. +func (*EventWithdrawalCancelled) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{3} +} + +func (x *EventWithdrawalCancelled) GetRequester() string { + if x != nil { + return x.Requester + } + return "" +} + +func (x *EventWithdrawalCancelled) GetWithdrawalRequestId() string { + if x != nil { + return x.WithdrawalRequestId + } + return "" +} + +func (x *EventWithdrawalCancelled) GetAmountReturned() string { + if x != nil { + return x.AmountReturned + } + return "" +} + +func (x *EventWithdrawalCancelled) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventWithdrawalCancelled) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventWithdrawalProcessed is emitted when withdrawal requests are processed +type EventWithdrawalProcessed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of withdrawal requests processed + RequestsProcessed int32 `protobuf:"varint,1,opt,name=requests_processed,json=requestsProcessed,proto3" json:"requests_processed,omitempty"` + // Total amount processed + TotalAmountProcessed string `protobuf:"bytes,2,opt,name=total_amount_processed,json=totalAmountProcessed,proto3" json:"total_amount_processed,omitempty"` + // Total amount distributed + TotalAmountDistributed string `protobuf:"bytes,3,opt,name=total_amount_distributed,json=totalAmountDistributed,proto3" json:"total_amount_distributed,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventWithdrawalProcessed) Reset() { + *x = EventWithdrawalProcessed{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventWithdrawalProcessed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventWithdrawalProcessed) ProtoMessage() {} + +// Deprecated: Use EventWithdrawalProcessed.ProtoReflect.Descriptor instead. +func (*EventWithdrawalProcessed) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{4} +} + +func (x *EventWithdrawalProcessed) GetRequestsProcessed() int32 { + if x != nil { + return x.RequestsProcessed + } + return 0 +} + +func (x *EventWithdrawalProcessed) GetTotalAmountProcessed() string { + if x != nil { + return x.TotalAmountProcessed + } + return "" +} + +func (x *EventWithdrawalProcessed) GetTotalAmountDistributed() string { + if x != nil { + return x.TotalAmountDistributed + } + return "" +} + +func (x *EventWithdrawalProcessed) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventWithdrawalProcessed) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventNAVUpdated is emitted when NAV is updated for a vault +type EventNAVUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Previous NAV + PreviousNav string `protobuf:"bytes,1,opt,name=previous_nav,json=previousNav,proto3" json:"previous_nav,omitempty"` + // New NAV + NewNav string `protobuf:"bytes,2,opt,name=new_nav,json=newNav,proto3" json:"new_nav,omitempty"` + // NAV change percentage (basis points) + ChangeBps int32 `protobuf:"varint,3,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Total deposits in vault + TotalDeposits string `protobuf:"bytes,4,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + // Total accrued yield + TotalAccruedYield string `protobuf:"bytes,5,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + // Authority that updated NAV + Authority string `protobuf:"bytes,6,opt,name=authority,proto3" json:"authority,omitempty"` + // Update reason + Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,8,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventNAVUpdated) Reset() { + *x = EventNAVUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventNAVUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventNAVUpdated) ProtoMessage() {} + +// Deprecated: Use EventNAVUpdated.ProtoReflect.Descriptor instead. +func (*EventNAVUpdated) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{5} +} + +func (x *EventNAVUpdated) GetPreviousNav() string { + if x != nil { + return x.PreviousNav + } + return "" +} + +func (x *EventNAVUpdated) GetNewNav() string { + if x != nil { + return x.NewNav + } + return "" +} + +func (x *EventNAVUpdated) GetChangeBps() int32 { + if x != nil { + return x.ChangeBps + } + return 0 +} + +func (x *EventNAVUpdated) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *EventNAVUpdated) GetTotalAccruedYield() string { + if x != nil { + return x.TotalAccruedYield + } + return "" +} + +func (x *EventNAVUpdated) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *EventNAVUpdated) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *EventNAVUpdated) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventNAVUpdated) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventFeeCollected is emitted when fees are collected +type EventFeeCollected struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Fee type (deposit, withdrawal, etc.) + FeeType string `protobuf:"bytes,1,opt,name=fee_type,json=feeType,proto3" json:"fee_type,omitempty"` + // Amount collected + AmountCollected string `protobuf:"bytes,2,opt,name=amount_collected,json=amountCollected,proto3" json:"amount_collected,omitempty"` + // Fee rate used (basis points) + FeeRateBps int32 `protobuf:"varint,3,opt,name=fee_rate_bps,json=feeRateBps,proto3" json:"fee_rate_bps,omitempty"` + // User who triggered the fee + Payer string `protobuf:"bytes,4,opt,name=payer,proto3" json:"payer,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventFeeCollected) Reset() { + *x = EventFeeCollected{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventFeeCollected) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventFeeCollected) ProtoMessage() {} + +// Deprecated: Use EventFeeCollected.ProtoReflect.Descriptor instead. +func (*EventFeeCollected) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{6} +} + +func (x *EventFeeCollected) GetFeeType() string { + if x != nil { + return x.FeeType + } + return "" +} + +func (x *EventFeeCollected) GetAmountCollected() string { + if x != nil { + return x.AmountCollected + } + return "" +} + +func (x *EventFeeCollected) GetFeeRateBps() int32 { + if x != nil { + return x.FeeRateBps + } + return 0 +} + +func (x *EventFeeCollected) GetPayer() string { + if x != nil { + return x.Payer + } + return "" +} + +func (x *EventFeeCollected) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventFeeCollected) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventYieldPreferenceUpdated is emitted when a user updates their yield preference +type EventYieldPreferenceUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // Previous yield preference + PreviousYieldPreference bool `protobuf:"varint,2,opt,name=previous_yield_preference,json=previousYieldPreference,proto3" json:"previous_yield_preference,omitempty"` + // New yield preference + NewYieldPreference bool `protobuf:"varint,3,opt,name=new_yield_preference,json=newYieldPreference,proto3" json:"new_yield_preference,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventYieldPreferenceUpdated) Reset() { + *x = EventYieldPreferenceUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventYieldPreferenceUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventYieldPreferenceUpdated) ProtoMessage() {} + +// Deprecated: Use EventYieldPreferenceUpdated.ProtoReflect.Descriptor instead. +func (*EventYieldPreferenceUpdated) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{7} +} + +func (x *EventYieldPreferenceUpdated) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *EventYieldPreferenceUpdated) GetPreviousYieldPreference() bool { + if x != nil { + return x.PreviousYieldPreference + } + return false +} + +func (x *EventYieldPreferenceUpdated) GetNewYieldPreference() bool { + if x != nil { + return x.NewYieldPreference + } + return false +} + +func (x *EventYieldPreferenceUpdated) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventYieldPreferenceUpdated) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventVaultConfigUpdated is emitted when vault configuration is updated +type EventVaultConfigUpdated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Previous config (JSON serialized) + PreviousConfig string `protobuf:"bytes,1,opt,name=previous_config,json=previousConfig,proto3" json:"previous_config,omitempty"` + // New config (JSON serialized) + NewConfig string `protobuf:"bytes,2,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` + // Authority that made the update + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` + // Update reason + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventVaultConfigUpdated) Reset() { + *x = EventVaultConfigUpdated{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventVaultConfigUpdated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventVaultConfigUpdated) ProtoMessage() {} + +// Deprecated: Use EventVaultConfigUpdated.ProtoReflect.Descriptor instead. +func (*EventVaultConfigUpdated) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{8} +} + +func (x *EventVaultConfigUpdated) GetPreviousConfig() string { + if x != nil { + return x.PreviousConfig + } + return "" +} + +func (x *EventVaultConfigUpdated) GetNewConfig() string { + if x != nil { + return x.NewConfig + } + return "" +} + +func (x *EventVaultConfigUpdated) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *EventVaultConfigUpdated) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *EventVaultConfigUpdated) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventVaultConfigUpdated) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventInflightFundCreated is emitted when an inflight fund operation is initiated +type EventInflightFundCreated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Operation type (DEPOSIT_TO_POSITION, WITHDRAWAL_FROM_POSITION, etc.) + OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` + // Amount + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + // Value at initiation + ValueAtInitiation string `protobuf:"bytes,5,opt,name=value_at_initiation,json=valueAtInitiation,proto3" json:"value_at_initiation,omitempty"` + // Initiator address + Initiator string `protobuf:"bytes,6,opt,name=initiator,proto3" json:"initiator,omitempty"` + // Source chain + SourceChain string `protobuf:"bytes,7,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Destination chain + DestinationChain string `protobuf:"bytes,8,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"` + // Expected completion time + ExpectedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expected_at,json=expectedAt,proto3" json:"expected_at,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,10,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventInflightFundCreated) Reset() { + *x = EventInflightFundCreated{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventInflightFundCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventInflightFundCreated) ProtoMessage() {} + +// Deprecated: Use EventInflightFundCreated.ProtoReflect.Descriptor instead. +func (*EventInflightFundCreated) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{9} +} + +func (x *EventInflightFundCreated) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *EventInflightFundCreated) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *EventInflightFundCreated) GetOperationType() string { + if x != nil { + return x.OperationType + } + return "" +} + +func (x *EventInflightFundCreated) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *EventInflightFundCreated) GetValueAtInitiation() string { + if x != nil { + return x.ValueAtInitiation + } + return "" +} + +func (x *EventInflightFundCreated) GetInitiator() string { + if x != nil { + return x.Initiator + } + return "" +} + +func (x *EventInflightFundCreated) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *EventInflightFundCreated) GetDestinationChain() string { + if x != nil { + return x.DestinationChain + } + return "" +} + +func (x *EventInflightFundCreated) GetExpectedAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedAt + } + return nil +} + +func (x *EventInflightFundCreated) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventInflightFundCreated) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventInflightFundStatusChanged is emitted when an inflight fund's status changes +type EventInflightFundStatusChanged struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Previous status + PreviousStatus string `protobuf:"bytes,3,opt,name=previous_status,json=previousStatus,proto3" json:"previous_status,omitempty"` + // New status + NewStatus string `protobuf:"bytes,4,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"` + // Amount + Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` + // Status change reason + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,7,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventInflightFundStatusChanged) Reset() { + *x = EventInflightFundStatusChanged{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventInflightFundStatusChanged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventInflightFundStatusChanged) ProtoMessage() {} + +// Deprecated: Use EventInflightFundStatusChanged.ProtoReflect.Descriptor instead. +func (*EventInflightFundStatusChanged) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{10} +} + +func (x *EventInflightFundStatusChanged) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *EventInflightFundStatusChanged) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *EventInflightFundStatusChanged) GetPreviousStatus() string { + if x != nil { + return x.PreviousStatus + } + return "" +} + +func (x *EventInflightFundStatusChanged) GetNewStatus() string { + if x != nil { + return x.NewStatus + } + return "" +} + +func (x *EventInflightFundStatusChanged) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *EventInflightFundStatusChanged) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *EventInflightFundStatusChanged) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventInflightFundStatusChanged) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventInflightFundCompleted is emitted when an inflight fund operation completes +type EventInflightFundCompleted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Operation type + OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` + // Final amount + FinalAmount string `protobuf:"bytes,4,opt,name=final_amount,json=finalAmount,proto3" json:"final_amount,omitempty"` + // Initial amount + InitialAmount string `protobuf:"bytes,5,opt,name=initial_amount,json=initialAmount,proto3" json:"initial_amount,omitempty"` + // Time taken (seconds) + DurationSeconds int64 `protobuf:"varint,6,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,7,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventInflightFundCompleted) Reset() { + *x = EventInflightFundCompleted{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventInflightFundCompleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventInflightFundCompleted) ProtoMessage() {} + +// Deprecated: Use EventInflightFundCompleted.ProtoReflect.Descriptor instead. +func (*EventInflightFundCompleted) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{11} +} + +func (x *EventInflightFundCompleted) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *EventInflightFundCompleted) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *EventInflightFundCompleted) GetOperationType() string { + if x != nil { + return x.OperationType + } + return "" +} + +func (x *EventInflightFundCompleted) GetFinalAmount() string { + if x != nil { + return x.FinalAmount + } + return "" +} + +func (x *EventInflightFundCompleted) GetInitialAmount() string { + if x != nil { + return x.InitialAmount + } + return "" +} + +func (x *EventInflightFundCompleted) GetDurationSeconds() int64 { + if x != nil { + return x.DurationSeconds + } + return 0 +} + +func (x *EventInflightFundCompleted) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventInflightFundCompleted) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventInflightFundStale is emitted when an inflight fund is detected as stale +type EventInflightFundStale struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Amount + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + // Hours overdue + HoursOverdue int64 `protobuf:"varint,4,opt,name=hours_overdue,json=hoursOverdue,proto3" json:"hours_overdue,omitempty"` + // Expected completion time + ExpectedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expected_at,json=expectedAt,proto3" json:"expected_at,omitempty"` + // Current status + CurrentStatus string `protobuf:"bytes,6,opt,name=current_status,json=currentStatus,proto3" json:"current_status,omitempty"` + // Recommended action + RecommendedAction string `protobuf:"bytes,7,opt,name=recommended_action,json=recommendedAction,proto3" json:"recommended_action,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,8,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventInflightFundStale) Reset() { + *x = EventInflightFundStale{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventInflightFundStale) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventInflightFundStale) ProtoMessage() {} + +// Deprecated: Use EventInflightFundStale.ProtoReflect.Descriptor instead. +func (*EventInflightFundStale) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{12} +} + +func (x *EventInflightFundStale) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *EventInflightFundStale) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *EventInflightFundStale) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *EventInflightFundStale) GetHoursOverdue() int64 { + if x != nil { + return x.HoursOverdue + } + return 0 +} + +func (x *EventInflightFundStale) GetExpectedAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedAt + } + return nil +} + +func (x *EventInflightFundStale) GetCurrentStatus() string { + if x != nil { + return x.CurrentStatus + } + return "" +} + +func (x *EventInflightFundStale) GetRecommendedAction() string { + if x != nil { + return x.RecommendedAction + } + return "" +} + +func (x *EventInflightFundStale) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventInflightFundStale) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventInflightFundCleaned is emitted when a stale inflight fund is cleaned up +type EventInflightFundCleaned struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Amount returned to vault + AmountReturned string `protobuf:"bytes,3,opt,name=amount_returned,json=amountReturned,proto3" json:"amount_returned,omitempty"` + // Reason for cleanup + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + // Authority that triggered cleanup + Authority string `protobuf:"bytes,5,opt,name=authority,proto3" json:"authority,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventInflightFundCleaned) Reset() { + *x = EventInflightFundCleaned{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventInflightFundCleaned) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventInflightFundCleaned) ProtoMessage() {} + +// Deprecated: Use EventInflightFundCleaned.ProtoReflect.Descriptor instead. +func (*EventInflightFundCleaned) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{13} +} + +func (x *EventInflightFundCleaned) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *EventInflightFundCleaned) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *EventInflightFundCleaned) GetAmountReturned() string { + if x != nil { + return x.AmountReturned + } + return "" +} + +func (x *EventInflightFundCleaned) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *EventInflightFundCleaned) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *EventInflightFundCleaned) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventInflightFundCleaned) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// EventRouteCapacityExceeded is emitted when a route's capacity limit is reached +type EventRouteCapacityExceeded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Current inflight value + CurrentInflightValue string `protobuf:"bytes,2,opt,name=current_inflight_value,json=currentInflightValue,proto3" json:"current_inflight_value,omitempty"` + // Route capacity limit + CapacityLimit string `protobuf:"bytes,3,opt,name=capacity_limit,json=capacityLimit,proto3" json:"capacity_limit,omitempty"` + // Attempted operation amount + AttemptedAmount string `protobuf:"bytes,4,opt,name=attempted_amount,json=attemptedAmount,proto3" json:"attempted_amount,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *EventRouteCapacityExceeded) Reset() { + *x = EventRouteCapacityExceeded{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_events_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventRouteCapacityExceeded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventRouteCapacityExceeded) ProtoMessage() {} + +// Deprecated: Use EventRouteCapacityExceeded.ProtoReflect.Descriptor instead. +func (*EventRouteCapacityExceeded) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_events_proto_rawDescGZIP(), []int{14} +} + +func (x *EventRouteCapacityExceeded) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *EventRouteCapacityExceeded) GetCurrentInflightValue() string { + if x != nil { + return x.CurrentInflightValue + } + return "" +} + +func (x *EventRouteCapacityExceeded) GetCapacityLimit() string { + if x != nil { + return x.CapacityLimit + } + return "" +} + +func (x *EventRouteCapacityExceeded) GetAttemptedAmount() string { + if x != nil { + return x.AttemptedAmount + } + return "" +} + +func (x *EventRouteCapacityExceeded) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EventRouteCapacityExceeded) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +var File_noble_dollar_vaults_v2_events_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_events_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, + 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x8a, 0x02, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x5b, 0x0a, 0x10, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, + 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0xa3, 0x04, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x12, 0x38, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x13, 0x70, + 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x70, 0x72, 0x69, 0x6e, + 0x63, 0x69, 0x70, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x12, 0x59, + 0x0a, 0x0f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x79, 0x69, 0x65, 0x6c, 0x64, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x12, 0x64, 0x0a, 0x15, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, + 0x4d, 0x0a, 0x09, 0x66, 0x65, 0x65, 0x73, 0x5f, 0x70, 0x61, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x66, 0x65, 0x65, 0x73, 0x50, 0x61, 0x69, 0x64, 0x12, 0x21, + 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xa4, 0x03, 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x5e, 0x0a, 0x12, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, + 0x6f, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x32, 0x0a, 0x15, 0x77, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, + 0x14, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, + 0x01, 0x52, 0x12, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x55, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, + 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xc8, 0x02, 0x0a, + 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x12, 0x32, 0x0a, 0x15, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x13, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x84, 0x03, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x65, 0x64, 0x12, 0x66, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x6a, 0x0a, 0x18, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xc2, + 0x04, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x41, 0x56, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x53, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6e, + 0x61, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x4e, 0x61, 0x76, 0x12, 0x49, 0x0a, 0x07, 0x6e, 0x65, 0x77, 0x5f, 0x6e, + 0x61, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x6e, 0x65, 0x77, 0x4e, + 0x61, 0x76, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x62, 0x70, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x70, + 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x41, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x36, 0x0a, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, + 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, + 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x22, 0xc4, 0x02, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x65, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x5b, 0x0a, 0x10, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x70, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x66, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, + 0x42, 0x70, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x70, 0x61, 0x79, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x70, 0x61, + 0x79, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xa0, 0x02, 0x0a, 0x1b, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x65, 0x77, 0x5f, 0x79, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x12, 0x6e, 0x65, 0x77, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, + 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x98, 0x02, + 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xe5, 0x04, 0x0a, 0x18, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x60, 0x0a, 0x13, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x5f, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x12, 0x45, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x65, + 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x22, 0xf3, 0x02, 0x0a, 0x1e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, + 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x48, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, + 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xc5, 0x03, 0x0a, 0x1a, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, + 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x41, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xcd, + 0x03, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x46, 0x75, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x5f, 0x6f, + 0x76, 0x65, 0x72, 0x64, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x68, 0x6f, + 0x75, 0x72, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x64, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x65, 0x78, + 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xee, + 0x02, 0x0a, 0x18, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x46, 0x75, 0x6e, 0x64, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x59, 0x0a, + 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, + 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0xbc, 0x03, 0x0a, 0x1a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x61, + 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x66, 0x0a, 0x16, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x57, 0x0a, 0x0e, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x5f, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x63, 0x61, 0x70, + 0x61, 0x63, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5b, 0x0a, 0x10, 0x61, 0x74, + 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, + 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0xdd, + 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, + 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, + 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_events_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_events_proto_rawDescData = file_noble_dollar_vaults_v2_events_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_events_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_events_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_events_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_events_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_events_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_noble_dollar_vaults_v2_events_proto_goTypes = []interface{}{ + (*EventDeposit)(nil), // 0: noble.dollar.vaults.v2.EventDeposit + (*EventWithdraw)(nil), // 1: noble.dollar.vaults.v2.EventWithdraw + (*EventWithdrawlRequested)(nil), // 2: noble.dollar.vaults.v2.EventWithdrawlRequested + (*EventWithdrawalCancelled)(nil), // 3: noble.dollar.vaults.v2.EventWithdrawalCancelled + (*EventWithdrawalProcessed)(nil), // 4: noble.dollar.vaults.v2.EventWithdrawalProcessed + (*EventNAVUpdated)(nil), // 5: noble.dollar.vaults.v2.EventNAVUpdated + (*EventFeeCollected)(nil), // 6: noble.dollar.vaults.v2.EventFeeCollected + (*EventYieldPreferenceUpdated)(nil), // 7: noble.dollar.vaults.v2.EventYieldPreferenceUpdated + (*EventVaultConfigUpdated)(nil), // 8: noble.dollar.vaults.v2.EventVaultConfigUpdated + (*EventInflightFundCreated)(nil), // 9: noble.dollar.vaults.v2.EventInflightFundCreated + (*EventInflightFundStatusChanged)(nil), // 10: noble.dollar.vaults.v2.EventInflightFundStatusChanged + (*EventInflightFundCompleted)(nil), // 11: noble.dollar.vaults.v2.EventInflightFundCompleted + (*EventInflightFundStale)(nil), // 12: noble.dollar.vaults.v2.EventInflightFundStale + (*EventInflightFundCleaned)(nil), // 13: noble.dollar.vaults.v2.EventInflightFundCleaned + (*EventRouteCapacityExceeded)(nil), // 14: noble.dollar.vaults.v2.EventRouteCapacityExceeded + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp +} +var file_noble_dollar_vaults_v2_events_proto_depIdxs = []int32{ + 15, // 0: noble.dollar.vaults.v2.EventDeposit.timestamp:type_name -> google.protobuf.Timestamp + 15, // 1: noble.dollar.vaults.v2.EventWithdraw.timestamp:type_name -> google.protobuf.Timestamp + 15, // 2: noble.dollar.vaults.v2.EventWithdrawlRequested.expected_unlock_time:type_name -> google.protobuf.Timestamp + 15, // 3: noble.dollar.vaults.v2.EventWithdrawlRequested.timestamp:type_name -> google.protobuf.Timestamp + 15, // 4: noble.dollar.vaults.v2.EventWithdrawalCancelled.timestamp:type_name -> google.protobuf.Timestamp + 15, // 5: noble.dollar.vaults.v2.EventWithdrawalProcessed.timestamp:type_name -> google.protobuf.Timestamp + 15, // 6: noble.dollar.vaults.v2.EventNAVUpdated.timestamp:type_name -> google.protobuf.Timestamp + 15, // 7: noble.dollar.vaults.v2.EventFeeCollected.timestamp:type_name -> google.protobuf.Timestamp + 15, // 8: noble.dollar.vaults.v2.EventYieldPreferenceUpdated.timestamp:type_name -> google.protobuf.Timestamp + 15, // 9: noble.dollar.vaults.v2.EventVaultConfigUpdated.timestamp:type_name -> google.protobuf.Timestamp + 15, // 10: noble.dollar.vaults.v2.EventInflightFundCreated.expected_at:type_name -> google.protobuf.Timestamp + 15, // 11: noble.dollar.vaults.v2.EventInflightFundCreated.timestamp:type_name -> google.protobuf.Timestamp + 15, // 12: noble.dollar.vaults.v2.EventInflightFundStatusChanged.timestamp:type_name -> google.protobuf.Timestamp + 15, // 13: noble.dollar.vaults.v2.EventInflightFundCompleted.timestamp:type_name -> google.protobuf.Timestamp + 15, // 14: noble.dollar.vaults.v2.EventInflightFundStale.expected_at:type_name -> google.protobuf.Timestamp + 15, // 15: noble.dollar.vaults.v2.EventInflightFundStale.timestamp:type_name -> google.protobuf.Timestamp + 15, // 16: noble.dollar.vaults.v2.EventInflightFundCleaned.timestamp:type_name -> google.protobuf.Timestamp + 15, // 17: noble.dollar.vaults.v2.EventRouteCapacityExceeded.timestamp:type_name -> google.protobuf.Timestamp + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_events_proto_init() } +func file_noble_dollar_vaults_v2_events_proto_init() { + if File_noble_dollar_vaults_v2_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventDeposit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWithdraw); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWithdrawlRequested); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWithdrawalCancelled); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventWithdrawalProcessed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventNAVUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventFeeCollected); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventYieldPreferenceUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventVaultConfigUpdated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventInflightFundCreated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventInflightFundStatusChanged); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventInflightFundCompleted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventInflightFundStale); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventInflightFundCleaned); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_events_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventRouteCapacityExceeded); 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_noble_dollar_vaults_v2_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_events_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_events_proto_depIdxs, + MessageInfos: file_noble_dollar_vaults_v2_events_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_events_proto = out.File + file_noble_dollar_vaults_v2_events_proto_rawDesc = nil + file_noble_dollar_vaults_v2_events_proto_goTypes = nil + file_noble_dollar_vaults_v2_events_proto_depIdxs = nil +} diff --git a/api/vaults/v2/fees.pulsar.go b/api/vaults/v2/fees.pulsar.go new file mode 100644 index 00000000..a35b1c83 --- /dev/null +++ b/api/vaults/v2/fees.pulsar.go @@ -0,0 +1,7358 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_FeeConfig protoreflect.MessageDescriptor + fd_FeeConfig_management_fee_rate protoreflect.FieldDescriptor + fd_FeeConfig_performance_fee_rate protoreflect.FieldDescriptor + fd_FeeConfig_fee_recipient protoreflect.FieldDescriptor + fd_FeeConfig_fees_enabled protoreflect.FieldDescriptor + fd_FeeConfig_high_water_mark protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeConfig = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeConfig") + fd_FeeConfig_management_fee_rate = md_FeeConfig.Fields().ByName("management_fee_rate") + fd_FeeConfig_performance_fee_rate = md_FeeConfig.Fields().ByName("performance_fee_rate") + fd_FeeConfig_fee_recipient = md_FeeConfig.Fields().ByName("fee_recipient") + fd_FeeConfig_fees_enabled = md_FeeConfig.Fields().ByName("fees_enabled") + fd_FeeConfig_high_water_mark = md_FeeConfig.Fields().ByName("high_water_mark") +} + +var _ protoreflect.Message = (*fastReflection_FeeConfig)(nil) + +type fastReflection_FeeConfig FeeConfig + +func (x *FeeConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeConfig)(x) +} + +func (x *FeeConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_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_FeeConfig_messageType fastReflection_FeeConfig_messageType +var _ protoreflect.MessageType = fastReflection_FeeConfig_messageType{} + +type fastReflection_FeeConfig_messageType struct{} + +func (x fastReflection_FeeConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeConfig)(nil) +} +func (x fastReflection_FeeConfig_messageType) New() protoreflect.Message { + return new(fastReflection_FeeConfig) +} +func (x fastReflection_FeeConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeConfig) Descriptor() protoreflect.MessageDescriptor { + return md_FeeConfig +} + +// 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_FeeConfig) Type() protoreflect.MessageType { + return _fastReflection_FeeConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeConfig) New() protoreflect.Message { + return new(fastReflection_FeeConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeConfig) Interface() protoreflect.ProtoMessage { + return (*FeeConfig)(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_FeeConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ManagementFeeRate != int32(0) { + value := protoreflect.ValueOfInt32(x.ManagementFeeRate) + if !f(fd_FeeConfig_management_fee_rate, value) { + return + } + } + if x.PerformanceFeeRate != int32(0) { + value := protoreflect.ValueOfInt32(x.PerformanceFeeRate) + if !f(fd_FeeConfig_performance_fee_rate, value) { + return + } + } + if x.FeeRecipient != "" { + value := protoreflect.ValueOfString(x.FeeRecipient) + if !f(fd_FeeConfig_fee_recipient, value) { + return + } + } + if x.FeesEnabled != false { + value := protoreflect.ValueOfBool(x.FeesEnabled) + if !f(fd_FeeConfig_fees_enabled, value) { + return + } + } + if x.HighWaterMark != "" { + value := protoreflect.ValueOfString(x.HighWaterMark) + if !f(fd_FeeConfig_high_water_mark, 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_FeeConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeConfig.management_fee_rate": + return x.ManagementFeeRate != int32(0) + case "noble.dollar.vaults.v2.FeeConfig.performance_fee_rate": + return x.PerformanceFeeRate != int32(0) + case "noble.dollar.vaults.v2.FeeConfig.fee_recipient": + return x.FeeRecipient != "" + case "noble.dollar.vaults.v2.FeeConfig.fees_enabled": + return x.FeesEnabled != false + case "noble.dollar.vaults.v2.FeeConfig.high_water_mark": + return x.HighWaterMark != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeConfig 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_FeeConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeConfig.management_fee_rate": + x.ManagementFeeRate = int32(0) + case "noble.dollar.vaults.v2.FeeConfig.performance_fee_rate": + x.PerformanceFeeRate = int32(0) + case "noble.dollar.vaults.v2.FeeConfig.fee_recipient": + x.FeeRecipient = "" + case "noble.dollar.vaults.v2.FeeConfig.fees_enabled": + x.FeesEnabled = false + case "noble.dollar.vaults.v2.FeeConfig.high_water_mark": + x.HighWaterMark = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeConfig 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_FeeConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeConfig.management_fee_rate": + value := x.ManagementFeeRate + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.FeeConfig.performance_fee_rate": + value := x.PerformanceFeeRate + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.FeeConfig.fee_recipient": + value := x.FeeRecipient + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeConfig.fees_enabled": + value := x.FeesEnabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.FeeConfig.high_water_mark": + value := x.HighWaterMark + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeConfig 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_FeeConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeConfig.management_fee_rate": + x.ManagementFeeRate = int32(value.Int()) + case "noble.dollar.vaults.v2.FeeConfig.performance_fee_rate": + x.PerformanceFeeRate = int32(value.Int()) + case "noble.dollar.vaults.v2.FeeConfig.fee_recipient": + x.FeeRecipient = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeConfig.fees_enabled": + x.FeesEnabled = value.Bool() + case "noble.dollar.vaults.v2.FeeConfig.high_water_mark": + x.HighWaterMark = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeConfig 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_FeeConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeConfig.management_fee_rate": + panic(fmt.Errorf("field management_fee_rate of message noble.dollar.vaults.v2.FeeConfig is not mutable")) + case "noble.dollar.vaults.v2.FeeConfig.performance_fee_rate": + panic(fmt.Errorf("field performance_fee_rate of message noble.dollar.vaults.v2.FeeConfig is not mutable")) + case "noble.dollar.vaults.v2.FeeConfig.fee_recipient": + panic(fmt.Errorf("field fee_recipient of message noble.dollar.vaults.v2.FeeConfig is not mutable")) + case "noble.dollar.vaults.v2.FeeConfig.fees_enabled": + panic(fmt.Errorf("field fees_enabled of message noble.dollar.vaults.v2.FeeConfig is not mutable")) + case "noble.dollar.vaults.v2.FeeConfig.high_water_mark": + panic(fmt.Errorf("field high_water_mark of message noble.dollar.vaults.v2.FeeConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeConfig 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_FeeConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeConfig.management_fee_rate": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.FeeConfig.performance_fee_rate": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.FeeConfig.fee_recipient": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeConfig.fees_enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.FeeConfig.high_water_mark": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeConfig 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_FeeConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeConfig", 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_FeeConfig) 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_FeeConfig) 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_FeeConfig) 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_FeeConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.ManagementFeeRate != 0 { + n += 1 + runtime.Sov(uint64(x.ManagementFeeRate)) + } + if x.PerformanceFeeRate != 0 { + n += 1 + runtime.Sov(uint64(x.PerformanceFeeRate)) + } + l = len(x.FeeRecipient) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FeesEnabled { + n += 2 + } + l = len(x.HighWaterMark) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*FeeConfig) + 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 len(x.HighWaterMark) > 0 { + i -= len(x.HighWaterMark) + copy(dAtA[i:], x.HighWaterMark) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HighWaterMark))) + i-- + dAtA[i] = 0x2a + } + if x.FeesEnabled { + i-- + if x.FeesEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(x.FeeRecipient) > 0 { + i -= len(x.FeeRecipient) + copy(dAtA[i:], x.FeeRecipient) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeRecipient))) + i-- + dAtA[i] = 0x1a + } + if x.PerformanceFeeRate != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PerformanceFeeRate)) + i-- + dAtA[i] = 0x10 + } + if x.ManagementFeeRate != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ManagementFeeRate)) + i-- + dAtA[i] = 0x8 + } + 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().(*FeeConfig) + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ManagementFeeRate", wireType) + } + x.ManagementFeeRate = 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.ManagementFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PerformanceFeeRate", wireType) + } + x.PerformanceFeeRate = 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.PerformanceFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeRecipient", 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.FeeRecipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeesEnabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.FeesEnabled = bool(v != 0) + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HighWaterMark", 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.HighWaterMark = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_YieldDeductionParams protoreflect.MessageDescriptor + fd_YieldDeductionParams_yield_fee_rate protoreflect.FieldDescriptor + fd_YieldDeductionParams_min_fee_amount protoreflect.FieldDescriptor + fd_YieldDeductionParams_max_fee_amount protoreflect.FieldDescriptor + fd_YieldDeductionParams_collection_frequency protoreflect.FieldDescriptor + fd_YieldDeductionParams_last_collection protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_YieldDeductionParams = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("YieldDeductionParams") + fd_YieldDeductionParams_yield_fee_rate = md_YieldDeductionParams.Fields().ByName("yield_fee_rate") + fd_YieldDeductionParams_min_fee_amount = md_YieldDeductionParams.Fields().ByName("min_fee_amount") + fd_YieldDeductionParams_max_fee_amount = md_YieldDeductionParams.Fields().ByName("max_fee_amount") + fd_YieldDeductionParams_collection_frequency = md_YieldDeductionParams.Fields().ByName("collection_frequency") + fd_YieldDeductionParams_last_collection = md_YieldDeductionParams.Fields().ByName("last_collection") +} + +var _ protoreflect.Message = (*fastReflection_YieldDeductionParams)(nil) + +type fastReflection_YieldDeductionParams YieldDeductionParams + +func (x *YieldDeductionParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_YieldDeductionParams)(x) +} + +func (x *YieldDeductionParams) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[1] + 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_YieldDeductionParams_messageType fastReflection_YieldDeductionParams_messageType +var _ protoreflect.MessageType = fastReflection_YieldDeductionParams_messageType{} + +type fastReflection_YieldDeductionParams_messageType struct{} + +func (x fastReflection_YieldDeductionParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_YieldDeductionParams)(nil) +} +func (x fastReflection_YieldDeductionParams_messageType) New() protoreflect.Message { + return new(fastReflection_YieldDeductionParams) +} +func (x fastReflection_YieldDeductionParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_YieldDeductionParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_YieldDeductionParams) Descriptor() protoreflect.MessageDescriptor { + return md_YieldDeductionParams +} + +// 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_YieldDeductionParams) Type() protoreflect.MessageType { + return _fastReflection_YieldDeductionParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_YieldDeductionParams) New() protoreflect.Message { + return new(fastReflection_YieldDeductionParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_YieldDeductionParams) Interface() protoreflect.ProtoMessage { + return (*YieldDeductionParams)(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_YieldDeductionParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.YieldFeeRate != int32(0) { + value := protoreflect.ValueOfInt32(x.YieldFeeRate) + if !f(fd_YieldDeductionParams_yield_fee_rate, value) { + return + } + } + if x.MinFeeAmount != "" { + value := protoreflect.ValueOfString(x.MinFeeAmount) + if !f(fd_YieldDeductionParams_min_fee_amount, value) { + return + } + } + if x.MaxFeeAmount != "" { + value := protoreflect.ValueOfString(x.MaxFeeAmount) + if !f(fd_YieldDeductionParams_max_fee_amount, value) { + return + } + } + if x.CollectionFrequency != int64(0) { + value := protoreflect.ValueOfInt64(x.CollectionFrequency) + if !f(fd_YieldDeductionParams_collection_frequency, value) { + return + } + } + if x.LastCollection != nil { + value := protoreflect.ValueOfMessage(x.LastCollection.ProtoReflect()) + if !f(fd_YieldDeductionParams_last_collection, 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_YieldDeductionParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDeductionParams.yield_fee_rate": + return x.YieldFeeRate != int32(0) + case "noble.dollar.vaults.v2.YieldDeductionParams.min_fee_amount": + return x.MinFeeAmount != "" + case "noble.dollar.vaults.v2.YieldDeductionParams.max_fee_amount": + return x.MaxFeeAmount != "" + case "noble.dollar.vaults.v2.YieldDeductionParams.collection_frequency": + return x.CollectionFrequency != int64(0) + case "noble.dollar.vaults.v2.YieldDeductionParams.last_collection": + return x.LastCollection != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDeductionParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDeductionParams 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_YieldDeductionParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDeductionParams.yield_fee_rate": + x.YieldFeeRate = int32(0) + case "noble.dollar.vaults.v2.YieldDeductionParams.min_fee_amount": + x.MinFeeAmount = "" + case "noble.dollar.vaults.v2.YieldDeductionParams.max_fee_amount": + x.MaxFeeAmount = "" + case "noble.dollar.vaults.v2.YieldDeductionParams.collection_frequency": + x.CollectionFrequency = int64(0) + case "noble.dollar.vaults.v2.YieldDeductionParams.last_collection": + x.LastCollection = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDeductionParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDeductionParams 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_YieldDeductionParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.YieldDeductionParams.yield_fee_rate": + value := x.YieldFeeRate + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.YieldDeductionParams.min_fee_amount": + value := x.MinFeeAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldDeductionParams.max_fee_amount": + value := x.MaxFeeAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldDeductionParams.collection_frequency": + value := x.CollectionFrequency + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.YieldDeductionParams.last_collection": + value := x.LastCollection + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDeductionParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDeductionParams 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_YieldDeductionParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDeductionParams.yield_fee_rate": + x.YieldFeeRate = int32(value.Int()) + case "noble.dollar.vaults.v2.YieldDeductionParams.min_fee_amount": + x.MinFeeAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldDeductionParams.max_fee_amount": + x.MaxFeeAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldDeductionParams.collection_frequency": + x.CollectionFrequency = value.Int() + case "noble.dollar.vaults.v2.YieldDeductionParams.last_collection": + x.LastCollection = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDeductionParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDeductionParams 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_YieldDeductionParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDeductionParams.last_collection": + if x.LastCollection == nil { + x.LastCollection = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastCollection.ProtoReflect()) + case "noble.dollar.vaults.v2.YieldDeductionParams.yield_fee_rate": + panic(fmt.Errorf("field yield_fee_rate of message noble.dollar.vaults.v2.YieldDeductionParams is not mutable")) + case "noble.dollar.vaults.v2.YieldDeductionParams.min_fee_amount": + panic(fmt.Errorf("field min_fee_amount of message noble.dollar.vaults.v2.YieldDeductionParams is not mutable")) + case "noble.dollar.vaults.v2.YieldDeductionParams.max_fee_amount": + panic(fmt.Errorf("field max_fee_amount of message noble.dollar.vaults.v2.YieldDeductionParams is not mutable")) + case "noble.dollar.vaults.v2.YieldDeductionParams.collection_frequency": + panic(fmt.Errorf("field collection_frequency of message noble.dollar.vaults.v2.YieldDeductionParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDeductionParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDeductionParams 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_YieldDeductionParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDeductionParams.yield_fee_rate": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.YieldDeductionParams.min_fee_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldDeductionParams.max_fee_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldDeductionParams.collection_frequency": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.YieldDeductionParams.last_collection": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDeductionParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDeductionParams 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_YieldDeductionParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.YieldDeductionParams", 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_YieldDeductionParams) 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_YieldDeductionParams) 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_YieldDeductionParams) 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_YieldDeductionParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*YieldDeductionParams) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.YieldFeeRate != 0 { + n += 1 + runtime.Sov(uint64(x.YieldFeeRate)) + } + l = len(x.MinFeeAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MaxFeeAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CollectionFrequency != 0 { + n += 1 + runtime.Sov(uint64(x.CollectionFrequency)) + } + if x.LastCollection != nil { + l = options.Size(x.LastCollection) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*YieldDeductionParams) + 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.LastCollection != nil { + encoded, err := options.Marshal(x.LastCollection) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.CollectionFrequency != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CollectionFrequency)) + i-- + dAtA[i] = 0x20 + } + if len(x.MaxFeeAmount) > 0 { + i -= len(x.MaxFeeAmount) + copy(dAtA[i:], x.MaxFeeAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxFeeAmount))) + i-- + dAtA[i] = 0x1a + } + if len(x.MinFeeAmount) > 0 { + i -= len(x.MinFeeAmount) + copy(dAtA[i:], x.MinFeeAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinFeeAmount))) + i-- + dAtA[i] = 0x12 + } + if x.YieldFeeRate != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.YieldFeeRate)) + i-- + dAtA[i] = 0x8 + } + 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().(*YieldDeductionParams) + 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: YieldDeductionParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: YieldDeductionParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field YieldFeeRate", wireType) + } + x.YieldFeeRate = 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.YieldFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinFeeAmount", 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.MinFeeAmount = 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 MaxFeeAmount", 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.MaxFeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CollectionFrequency", wireType) + } + x.CollectionFrequency = 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.CollectionFrequency |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCollection", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastCollection == nil { + x.LastCollection = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCollection); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_FeeAccrual protoreflect.MessageDescriptor + fd_FeeAccrual_fee_type protoreflect.FieldDescriptor + fd_FeeAccrual_accrued_amount protoreflect.FieldDescriptor + fd_FeeAccrual_yield_to_deduct protoreflect.FieldDescriptor + fd_FeeAccrual_period_start protoreflect.FieldDescriptor + fd_FeeAccrual_period_end protoreflect.FieldDescriptor + fd_FeeAccrual_collected protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeAccrual = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeAccrual") + fd_FeeAccrual_fee_type = md_FeeAccrual.Fields().ByName("fee_type") + fd_FeeAccrual_accrued_amount = md_FeeAccrual.Fields().ByName("accrued_amount") + fd_FeeAccrual_yield_to_deduct = md_FeeAccrual.Fields().ByName("yield_to_deduct") + fd_FeeAccrual_period_start = md_FeeAccrual.Fields().ByName("period_start") + fd_FeeAccrual_period_end = md_FeeAccrual.Fields().ByName("period_end") + fd_FeeAccrual_collected = md_FeeAccrual.Fields().ByName("collected") +} + +var _ protoreflect.Message = (*fastReflection_FeeAccrual)(nil) + +type fastReflection_FeeAccrual FeeAccrual + +func (x *FeeAccrual) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeAccrual)(x) +} + +func (x *FeeAccrual) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[2] + 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_FeeAccrual_messageType fastReflection_FeeAccrual_messageType +var _ protoreflect.MessageType = fastReflection_FeeAccrual_messageType{} + +type fastReflection_FeeAccrual_messageType struct{} + +func (x fastReflection_FeeAccrual_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeAccrual)(nil) +} +func (x fastReflection_FeeAccrual_messageType) New() protoreflect.Message { + return new(fastReflection_FeeAccrual) +} +func (x fastReflection_FeeAccrual_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeAccrual +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeAccrual) Descriptor() protoreflect.MessageDescriptor { + return md_FeeAccrual +} + +// 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_FeeAccrual) Type() protoreflect.MessageType { + return _fastReflection_FeeAccrual_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeAccrual) New() protoreflect.Message { + return new(fastReflection_FeeAccrual) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeAccrual) Interface() protoreflect.ProtoMessage { + return (*FeeAccrual)(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_FeeAccrual) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.FeeType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.FeeType)) + if !f(fd_FeeAccrual_fee_type, value) { + return + } + } + if x.AccruedAmount != "" { + value := protoreflect.ValueOfString(x.AccruedAmount) + if !f(fd_FeeAccrual_accrued_amount, value) { + return + } + } + if x.YieldToDeduct != "" { + value := protoreflect.ValueOfString(x.YieldToDeduct) + if !f(fd_FeeAccrual_yield_to_deduct, value) { + return + } + } + if x.PeriodStart != nil { + value := protoreflect.ValueOfMessage(x.PeriodStart.ProtoReflect()) + if !f(fd_FeeAccrual_period_start, value) { + return + } + } + if x.PeriodEnd != nil { + value := protoreflect.ValueOfMessage(x.PeriodEnd.ProtoReflect()) + if !f(fd_FeeAccrual_period_end, value) { + return + } + } + if x.Collected != false { + value := protoreflect.ValueOfBool(x.Collected) + if !f(fd_FeeAccrual_collected, 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_FeeAccrual) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeAccrual.fee_type": + return x.FeeType != 0 + case "noble.dollar.vaults.v2.FeeAccrual.accrued_amount": + return x.AccruedAmount != "" + case "noble.dollar.vaults.v2.FeeAccrual.yield_to_deduct": + return x.YieldToDeduct != "" + case "noble.dollar.vaults.v2.FeeAccrual.period_start": + return x.PeriodStart != nil + case "noble.dollar.vaults.v2.FeeAccrual.period_end": + return x.PeriodEnd != nil + case "noble.dollar.vaults.v2.FeeAccrual.collected": + return x.Collected != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeAccrual")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeAccrual 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_FeeAccrual) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeAccrual.fee_type": + x.FeeType = 0 + case "noble.dollar.vaults.v2.FeeAccrual.accrued_amount": + x.AccruedAmount = "" + case "noble.dollar.vaults.v2.FeeAccrual.yield_to_deduct": + x.YieldToDeduct = "" + case "noble.dollar.vaults.v2.FeeAccrual.period_start": + x.PeriodStart = nil + case "noble.dollar.vaults.v2.FeeAccrual.period_end": + x.PeriodEnd = nil + case "noble.dollar.vaults.v2.FeeAccrual.collected": + x.Collected = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeAccrual")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeAccrual 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_FeeAccrual) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeAccrual.fee_type": + value := x.FeeType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.FeeAccrual.accrued_amount": + value := x.AccruedAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeAccrual.yield_to_deduct": + value := x.YieldToDeduct + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeAccrual.period_start": + value := x.PeriodStart + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeAccrual.period_end": + value := x.PeriodEnd + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeAccrual.collected": + value := x.Collected + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeAccrual")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeAccrual 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_FeeAccrual) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeAccrual.fee_type": + x.FeeType = (FeeType)(value.Enum()) + case "noble.dollar.vaults.v2.FeeAccrual.accrued_amount": + x.AccruedAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeAccrual.yield_to_deduct": + x.YieldToDeduct = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeAccrual.period_start": + x.PeriodStart = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.FeeAccrual.period_end": + x.PeriodEnd = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.FeeAccrual.collected": + x.Collected = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeAccrual")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeAccrual 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_FeeAccrual) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeAccrual.period_start": + if x.PeriodStart == nil { + x.PeriodStart = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.PeriodStart.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeAccrual.period_end": + if x.PeriodEnd == nil { + x.PeriodEnd = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.PeriodEnd.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeAccrual.fee_type": + panic(fmt.Errorf("field fee_type of message noble.dollar.vaults.v2.FeeAccrual is not mutable")) + case "noble.dollar.vaults.v2.FeeAccrual.accrued_amount": + panic(fmt.Errorf("field accrued_amount of message noble.dollar.vaults.v2.FeeAccrual is not mutable")) + case "noble.dollar.vaults.v2.FeeAccrual.yield_to_deduct": + panic(fmt.Errorf("field yield_to_deduct of message noble.dollar.vaults.v2.FeeAccrual is not mutable")) + case "noble.dollar.vaults.v2.FeeAccrual.collected": + panic(fmt.Errorf("field collected of message noble.dollar.vaults.v2.FeeAccrual is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeAccrual")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeAccrual 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_FeeAccrual) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeAccrual.fee_type": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.FeeAccrual.accrued_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeAccrual.yield_to_deduct": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeAccrual.period_start": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeAccrual.period_end": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeAccrual.collected": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeAccrual")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeAccrual 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_FeeAccrual) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeAccrual", 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_FeeAccrual) 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_FeeAccrual) 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_FeeAccrual) 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_FeeAccrual) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeAccrual) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.FeeType != 0 { + n += 1 + runtime.Sov(uint64(x.FeeType)) + } + l = len(x.AccruedAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldToDeduct) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PeriodStart != nil { + l = options.Size(x.PeriodStart) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PeriodEnd != nil { + l = options.Size(x.PeriodEnd) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Collected { + n += 2 + } + 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().(*FeeAccrual) + 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.Collected { + i-- + if x.Collected { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if x.PeriodEnd != nil { + encoded, err := options.Marshal(x.PeriodEnd) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.PeriodStart != nil { + encoded, err := options.Marshal(x.PeriodStart) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.YieldToDeduct) > 0 { + i -= len(x.YieldToDeduct) + copy(dAtA[i:], x.YieldToDeduct) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldToDeduct))) + i-- + dAtA[i] = 0x1a + } + if len(x.AccruedAmount) > 0 { + i -= len(x.AccruedAmount) + copy(dAtA[i:], x.AccruedAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccruedAmount))) + i-- + dAtA[i] = 0x12 + } + if x.FeeType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FeeType)) + i-- + dAtA[i] = 0x8 + } + 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().(*FeeAccrual) + 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: FeeAccrual: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeAccrual: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeType", wireType) + } + x.FeeType = 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.FeeType |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccruedAmount", 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.AccruedAmount = 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 YieldToDeduct", 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.YieldToDeduct = 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 PeriodStart", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.PeriodStart == nil { + x.PeriodStart = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PeriodStart); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PeriodEnd", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.PeriodEnd == nil { + x.PeriodEnd = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PeriodEnd); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Collected", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Collected = bool(v != 0) + 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, + } +} + +var _ protoreflect.List = (*_FeeCollection_4_list)(nil) + +type _FeeCollection_4_list struct { + list *[]*FeeTypeBreakdown +} + +func (x *_FeeCollection_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_FeeCollection_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_FeeCollection_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*FeeTypeBreakdown) + (*x.list)[i] = concreteValue +} + +func (x *_FeeCollection_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*FeeTypeBreakdown) + *x.list = append(*x.list, concreteValue) +} + +func (x *_FeeCollection_4_list) AppendMutable() protoreflect.Value { + v := new(FeeTypeBreakdown) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_FeeCollection_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_FeeCollection_4_list) NewElement() protoreflect.Value { + v := new(FeeTypeBreakdown) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_FeeCollection_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_FeeCollection protoreflect.MessageDescriptor + fd_FeeCollection_timestamp protoreflect.FieldDescriptor + fd_FeeCollection_total_amount protoreflect.FieldDescriptor + fd_FeeCollection_yield_deducted protoreflect.FieldDescriptor + fd_FeeCollection_breakdown protoreflect.FieldDescriptor + fd_FeeCollection_block_height protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeCollection = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeCollection") + fd_FeeCollection_timestamp = md_FeeCollection.Fields().ByName("timestamp") + fd_FeeCollection_total_amount = md_FeeCollection.Fields().ByName("total_amount") + fd_FeeCollection_yield_deducted = md_FeeCollection.Fields().ByName("yield_deducted") + fd_FeeCollection_breakdown = md_FeeCollection.Fields().ByName("breakdown") + fd_FeeCollection_block_height = md_FeeCollection.Fields().ByName("block_height") +} + +var _ protoreflect.Message = (*fastReflection_FeeCollection)(nil) + +type fastReflection_FeeCollection FeeCollection + +func (x *FeeCollection) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeCollection)(x) +} + +func (x *FeeCollection) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[3] + 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_FeeCollection_messageType fastReflection_FeeCollection_messageType +var _ protoreflect.MessageType = fastReflection_FeeCollection_messageType{} + +type fastReflection_FeeCollection_messageType struct{} + +func (x fastReflection_FeeCollection_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeCollection)(nil) +} +func (x fastReflection_FeeCollection_messageType) New() protoreflect.Message { + return new(fastReflection_FeeCollection) +} +func (x fastReflection_FeeCollection_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeCollection +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeCollection) Descriptor() protoreflect.MessageDescriptor { + return md_FeeCollection +} + +// 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_FeeCollection) Type() protoreflect.MessageType { + return _fastReflection_FeeCollection_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeCollection) New() protoreflect.Message { + return new(fastReflection_FeeCollection) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeCollection) Interface() protoreflect.ProtoMessage { + return (*FeeCollection)(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_FeeCollection) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_FeeCollection_timestamp, value) { + return + } + } + if x.TotalAmount != "" { + value := protoreflect.ValueOfString(x.TotalAmount) + if !f(fd_FeeCollection_total_amount, value) { + return + } + } + if x.YieldDeducted != "" { + value := protoreflect.ValueOfString(x.YieldDeducted) + if !f(fd_FeeCollection_yield_deducted, value) { + return + } + } + if len(x.Breakdown) != 0 { + value := protoreflect.ValueOfList(&_FeeCollection_4_list{list: &x.Breakdown}) + if !f(fd_FeeCollection_breakdown, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_FeeCollection_block_height, 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_FeeCollection) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeCollection.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.FeeCollection.total_amount": + return x.TotalAmount != "" + case "noble.dollar.vaults.v2.FeeCollection.yield_deducted": + return x.YieldDeducted != "" + case "noble.dollar.vaults.v2.FeeCollection.breakdown": + return len(x.Breakdown) != 0 + case "noble.dollar.vaults.v2.FeeCollection.block_height": + return x.BlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeCollection")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeCollection 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_FeeCollection) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeCollection.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.FeeCollection.total_amount": + x.TotalAmount = "" + case "noble.dollar.vaults.v2.FeeCollection.yield_deducted": + x.YieldDeducted = "" + case "noble.dollar.vaults.v2.FeeCollection.breakdown": + x.Breakdown = nil + case "noble.dollar.vaults.v2.FeeCollection.block_height": + x.BlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeCollection")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeCollection 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_FeeCollection) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeCollection.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeCollection.total_amount": + value := x.TotalAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeCollection.yield_deducted": + value := x.YieldDeducted + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeCollection.breakdown": + if len(x.Breakdown) == 0 { + return protoreflect.ValueOfList(&_FeeCollection_4_list{}) + } + listValue := &_FeeCollection_4_list{list: &x.Breakdown} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.FeeCollection.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeCollection")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeCollection 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_FeeCollection) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeCollection.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.FeeCollection.total_amount": + x.TotalAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeCollection.yield_deducted": + x.YieldDeducted = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeCollection.breakdown": + lv := value.List() + clv := lv.(*_FeeCollection_4_list) + x.Breakdown = *clv.list + case "noble.dollar.vaults.v2.FeeCollection.block_height": + x.BlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeCollection")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeCollection 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_FeeCollection) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeCollection.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeCollection.breakdown": + if x.Breakdown == nil { + x.Breakdown = []*FeeTypeBreakdown{} + } + value := &_FeeCollection_4_list{list: &x.Breakdown} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.FeeCollection.total_amount": + panic(fmt.Errorf("field total_amount of message noble.dollar.vaults.v2.FeeCollection is not mutable")) + case "noble.dollar.vaults.v2.FeeCollection.yield_deducted": + panic(fmt.Errorf("field yield_deducted of message noble.dollar.vaults.v2.FeeCollection is not mutable")) + case "noble.dollar.vaults.v2.FeeCollection.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.FeeCollection is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeCollection")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeCollection 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_FeeCollection) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeCollection.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeCollection.total_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeCollection.yield_deducted": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeCollection.breakdown": + list := []*FeeTypeBreakdown{} + return protoreflect.ValueOfList(&_FeeCollection_4_list{list: &list}) + case "noble.dollar.vaults.v2.FeeCollection.block_height": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeCollection")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeCollection 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_FeeCollection) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeCollection", 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_FeeCollection) 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_FeeCollection) 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_FeeCollection) 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_FeeCollection) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeCollection) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldDeducted) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Breakdown) > 0 { + for _, e := range x.Breakdown { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + 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().(*FeeCollection) + 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.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(x.Breakdown) > 0 { + for iNdEx := len(x.Breakdown) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Breakdown[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.YieldDeducted) > 0 { + i -= len(x.YieldDeducted) + copy(dAtA[i:], x.YieldDeducted) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldDeducted))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalAmount) > 0 { + i -= len(x.TotalAmount) + copy(dAtA[i:], x.TotalAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmount))) + i-- + dAtA[i] = 0x12 + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*FeeCollection) + 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: FeeCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeCollection: 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 Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalAmount", 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.TotalAmount = 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 YieldDeducted", 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.YieldDeducted = 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 Breakdown", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Breakdown = append(x.Breakdown, &FeeTypeBreakdown{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Breakdown[len(x.Breakdown)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(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, + } +} + +var ( + md_FeeTypeBreakdown protoreflect.MessageDescriptor + fd_FeeTypeBreakdown_fee_type protoreflect.FieldDescriptor + fd_FeeTypeBreakdown_amount protoreflect.FieldDescriptor + fd_FeeTypeBreakdown_yield_deducted protoreflect.FieldDescriptor + fd_FeeTypeBreakdown_rate_applied protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeTypeBreakdown = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeTypeBreakdown") + fd_FeeTypeBreakdown_fee_type = md_FeeTypeBreakdown.Fields().ByName("fee_type") + fd_FeeTypeBreakdown_amount = md_FeeTypeBreakdown.Fields().ByName("amount") + fd_FeeTypeBreakdown_yield_deducted = md_FeeTypeBreakdown.Fields().ByName("yield_deducted") + fd_FeeTypeBreakdown_rate_applied = md_FeeTypeBreakdown.Fields().ByName("rate_applied") +} + +var _ protoreflect.Message = (*fastReflection_FeeTypeBreakdown)(nil) + +type fastReflection_FeeTypeBreakdown FeeTypeBreakdown + +func (x *FeeTypeBreakdown) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeTypeBreakdown)(x) +} + +func (x *FeeTypeBreakdown) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[4] + 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_FeeTypeBreakdown_messageType fastReflection_FeeTypeBreakdown_messageType +var _ protoreflect.MessageType = fastReflection_FeeTypeBreakdown_messageType{} + +type fastReflection_FeeTypeBreakdown_messageType struct{} + +func (x fastReflection_FeeTypeBreakdown_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeTypeBreakdown)(nil) +} +func (x fastReflection_FeeTypeBreakdown_messageType) New() protoreflect.Message { + return new(fastReflection_FeeTypeBreakdown) +} +func (x fastReflection_FeeTypeBreakdown_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeTypeBreakdown +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeTypeBreakdown) Descriptor() protoreflect.MessageDescriptor { + return md_FeeTypeBreakdown +} + +// 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_FeeTypeBreakdown) Type() protoreflect.MessageType { + return _fastReflection_FeeTypeBreakdown_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeTypeBreakdown) New() protoreflect.Message { + return new(fastReflection_FeeTypeBreakdown) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeTypeBreakdown) Interface() protoreflect.ProtoMessage { + return (*FeeTypeBreakdown)(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_FeeTypeBreakdown) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.FeeType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.FeeType)) + if !f(fd_FeeTypeBreakdown_fee_type, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_FeeTypeBreakdown_amount, value) { + return + } + } + if x.YieldDeducted != "" { + value := protoreflect.ValueOfString(x.YieldDeducted) + if !f(fd_FeeTypeBreakdown_yield_deducted, value) { + return + } + } + if x.RateApplied != int32(0) { + value := protoreflect.ValueOfInt32(x.RateApplied) + if !f(fd_FeeTypeBreakdown_rate_applied, 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_FeeTypeBreakdown) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type": + return x.FeeType != 0 + case "noble.dollar.vaults.v2.FeeTypeBreakdown.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.FeeTypeBreakdown.yield_deducted": + return x.YieldDeducted != "" + case "noble.dollar.vaults.v2.FeeTypeBreakdown.rate_applied": + return x.RateApplied != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeTypeBreakdown")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeTypeBreakdown 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_FeeTypeBreakdown) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type": + x.FeeType = 0 + case "noble.dollar.vaults.v2.FeeTypeBreakdown.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.FeeTypeBreakdown.yield_deducted": + x.YieldDeducted = "" + case "noble.dollar.vaults.v2.FeeTypeBreakdown.rate_applied": + x.RateApplied = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeTypeBreakdown")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeTypeBreakdown 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_FeeTypeBreakdown) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type": + value := x.FeeType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.yield_deducted": + value := x.YieldDeducted + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.rate_applied": + value := x.RateApplied + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeTypeBreakdown")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeTypeBreakdown 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_FeeTypeBreakdown) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type": + x.FeeType = (FeeType)(value.Enum()) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.yield_deducted": + x.YieldDeducted = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.rate_applied": + x.RateApplied = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeTypeBreakdown")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeTypeBreakdown 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_FeeTypeBreakdown) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type": + panic(fmt.Errorf("field fee_type of message noble.dollar.vaults.v2.FeeTypeBreakdown is not mutable")) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.FeeTypeBreakdown is not mutable")) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.yield_deducted": + panic(fmt.Errorf("field yield_deducted of message noble.dollar.vaults.v2.FeeTypeBreakdown is not mutable")) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.rate_applied": + panic(fmt.Errorf("field rate_applied of message noble.dollar.vaults.v2.FeeTypeBreakdown is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeTypeBreakdown")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeTypeBreakdown 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_FeeTypeBreakdown) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.FeeTypeBreakdown.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeTypeBreakdown.yield_deducted": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeTypeBreakdown.rate_applied": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeTypeBreakdown")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeTypeBreakdown 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_FeeTypeBreakdown) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeTypeBreakdown", 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_FeeTypeBreakdown) 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_FeeTypeBreakdown) 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_FeeTypeBreakdown) 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_FeeTypeBreakdown) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeTypeBreakdown) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.FeeType != 0 { + n += 1 + runtime.Sov(uint64(x.FeeType)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldDeducted) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RateApplied != 0 { + n += 1 + runtime.Sov(uint64(x.RateApplied)) + } + 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().(*FeeTypeBreakdown) + 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.RateApplied != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RateApplied)) + i-- + dAtA[i] = 0x20 + } + if len(x.YieldDeducted) > 0 { + i -= len(x.YieldDeducted) + copy(dAtA[i:], x.YieldDeducted) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldDeducted))) + i-- + dAtA[i] = 0x1a + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x12 + } + if x.FeeType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FeeType)) + i-- + dAtA[i] = 0x8 + } + 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().(*FeeTypeBreakdown) + 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: FeeTypeBreakdown: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeTypeBreakdown: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeType", wireType) + } + x.FeeType = 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.FeeType |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = 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 YieldDeducted", 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.YieldDeducted = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RateApplied", wireType) + } + x.RateApplied = 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.RateApplied |= int32(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, + } +} + +var ( + md_FeeStats protoreflect.MessageDescriptor + fd_FeeStats_total_fees_collected protoreflect.FieldDescriptor + fd_FeeStats_total_yield_collected protoreflect.FieldDescriptor + fd_FeeStats_current_annual_rate protoreflect.FieldDescriptor + fd_FeeStats_last_collection protoreflect.FieldDescriptor + fd_FeeStats_avg_daily_collection protoreflect.FieldDescriptor + fd_FeeStats_collection_frequency protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeStats = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeStats") + fd_FeeStats_total_fees_collected = md_FeeStats.Fields().ByName("total_fees_collected") + fd_FeeStats_total_yield_collected = md_FeeStats.Fields().ByName("total_yield_collected") + fd_FeeStats_current_annual_rate = md_FeeStats.Fields().ByName("current_annual_rate") + fd_FeeStats_last_collection = md_FeeStats.Fields().ByName("last_collection") + fd_FeeStats_avg_daily_collection = md_FeeStats.Fields().ByName("avg_daily_collection") + fd_FeeStats_collection_frequency = md_FeeStats.Fields().ByName("collection_frequency") +} + +var _ protoreflect.Message = (*fastReflection_FeeStats)(nil) + +type fastReflection_FeeStats FeeStats + +func (x *FeeStats) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeStats)(x) +} + +func (x *FeeStats) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[5] + 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_FeeStats_messageType fastReflection_FeeStats_messageType +var _ protoreflect.MessageType = fastReflection_FeeStats_messageType{} + +type fastReflection_FeeStats_messageType struct{} + +func (x fastReflection_FeeStats_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeStats)(nil) +} +func (x fastReflection_FeeStats_messageType) New() protoreflect.Message { + return new(fastReflection_FeeStats) +} +func (x fastReflection_FeeStats_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeStats +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeStats) Descriptor() protoreflect.MessageDescriptor { + return md_FeeStats +} + +// 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_FeeStats) Type() protoreflect.MessageType { + return _fastReflection_FeeStats_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeStats) New() protoreflect.Message { + return new(fastReflection_FeeStats) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeStats) Interface() protoreflect.ProtoMessage { + return (*FeeStats)(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_FeeStats) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalFeesCollected != "" { + value := protoreflect.ValueOfString(x.TotalFeesCollected) + if !f(fd_FeeStats_total_fees_collected, value) { + return + } + } + if x.TotalYieldCollected != "" { + value := protoreflect.ValueOfString(x.TotalYieldCollected) + if !f(fd_FeeStats_total_yield_collected, value) { + return + } + } + if x.CurrentAnnualRate != int32(0) { + value := protoreflect.ValueOfInt32(x.CurrentAnnualRate) + if !f(fd_FeeStats_current_annual_rate, value) { + return + } + } + if x.LastCollection != nil { + value := protoreflect.ValueOfMessage(x.LastCollection.ProtoReflect()) + if !f(fd_FeeStats_last_collection, value) { + return + } + } + if x.AvgDailyCollection != "" { + value := protoreflect.ValueOfString(x.AvgDailyCollection) + if !f(fd_FeeStats_avg_daily_collection, value) { + return + } + } + if x.CollectionFrequency != int64(0) { + value := protoreflect.ValueOfInt64(x.CollectionFrequency) + if !f(fd_FeeStats_collection_frequency, 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_FeeStats) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeStats.total_fees_collected": + return x.TotalFeesCollected != "" + case "noble.dollar.vaults.v2.FeeStats.total_yield_collected": + return x.TotalYieldCollected != "" + case "noble.dollar.vaults.v2.FeeStats.current_annual_rate": + return x.CurrentAnnualRate != int32(0) + case "noble.dollar.vaults.v2.FeeStats.last_collection": + return x.LastCollection != nil + case "noble.dollar.vaults.v2.FeeStats.avg_daily_collection": + return x.AvgDailyCollection != "" + case "noble.dollar.vaults.v2.FeeStats.collection_frequency": + return x.CollectionFrequency != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeStats")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeStats 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_FeeStats) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeStats.total_fees_collected": + x.TotalFeesCollected = "" + case "noble.dollar.vaults.v2.FeeStats.total_yield_collected": + x.TotalYieldCollected = "" + case "noble.dollar.vaults.v2.FeeStats.current_annual_rate": + x.CurrentAnnualRate = int32(0) + case "noble.dollar.vaults.v2.FeeStats.last_collection": + x.LastCollection = nil + case "noble.dollar.vaults.v2.FeeStats.avg_daily_collection": + x.AvgDailyCollection = "" + case "noble.dollar.vaults.v2.FeeStats.collection_frequency": + x.CollectionFrequency = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeStats")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeStats 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_FeeStats) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeStats.total_fees_collected": + value := x.TotalFeesCollected + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeStats.total_yield_collected": + value := x.TotalYieldCollected + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeStats.current_annual_rate": + value := x.CurrentAnnualRate + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.FeeStats.last_collection": + value := x.LastCollection + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeStats.avg_daily_collection": + value := x.AvgDailyCollection + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeStats.collection_frequency": + value := x.CollectionFrequency + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeStats")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeStats 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_FeeStats) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeStats.total_fees_collected": + x.TotalFeesCollected = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeStats.total_yield_collected": + x.TotalYieldCollected = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeStats.current_annual_rate": + x.CurrentAnnualRate = int32(value.Int()) + case "noble.dollar.vaults.v2.FeeStats.last_collection": + x.LastCollection = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.FeeStats.avg_daily_collection": + x.AvgDailyCollection = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeStats.collection_frequency": + x.CollectionFrequency = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeStats")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeStats 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_FeeStats) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeStats.last_collection": + if x.LastCollection == nil { + x.LastCollection = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastCollection.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeStats.total_fees_collected": + panic(fmt.Errorf("field total_fees_collected of message noble.dollar.vaults.v2.FeeStats is not mutable")) + case "noble.dollar.vaults.v2.FeeStats.total_yield_collected": + panic(fmt.Errorf("field total_yield_collected of message noble.dollar.vaults.v2.FeeStats is not mutable")) + case "noble.dollar.vaults.v2.FeeStats.current_annual_rate": + panic(fmt.Errorf("field current_annual_rate of message noble.dollar.vaults.v2.FeeStats is not mutable")) + case "noble.dollar.vaults.v2.FeeStats.avg_daily_collection": + panic(fmt.Errorf("field avg_daily_collection of message noble.dollar.vaults.v2.FeeStats is not mutable")) + case "noble.dollar.vaults.v2.FeeStats.collection_frequency": + panic(fmt.Errorf("field collection_frequency of message noble.dollar.vaults.v2.FeeStats is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeStats")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeStats 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_FeeStats) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeStats.total_fees_collected": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeStats.total_yield_collected": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeStats.current_annual_rate": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.FeeStats.last_collection": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeStats.avg_daily_collection": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeStats.collection_frequency": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeStats")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeStats 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_FeeStats) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeStats", 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_FeeStats) 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_FeeStats) 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_FeeStats) 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_FeeStats) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeStats) + 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.TotalFeesCollected) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalYieldCollected) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CurrentAnnualRate != 0 { + n += 1 + runtime.Sov(uint64(x.CurrentAnnualRate)) + } + if x.LastCollection != nil { + l = options.Size(x.LastCollection) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AvgDailyCollection) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CollectionFrequency != 0 { + n += 1 + runtime.Sov(uint64(x.CollectionFrequency)) + } + 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().(*FeeStats) + 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.CollectionFrequency != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CollectionFrequency)) + i-- + dAtA[i] = 0x30 + } + if len(x.AvgDailyCollection) > 0 { + i -= len(x.AvgDailyCollection) + copy(dAtA[i:], x.AvgDailyCollection) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AvgDailyCollection))) + i-- + dAtA[i] = 0x2a + } + if x.LastCollection != nil { + encoded, err := options.Marshal(x.LastCollection) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.CurrentAnnualRate != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CurrentAnnualRate)) + i-- + dAtA[i] = 0x18 + } + if len(x.TotalYieldCollected) > 0 { + i -= len(x.TotalYieldCollected) + copy(dAtA[i:], x.TotalYieldCollected) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalYieldCollected))) + i-- + dAtA[i] = 0x12 + } + if len(x.TotalFeesCollected) > 0 { + i -= len(x.TotalFeesCollected) + copy(dAtA[i:], x.TotalFeesCollected) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalFeesCollected))) + 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().(*FeeStats) + 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: FeeStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeStats: 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 TotalFeesCollected", 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.TotalFeesCollected = 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 TotalYieldCollected", 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.TotalYieldCollected = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrentAnnualRate", wireType) + } + x.CurrentAnnualRate = 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.CurrentAnnualRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCollection", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastCollection == nil { + x.LastCollection = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCollection); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AvgDailyCollection", 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.AvgDailyCollection = 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 CollectionFrequency", wireType) + } + x.CollectionFrequency = 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.CollectionFrequency |= int64(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, + } +} + +var ( + md_PerformanceFeeState protoreflect.MessageDescriptor + fd_PerformanceFeeState_high_water_mark protoreflect.FieldDescriptor + fd_PerformanceFeeState_last_calculation protoreflect.FieldDescriptor + fd_PerformanceFeeState_period_start protoreflect.FieldDescriptor + fd_PerformanceFeeState_accrued_performance_fees protoreflect.FieldDescriptor + fd_PerformanceFeeState_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_PerformanceFeeState = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("PerformanceFeeState") + fd_PerformanceFeeState_high_water_mark = md_PerformanceFeeState.Fields().ByName("high_water_mark") + fd_PerformanceFeeState_last_calculation = md_PerformanceFeeState.Fields().ByName("last_calculation") + fd_PerformanceFeeState_period_start = md_PerformanceFeeState.Fields().ByName("period_start") + fd_PerformanceFeeState_accrued_performance_fees = md_PerformanceFeeState.Fields().ByName("accrued_performance_fees") + fd_PerformanceFeeState_active = md_PerformanceFeeState.Fields().ByName("active") +} + +var _ protoreflect.Message = (*fastReflection_PerformanceFeeState)(nil) + +type fastReflection_PerformanceFeeState PerformanceFeeState + +func (x *PerformanceFeeState) ProtoReflect() protoreflect.Message { + return (*fastReflection_PerformanceFeeState)(x) +} + +func (x *PerformanceFeeState) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[6] + 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_PerformanceFeeState_messageType fastReflection_PerformanceFeeState_messageType +var _ protoreflect.MessageType = fastReflection_PerformanceFeeState_messageType{} + +type fastReflection_PerformanceFeeState_messageType struct{} + +func (x fastReflection_PerformanceFeeState_messageType) Zero() protoreflect.Message { + return (*fastReflection_PerformanceFeeState)(nil) +} +func (x fastReflection_PerformanceFeeState_messageType) New() protoreflect.Message { + return new(fastReflection_PerformanceFeeState) +} +func (x fastReflection_PerformanceFeeState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PerformanceFeeState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PerformanceFeeState) Descriptor() protoreflect.MessageDescriptor { + return md_PerformanceFeeState +} + +// 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_PerformanceFeeState) Type() protoreflect.MessageType { + return _fastReflection_PerformanceFeeState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PerformanceFeeState) New() protoreflect.Message { + return new(fastReflection_PerformanceFeeState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PerformanceFeeState) Interface() protoreflect.ProtoMessage { + return (*PerformanceFeeState)(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_PerformanceFeeState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.HighWaterMark != "" { + value := protoreflect.ValueOfString(x.HighWaterMark) + if !f(fd_PerformanceFeeState_high_water_mark, value) { + return + } + } + if x.LastCalculation != nil { + value := protoreflect.ValueOfMessage(x.LastCalculation.ProtoReflect()) + if !f(fd_PerformanceFeeState_last_calculation, value) { + return + } + } + if x.PeriodStart != nil { + value := protoreflect.ValueOfMessage(x.PeriodStart.ProtoReflect()) + if !f(fd_PerformanceFeeState_period_start, value) { + return + } + } + if x.AccruedPerformanceFees != "" { + value := protoreflect.ValueOfString(x.AccruedPerformanceFees) + if !f(fd_PerformanceFeeState_accrued_performance_fees, value) { + return + } + } + if x.Active != false { + value := protoreflect.ValueOfBool(x.Active) + if !f(fd_PerformanceFeeState_active, 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_PerformanceFeeState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PerformanceFeeState.high_water_mark": + return x.HighWaterMark != "" + case "noble.dollar.vaults.v2.PerformanceFeeState.last_calculation": + return x.LastCalculation != nil + case "noble.dollar.vaults.v2.PerformanceFeeState.period_start": + return x.PeriodStart != nil + case "noble.dollar.vaults.v2.PerformanceFeeState.accrued_performance_fees": + return x.AccruedPerformanceFees != "" + case "noble.dollar.vaults.v2.PerformanceFeeState.active": + return x.Active != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PerformanceFeeState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PerformanceFeeState 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_PerformanceFeeState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PerformanceFeeState.high_water_mark": + x.HighWaterMark = "" + case "noble.dollar.vaults.v2.PerformanceFeeState.last_calculation": + x.LastCalculation = nil + case "noble.dollar.vaults.v2.PerformanceFeeState.period_start": + x.PeriodStart = nil + case "noble.dollar.vaults.v2.PerformanceFeeState.accrued_performance_fees": + x.AccruedPerformanceFees = "" + case "noble.dollar.vaults.v2.PerformanceFeeState.active": + x.Active = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PerformanceFeeState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PerformanceFeeState 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_PerformanceFeeState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.PerformanceFeeState.high_water_mark": + value := x.HighWaterMark + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.PerformanceFeeState.last_calculation": + value := x.LastCalculation + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.PerformanceFeeState.period_start": + value := x.PeriodStart + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.PerformanceFeeState.accrued_performance_fees": + value := x.AccruedPerformanceFees + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.PerformanceFeeState.active": + value := x.Active + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PerformanceFeeState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PerformanceFeeState 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_PerformanceFeeState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PerformanceFeeState.high_water_mark": + x.HighWaterMark = value.Interface().(string) + case "noble.dollar.vaults.v2.PerformanceFeeState.last_calculation": + x.LastCalculation = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.PerformanceFeeState.period_start": + x.PeriodStart = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.PerformanceFeeState.accrued_performance_fees": + x.AccruedPerformanceFees = value.Interface().(string) + case "noble.dollar.vaults.v2.PerformanceFeeState.active": + x.Active = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PerformanceFeeState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PerformanceFeeState 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_PerformanceFeeState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PerformanceFeeState.last_calculation": + if x.LastCalculation == nil { + x.LastCalculation = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastCalculation.ProtoReflect()) + case "noble.dollar.vaults.v2.PerformanceFeeState.period_start": + if x.PeriodStart == nil { + x.PeriodStart = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.PeriodStart.ProtoReflect()) + case "noble.dollar.vaults.v2.PerformanceFeeState.high_water_mark": + panic(fmt.Errorf("field high_water_mark of message noble.dollar.vaults.v2.PerformanceFeeState is not mutable")) + case "noble.dollar.vaults.v2.PerformanceFeeState.accrued_performance_fees": + panic(fmt.Errorf("field accrued_performance_fees of message noble.dollar.vaults.v2.PerformanceFeeState is not mutable")) + case "noble.dollar.vaults.v2.PerformanceFeeState.active": + panic(fmt.Errorf("field active of message noble.dollar.vaults.v2.PerformanceFeeState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PerformanceFeeState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PerformanceFeeState 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_PerformanceFeeState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PerformanceFeeState.high_water_mark": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.PerformanceFeeState.last_calculation": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.PerformanceFeeState.period_start": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.PerformanceFeeState.accrued_performance_fees": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.PerformanceFeeState.active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PerformanceFeeState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PerformanceFeeState 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_PerformanceFeeState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.PerformanceFeeState", 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_PerformanceFeeState) 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_PerformanceFeeState) 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_PerformanceFeeState) 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_PerformanceFeeState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PerformanceFeeState) + 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.HighWaterMark) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastCalculation != nil { + l = options.Size(x.LastCalculation) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PeriodStart != nil { + l = options.Size(x.PeriodStart) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AccruedPerformanceFees) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Active { + n += 2 + } + 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().(*PerformanceFeeState) + 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.Active { + i-- + if x.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(x.AccruedPerformanceFees) > 0 { + i -= len(x.AccruedPerformanceFees) + copy(dAtA[i:], x.AccruedPerformanceFees) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccruedPerformanceFees))) + i-- + dAtA[i] = 0x22 + } + if x.PeriodStart != nil { + encoded, err := options.Marshal(x.PeriodStart) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.LastCalculation != nil { + encoded, err := options.Marshal(x.LastCalculation) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.HighWaterMark) > 0 { + i -= len(x.HighWaterMark) + copy(dAtA[i:], x.HighWaterMark) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HighWaterMark))) + 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().(*PerformanceFeeState) + 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: PerformanceFeeState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PerformanceFeeState: 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 HighWaterMark", 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.HighWaterMark = 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 LastCalculation", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastCalculation == nil { + x.LastCalculation = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCalculation); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PeriodStart", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.PeriodStart == nil { + x.PeriodStart = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PeriodStart); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AccruedPerformanceFees", 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.AccruedPerformanceFees = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Active = bool(v != 0) + 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, + } +} + +var _ protoreflect.List = (*_FeeExemption_2_list)(nil) + +type _FeeExemption_2_list struct { + list *[]FeeType +} + +func (x *_FeeExemption_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_FeeExemption_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) +} + +func (x *_FeeExemption_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (FeeType)(valueUnwrapped) + (*x.list)[i] = concreteValue +} + +func (x *_FeeExemption_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (FeeType)(valueUnwrapped) + *x.list = append(*x.list, concreteValue) +} + +func (x *_FeeExemption_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message FeeExemption at list field ExemptedTypes as it is not of Message kind")) +} + +func (x *_FeeExemption_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_FeeExemption_2_list) NewElement() protoreflect.Value { + v := 0 + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) +} + +func (x *_FeeExemption_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_FeeExemption protoreflect.MessageDescriptor + fd_FeeExemption_address protoreflect.FieldDescriptor + fd_FeeExemption_exempted_types protoreflect.FieldDescriptor + fd_FeeExemption_expiry protoreflect.FieldDescriptor + fd_FeeExemption_reason protoreflect.FieldDescriptor + fd_FeeExemption_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeExemption = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeExemption") + fd_FeeExemption_address = md_FeeExemption.Fields().ByName("address") + fd_FeeExemption_exempted_types = md_FeeExemption.Fields().ByName("exempted_types") + fd_FeeExemption_expiry = md_FeeExemption.Fields().ByName("expiry") + fd_FeeExemption_reason = md_FeeExemption.Fields().ByName("reason") + fd_FeeExemption_active = md_FeeExemption.Fields().ByName("active") +} + +var _ protoreflect.Message = (*fastReflection_FeeExemption)(nil) + +type fastReflection_FeeExemption FeeExemption + +func (x *FeeExemption) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeExemption)(x) +} + +func (x *FeeExemption) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[7] + 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_FeeExemption_messageType fastReflection_FeeExemption_messageType +var _ protoreflect.MessageType = fastReflection_FeeExemption_messageType{} + +type fastReflection_FeeExemption_messageType struct{} + +func (x fastReflection_FeeExemption_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeExemption)(nil) +} +func (x fastReflection_FeeExemption_messageType) New() protoreflect.Message { + return new(fastReflection_FeeExemption) +} +func (x fastReflection_FeeExemption_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeExemption +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeExemption) Descriptor() protoreflect.MessageDescriptor { + return md_FeeExemption +} + +// 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_FeeExemption) Type() protoreflect.MessageType { + return _fastReflection_FeeExemption_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeExemption) New() protoreflect.Message { + return new(fastReflection_FeeExemption) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeExemption) Interface() protoreflect.ProtoMessage { + return (*FeeExemption)(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_FeeExemption) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Address) != 0 { + value := protoreflect.ValueOfBytes(x.Address) + if !f(fd_FeeExemption_address, value) { + return + } + } + if len(x.ExemptedTypes) != 0 { + value := protoreflect.ValueOfList(&_FeeExemption_2_list{list: &x.ExemptedTypes}) + if !f(fd_FeeExemption_exempted_types, value) { + return + } + } + if x.Expiry != nil { + value := protoreflect.ValueOfMessage(x.Expiry.ProtoReflect()) + if !f(fd_FeeExemption_expiry, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_FeeExemption_reason, value) { + return + } + } + if x.Active != false { + value := protoreflect.ValueOfBool(x.Active) + if !f(fd_FeeExemption_active, 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_FeeExemption) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeExemption.address": + return len(x.Address) != 0 + case "noble.dollar.vaults.v2.FeeExemption.exempted_types": + return len(x.ExemptedTypes) != 0 + case "noble.dollar.vaults.v2.FeeExemption.expiry": + return x.Expiry != nil + case "noble.dollar.vaults.v2.FeeExemption.reason": + return x.Reason != "" + case "noble.dollar.vaults.v2.FeeExemption.active": + return x.Active != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeExemption")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeExemption 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_FeeExemption) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeExemption.address": + x.Address = nil + case "noble.dollar.vaults.v2.FeeExemption.exempted_types": + x.ExemptedTypes = nil + case "noble.dollar.vaults.v2.FeeExemption.expiry": + x.Expiry = nil + case "noble.dollar.vaults.v2.FeeExemption.reason": + x.Reason = "" + case "noble.dollar.vaults.v2.FeeExemption.active": + x.Active = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeExemption")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeExemption 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_FeeExemption) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeExemption.address": + value := x.Address + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.FeeExemption.exempted_types": + if len(x.ExemptedTypes) == 0 { + return protoreflect.ValueOfList(&_FeeExemption_2_list{}) + } + listValue := &_FeeExemption_2_list{list: &x.ExemptedTypes} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.FeeExemption.expiry": + value := x.Expiry + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeExemption.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.FeeExemption.active": + value := x.Active + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeExemption")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeExemption 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_FeeExemption) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeExemption.address": + x.Address = value.Bytes() + case "noble.dollar.vaults.v2.FeeExemption.exempted_types": + lv := value.List() + clv := lv.(*_FeeExemption_2_list) + x.ExemptedTypes = *clv.list + case "noble.dollar.vaults.v2.FeeExemption.expiry": + x.Expiry = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.FeeExemption.reason": + x.Reason = value.Interface().(string) + case "noble.dollar.vaults.v2.FeeExemption.active": + x.Active = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeExemption")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeExemption 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_FeeExemption) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeExemption.exempted_types": + if x.ExemptedTypes == nil { + x.ExemptedTypes = []FeeType{} + } + value := &_FeeExemption_2_list{list: &x.ExemptedTypes} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.FeeExemption.expiry": + if x.Expiry == nil { + x.Expiry = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Expiry.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeExemption.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.FeeExemption is not mutable")) + case "noble.dollar.vaults.v2.FeeExemption.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.FeeExemption is not mutable")) + case "noble.dollar.vaults.v2.FeeExemption.active": + panic(fmt.Errorf("field active of message noble.dollar.vaults.v2.FeeExemption is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeExemption")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeExemption 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_FeeExemption) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeExemption.address": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.FeeExemption.exempted_types": + list := []FeeType{} + return protoreflect.ValueOfList(&_FeeExemption_2_list{list: &list}) + case "noble.dollar.vaults.v2.FeeExemption.expiry": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeExemption.reason": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.FeeExemption.active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeExemption")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeExemption 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_FeeExemption) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeExemption", 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_FeeExemption) 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_FeeExemption) 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_FeeExemption) 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_FeeExemption) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeExemption) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.ExemptedTypes) > 0 { + l = 0 + for _, e := range x.ExemptedTypes { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if x.Expiry != nil { + l = options.Size(x.Expiry) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Active { + n += 2 + } + 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().(*FeeExemption) + 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.Active { + i-- + if x.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x22 + } + if x.Expiry != nil { + encoded, err := options.Marshal(x.Expiry) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.ExemptedTypes) > 0 { + var pksize2 int + for _, num := range x.ExemptedTypes { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range x.ExemptedTypes { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*FeeExemption) + 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: FeeExemption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeExemption: 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 Address", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Address = append(x.Address[:0], dAtA[iNdEx:postIndex]...) + if x.Address == nil { + x.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType == 0 { + var v FeeType + 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++ + v |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ExemptedTypes = append(x.ExemptedTypes, v) + } else if wireType == 2 { + var packedLen int + 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + 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 + } + var elementCount int + if elementCount != 0 && len(x.ExemptedTypes) == 0 { + x.ExemptedTypes = make([]FeeType, 0, elementCount) + } + for iNdEx < postIndex { + var v FeeType + 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++ + v |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ExemptedTypes = append(x.ExemptedTypes, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExemptedTypes", wireType) + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Expiry == nil { + x.Expiry = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Expiry); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Active = bool(v != 0) + 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, + } +} + +var ( + md_FeeSchedule protoreflect.MessageDescriptor + fd_FeeSchedule_effective_date protoreflect.FieldDescriptor + fd_FeeSchedule_fee_config protoreflect.FieldDescriptor + fd_FeeSchedule_active protoreflect.FieldDescriptor + fd_FeeSchedule_description protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_fees_proto_init() + md_FeeSchedule = File_noble_dollar_vaults_v2_fees_proto.Messages().ByName("FeeSchedule") + fd_FeeSchedule_effective_date = md_FeeSchedule.Fields().ByName("effective_date") + fd_FeeSchedule_fee_config = md_FeeSchedule.Fields().ByName("fee_config") + fd_FeeSchedule_active = md_FeeSchedule.Fields().ByName("active") + fd_FeeSchedule_description = md_FeeSchedule.Fields().ByName("description") +} + +var _ protoreflect.Message = (*fastReflection_FeeSchedule)(nil) + +type fastReflection_FeeSchedule FeeSchedule + +func (x *FeeSchedule) ProtoReflect() protoreflect.Message { + return (*fastReflection_FeeSchedule)(x) +} + +func (x *FeeSchedule) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[8] + 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_FeeSchedule_messageType fastReflection_FeeSchedule_messageType +var _ protoreflect.MessageType = fastReflection_FeeSchedule_messageType{} + +type fastReflection_FeeSchedule_messageType struct{} + +func (x fastReflection_FeeSchedule_messageType) Zero() protoreflect.Message { + return (*fastReflection_FeeSchedule)(nil) +} +func (x fastReflection_FeeSchedule_messageType) New() protoreflect.Message { + return new(fastReflection_FeeSchedule) +} +func (x fastReflection_FeeSchedule_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FeeSchedule +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FeeSchedule) Descriptor() protoreflect.MessageDescriptor { + return md_FeeSchedule +} + +// 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_FeeSchedule) Type() protoreflect.MessageType { + return _fastReflection_FeeSchedule_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FeeSchedule) New() protoreflect.Message { + return new(fastReflection_FeeSchedule) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FeeSchedule) Interface() protoreflect.ProtoMessage { + return (*FeeSchedule)(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_FeeSchedule) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.EffectiveDate != nil { + value := protoreflect.ValueOfMessage(x.EffectiveDate.ProtoReflect()) + if !f(fd_FeeSchedule_effective_date, value) { + return + } + } + if x.FeeConfig != nil { + value := protoreflect.ValueOfMessage(x.FeeConfig.ProtoReflect()) + if !f(fd_FeeSchedule_fee_config, value) { + return + } + } + if x.Active != false { + value := protoreflect.ValueOfBool(x.Active) + if !f(fd_FeeSchedule_active, value) { + return + } + } + if x.Description != "" { + value := protoreflect.ValueOfString(x.Description) + if !f(fd_FeeSchedule_description, 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_FeeSchedule) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeSchedule.effective_date": + return x.EffectiveDate != nil + case "noble.dollar.vaults.v2.FeeSchedule.fee_config": + return x.FeeConfig != nil + case "noble.dollar.vaults.v2.FeeSchedule.active": + return x.Active != false + case "noble.dollar.vaults.v2.FeeSchedule.description": + return x.Description != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeSchedule")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeSchedule 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_FeeSchedule) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeSchedule.effective_date": + x.EffectiveDate = nil + case "noble.dollar.vaults.v2.FeeSchedule.fee_config": + x.FeeConfig = nil + case "noble.dollar.vaults.v2.FeeSchedule.active": + x.Active = false + case "noble.dollar.vaults.v2.FeeSchedule.description": + x.Description = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeSchedule")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeSchedule 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_FeeSchedule) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FeeSchedule.effective_date": + value := x.EffectiveDate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeSchedule.fee_config": + value := x.FeeConfig + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeSchedule.active": + value := x.Active + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.FeeSchedule.description": + value := x.Description + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeSchedule")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeSchedule 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_FeeSchedule) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeSchedule.effective_date": + x.EffectiveDate = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.FeeSchedule.fee_config": + x.FeeConfig = value.Message().Interface().(*FeeConfig) + case "noble.dollar.vaults.v2.FeeSchedule.active": + x.Active = value.Bool() + case "noble.dollar.vaults.v2.FeeSchedule.description": + x.Description = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeSchedule")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeSchedule 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_FeeSchedule) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeSchedule.effective_date": + if x.EffectiveDate == nil { + x.EffectiveDate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.EffectiveDate.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeSchedule.fee_config": + if x.FeeConfig == nil { + x.FeeConfig = new(FeeConfig) + } + return protoreflect.ValueOfMessage(x.FeeConfig.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeSchedule.active": + panic(fmt.Errorf("field active of message noble.dollar.vaults.v2.FeeSchedule is not mutable")) + case "noble.dollar.vaults.v2.FeeSchedule.description": + panic(fmt.Errorf("field description of message noble.dollar.vaults.v2.FeeSchedule is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeSchedule")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeSchedule 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_FeeSchedule) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FeeSchedule.effective_date": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeSchedule.fee_config": + m := new(FeeConfig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.FeeSchedule.active": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.FeeSchedule.description": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FeeSchedule")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FeeSchedule 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_FeeSchedule) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FeeSchedule", 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_FeeSchedule) 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_FeeSchedule) 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_FeeSchedule) 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_FeeSchedule) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FeeSchedule) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.EffectiveDate != nil { + l = options.Size(x.EffectiveDate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FeeConfig != nil { + l = options.Size(x.FeeConfig) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Active { + n += 2 + } + l = len(x.Description) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*FeeSchedule) + 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 len(x.Description) > 0 { + i -= len(x.Description) + copy(dAtA[i:], x.Description) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Description))) + i-- + dAtA[i] = 0x22 + } + if x.Active { + i-- + if x.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if x.FeeConfig != nil { + encoded, err := options.Marshal(x.FeeConfig) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.EffectiveDate != nil { + encoded, err := options.Marshal(x.EffectiveDate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*FeeSchedule) + 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: FeeSchedule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FeeSchedule: 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 EffectiveDate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.EffectiveDate == nil { + x.EffectiveDate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveDate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeConfig", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.FeeConfig == nil { + x.FeeConfig = &FeeConfig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.FeeConfig); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Active = bool(v != 0) + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", 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.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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: noble/dollar/vaults/v2/fees.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) +) + +// FeeType defines the different types of fees that can be collected +type FeeType int32 + +const ( + // Management fee charged periodically + FeeType_FEE_TYPE_MANAGEMENT FeeType = 0 + // Performance fee on positive returns + FeeType_FEE_TYPE_PERFORMANCE FeeType = 1 +) + +// Enum value maps for FeeType. +var ( + FeeType_name = map[int32]string{ + 0: "FEE_TYPE_MANAGEMENT", + 1: "FEE_TYPE_PERFORMANCE", + } + FeeType_value = map[string]int32{ + "FEE_TYPE_MANAGEMENT": 0, + "FEE_TYPE_PERFORMANCE": 1, + } +) + +func (x FeeType) Enum() *FeeType { + p := new(FeeType) + *p = x + return p +} + +func (x FeeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FeeType) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_fees_proto_enumTypes[0].Descriptor() +} + +func (FeeType) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_fees_proto_enumTypes[0] +} + +func (x FeeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FeeType.Descriptor instead. +func (FeeType) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{0} +} + +// FeeConfig defines the configuration for various fees +type FeeConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Management fee rate (annual basis points) + ManagementFeeRate int32 `protobuf:"varint,1,opt,name=management_fee_rate,json=managementFeeRate,proto3" json:"management_fee_rate,omitempty"` + // Performance fee rate (basis points) + PerformanceFeeRate int32 `protobuf:"varint,2,opt,name=performance_fee_rate,json=performanceFeeRate,proto3" json:"performance_fee_rate,omitempty"` + // Fee recipient address + FeeRecipient string `protobuf:"bytes,3,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"` + // Whether fees are enabled + FeesEnabled bool `protobuf:"varint,4,opt,name=fees_enabled,json=feesEnabled,proto3" json:"fees_enabled,omitempty"` + // High water mark for performance fees + HighWaterMark string `protobuf:"bytes,5,opt,name=high_water_mark,json=highWaterMark,proto3" json:"high_water_mark,omitempty"` +} + +func (x *FeeConfig) Reset() { + *x = FeeConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeConfig) ProtoMessage() {} + +// Deprecated: Use FeeConfig.ProtoReflect.Descriptor instead. +func (*FeeConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{0} +} + +func (x *FeeConfig) GetManagementFeeRate() int32 { + if x != nil { + return x.ManagementFeeRate + } + return 0 +} + +func (x *FeeConfig) GetPerformanceFeeRate() int32 { + if x != nil { + return x.PerformanceFeeRate + } + return 0 +} + +func (x *FeeConfig) GetFeeRecipient() string { + if x != nil { + return x.FeeRecipient + } + return "" +} + +func (x *FeeConfig) GetFeesEnabled() bool { + if x != nil { + return x.FeesEnabled + } + return false +} + +func (x *FeeConfig) GetHighWaterMark() string { + if x != nil { + return x.HighWaterMark + } + return "" +} + +// YieldDeductionParams defines parameters for fee collection from yield +type YieldDeductionParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Target fee rate on yield (basis points) + YieldFeeRate int32 `protobuf:"varint,1,opt,name=yield_fee_rate,json=yieldFeeRate,proto3" json:"yield_fee_rate,omitempty"` + // Minimum fee amount per period + MinFeeAmount string `protobuf:"bytes,2,opt,name=min_fee_amount,json=minFeeAmount,proto3" json:"min_fee_amount,omitempty"` + // Maximum fee amount per period + MaxFeeAmount string `protobuf:"bytes,3,opt,name=max_fee_amount,json=maxFeeAmount,proto3" json:"max_fee_amount,omitempty"` + // Fee collection frequency (seconds) + CollectionFrequency int64 `protobuf:"varint,4,opt,name=collection_frequency,json=collectionFrequency,proto3" json:"collection_frequency,omitempty"` + // Last collection timestamp + LastCollection *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_collection,json=lastCollection,proto3" json:"last_collection,omitempty"` +} + +func (x *YieldDeductionParams) Reset() { + *x = YieldDeductionParams{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *YieldDeductionParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*YieldDeductionParams) ProtoMessage() {} + +// Deprecated: Use YieldDeductionParams.ProtoReflect.Descriptor instead. +func (*YieldDeductionParams) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{1} +} + +func (x *YieldDeductionParams) GetYieldFeeRate() int32 { + if x != nil { + return x.YieldFeeRate + } + return 0 +} + +func (x *YieldDeductionParams) GetMinFeeAmount() string { + if x != nil { + return x.MinFeeAmount + } + return "" +} + +func (x *YieldDeductionParams) GetMaxFeeAmount() string { + if x != nil { + return x.MaxFeeAmount + } + return "" +} + +func (x *YieldDeductionParams) GetCollectionFrequency() int64 { + if x != nil { + return x.CollectionFrequency + } + return 0 +} + +func (x *YieldDeductionParams) GetLastCollection() *timestamppb.Timestamp { + if x != nil { + return x.LastCollection + } + return nil +} + +// FeeAccrual represents accrued fees for a specific period +type FeeAccrual struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Fee type + FeeType FeeType `protobuf:"varint,1,opt,name=fee_type,json=feeType,proto3,enum=noble.dollar.vaults.v2.FeeType" json:"fee_type,omitempty"` + // Accrued amount + AccruedAmount string `protobuf:"bytes,2,opt,name=accrued_amount,json=accruedAmount,proto3" json:"accrued_amount,omitempty"` + // Yield to be deducted for this fee + YieldToDeduct string `protobuf:"bytes,3,opt,name=yield_to_deduct,json=yieldToDeduct,proto3" json:"yield_to_deduct,omitempty"` + // Accrual period start + PeriodStart *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=period_start,json=periodStart,proto3" json:"period_start,omitempty"` + // Accrual period end + PeriodEnd *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=period_end,json=periodEnd,proto3" json:"period_end,omitempty"` + // Whether this accrual has been collected + Collected bool `protobuf:"varint,6,opt,name=collected,proto3" json:"collected,omitempty"` +} + +func (x *FeeAccrual) Reset() { + *x = FeeAccrual{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeAccrual) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeAccrual) ProtoMessage() {} + +// Deprecated: Use FeeAccrual.ProtoReflect.Descriptor instead. +func (*FeeAccrual) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{2} +} + +func (x *FeeAccrual) GetFeeType() FeeType { + if x != nil { + return x.FeeType + } + return FeeType_FEE_TYPE_MANAGEMENT +} + +func (x *FeeAccrual) GetAccruedAmount() string { + if x != nil { + return x.AccruedAmount + } + return "" +} + +func (x *FeeAccrual) GetYieldToDeduct() string { + if x != nil { + return x.YieldToDeduct + } + return "" +} + +func (x *FeeAccrual) GetPeriodStart() *timestamppb.Timestamp { + if x != nil { + return x.PeriodStart + } + return nil +} + +func (x *FeeAccrual) GetPeriodEnd() *timestamppb.Timestamp { + if x != nil { + return x.PeriodEnd + } + return nil +} + +func (x *FeeAccrual) GetCollected() bool { + if x != nil { + return x.Collected + } + return false +} + +// FeeCollection represents a completed fee collection event +type FeeCollection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Collection timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Total fee amount collected + TotalAmount string `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + // Yield deducted for collection + YieldDeducted string `protobuf:"bytes,3,opt,name=yield_deducted,json=yieldDeducted,proto3" json:"yield_deducted,omitempty"` + // Breakdown by fee type + Breakdown []*FeeTypeBreakdown `protobuf:"bytes,4,rep,name=breakdown,proto3" json:"breakdown,omitempty"` + // Block height when collected + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (x *FeeCollection) Reset() { + *x = FeeCollection{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeCollection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeCollection) ProtoMessage() {} + +// Deprecated: Use FeeCollection.ProtoReflect.Descriptor instead. +func (*FeeCollection) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{3} +} + +func (x *FeeCollection) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *FeeCollection) GetTotalAmount() string { + if x != nil { + return x.TotalAmount + } + return "" +} + +func (x *FeeCollection) GetYieldDeducted() string { + if x != nil { + return x.YieldDeducted + } + return "" +} + +func (x *FeeCollection) GetBreakdown() []*FeeTypeBreakdown { + if x != nil { + return x.Breakdown + } + return nil +} + +func (x *FeeCollection) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +// FeeTypeBreakdown provides details for each fee type in a collection +type FeeTypeBreakdown struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Fee type + FeeType FeeType `protobuf:"varint,1,opt,name=fee_type,json=feeType,proto3,enum=noble.dollar.vaults.v2.FeeType" json:"fee_type,omitempty"` + // Amount for this fee type + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // Yield deducted for this fee type + YieldDeducted string `protobuf:"bytes,3,opt,name=yield_deducted,json=yieldDeducted,proto3" json:"yield_deducted,omitempty"` + // Fee rate applied (basis points) + RateApplied int32 `protobuf:"varint,4,opt,name=rate_applied,json=rateApplied,proto3" json:"rate_applied,omitempty"` +} + +func (x *FeeTypeBreakdown) Reset() { + *x = FeeTypeBreakdown{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeTypeBreakdown) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeTypeBreakdown) ProtoMessage() {} + +// Deprecated: Use FeeTypeBreakdown.ProtoReflect.Descriptor instead. +func (*FeeTypeBreakdown) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{4} +} + +func (x *FeeTypeBreakdown) GetFeeType() FeeType { + if x != nil { + return x.FeeType + } + return FeeType_FEE_TYPE_MANAGEMENT +} + +func (x *FeeTypeBreakdown) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *FeeTypeBreakdown) GetYieldDeducted() string { + if x != nil { + return x.YieldDeducted + } + return "" +} + +func (x *FeeTypeBreakdown) GetRateApplied() int32 { + if x != nil { + return x.RateApplied + } + return 0 +} + +// FeeStats provides statistics about fee collection +type FeeStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total fees collected (all time) + TotalFeesCollected string `protobuf:"bytes,1,opt,name=total_fees_collected,json=totalFeesCollected,proto3" json:"total_fees_collected,omitempty"` + // Total yield collected for fees + TotalYieldCollected string `protobuf:"bytes,2,opt,name=total_yield_collected,json=totalYieldCollected,proto3" json:"total_yield_collected,omitempty"` + // Current annualized fee rate (basis points) + CurrentAnnualRate int32 `protobuf:"varint,3,opt,name=current_annual_rate,json=currentAnnualRate,proto3" json:"current_annual_rate,omitempty"` + // Last fee collection timestamp + LastCollection *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_collection,json=lastCollection,proto3" json:"last_collection,omitempty"` + // Average daily fee collection + AvgDailyCollection string `protobuf:"bytes,5,opt,name=avg_daily_collection,json=avgDailyCollection,proto3" json:"avg_daily_collection,omitempty"` + // Fee collection frequency (seconds) + CollectionFrequency int64 `protobuf:"varint,6,opt,name=collection_frequency,json=collectionFrequency,proto3" json:"collection_frequency,omitempty"` +} + +func (x *FeeStats) Reset() { + *x = FeeStats{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeStats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeStats) ProtoMessage() {} + +// Deprecated: Use FeeStats.ProtoReflect.Descriptor instead. +func (*FeeStats) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{5} +} + +func (x *FeeStats) GetTotalFeesCollected() string { + if x != nil { + return x.TotalFeesCollected + } + return "" +} + +func (x *FeeStats) GetTotalYieldCollected() string { + if x != nil { + return x.TotalYieldCollected + } + return "" +} + +func (x *FeeStats) GetCurrentAnnualRate() int32 { + if x != nil { + return x.CurrentAnnualRate + } + return 0 +} + +func (x *FeeStats) GetLastCollection() *timestamppb.Timestamp { + if x != nil { + return x.LastCollection + } + return nil +} + +func (x *FeeStats) GetAvgDailyCollection() string { + if x != nil { + return x.AvgDailyCollection + } + return "" +} + +func (x *FeeStats) GetCollectionFrequency() int64 { + if x != nil { + return x.CollectionFrequency + } + return 0 +} + +// PerformanceFeeState tracks performance fee calculations +type PerformanceFeeState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current high water mark (total NAV) + HighWaterMark string `protobuf:"bytes,1,opt,name=high_water_mark,json=highWaterMark,proto3" json:"high_water_mark,omitempty"` + // Last performance fee calculation + LastCalculation *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_calculation,json=lastCalculation,proto3" json:"last_calculation,omitempty"` + // Current period start (for performance measurement) + PeriodStart *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=period_start,json=periodStart,proto3" json:"period_start,omitempty"` + // Accrued performance fees (not yet collected) + AccruedPerformanceFees string `protobuf:"bytes,4,opt,name=accrued_performance_fees,json=accruedPerformanceFees,proto3" json:"accrued_performance_fees,omitempty"` + // Whether performance fees are currently active + Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` +} + +func (x *PerformanceFeeState) Reset() { + *x = PerformanceFeeState{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PerformanceFeeState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PerformanceFeeState) ProtoMessage() {} + +// Deprecated: Use PerformanceFeeState.ProtoReflect.Descriptor instead. +func (*PerformanceFeeState) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{6} +} + +func (x *PerformanceFeeState) GetHighWaterMark() string { + if x != nil { + return x.HighWaterMark + } + return "" +} + +func (x *PerformanceFeeState) GetLastCalculation() *timestamppb.Timestamp { + if x != nil { + return x.LastCalculation + } + return nil +} + +func (x *PerformanceFeeState) GetPeriodStart() *timestamppb.Timestamp { + if x != nil { + return x.PeriodStart + } + return nil +} + +func (x *PerformanceFeeState) GetAccruedPerformanceFees() string { + if x != nil { + return x.AccruedPerformanceFees + } + return "" +} + +func (x *PerformanceFeeState) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +// FeeExemption represents an exemption from certain fees for specific addresses +type FeeExemption struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Exempt address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Exempted fee types + ExemptedTypes []FeeType `protobuf:"varint,2,rep,packed,name=exempted_types,json=exemptedTypes,proto3,enum=noble.dollar.vaults.v2.FeeType" json:"exempted_types,omitempty"` + // Exemption expiry (if applicable) + Expiry *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiry,proto3" json:"expiry,omitempty"` + // Exemption reason + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + // Whether exemption is active + Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` +} + +func (x *FeeExemption) Reset() { + *x = FeeExemption{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeExemption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeExemption) ProtoMessage() {} + +// Deprecated: Use FeeExemption.ProtoReflect.Descriptor instead. +func (*FeeExemption) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{7} +} + +func (x *FeeExemption) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +func (x *FeeExemption) GetExemptedTypes() []FeeType { + if x != nil { + return x.ExemptedTypes + } + return nil +} + +func (x *FeeExemption) GetExpiry() *timestamppb.Timestamp { + if x != nil { + return x.Expiry + } + return nil +} + +func (x *FeeExemption) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *FeeExemption) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +// FeeSchedule defines time-based fee rate changes +type FeeSchedule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Effective date for the fee rates + EffectiveDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=effective_date,json=effectiveDate,proto3" json:"effective_date,omitempty"` + // Fee configuration for this schedule + FeeConfig *FeeConfig `protobuf:"bytes,2,opt,name=fee_config,json=feeConfig,proto3" json:"fee_config,omitempty"` + // Whether this schedule is active + Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` + // Description of the schedule change + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *FeeSchedule) Reset() { + *x = FeeSchedule{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_fees_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FeeSchedule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FeeSchedule) ProtoMessage() {} + +// Deprecated: Use FeeSchedule.ProtoReflect.Descriptor instead. +func (*FeeSchedule) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP(), []int{8} +} + +func (x *FeeSchedule) GetEffectiveDate() *timestamppb.Timestamp { + if x != nil { + return x.EffectiveDate + } + return nil +} + +func (x *FeeSchedule) GetFeeConfig() *FeeConfig { + if x != nil { + return x.FeeConfig + } + return nil +} + +func (x *FeeSchedule) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +func (x *FeeSchedule) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +var File_noble_dollar_vaults_v2_fees_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_fees_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x65, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, 0x6d, 0x69, + 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xaf, 0x02, 0x0a, 0x09, 0x46, 0x65, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, + 0x0a, 0x13, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x65, 0x65, + 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x30, + 0x0a, 0x14, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x65, + 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x70, 0x65, + 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, + 0x12, 0x3d, 0x0a, 0x0d, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x0c, 0x66, 0x65, 0x65, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x66, 0x65, 0x65, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x66, 0x65, 0x65, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x5e, 0x0a, 0x0f, 0x68, 0x69, 0x67, 0x68, 0x5f, 0x77, 0x61, 0x74, 0x65, 0x72, + 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x68, 0x69, 0x67, 0x68, 0x57, 0x61, 0x74, 0x65, 0x72, 0x4d, 0x61, + 0x72, 0x6b, 0x22, 0xee, 0x02, 0x0a, 0x14, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x64, 0x75, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x79, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0c, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x65, 0x65, 0x52, 0x61, 0x74, + 0x65, 0x12, 0x56, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x6d, 0x69, 0x6e, + 0x46, 0x65, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x56, 0x0a, 0x0e, 0x6d, 0x61, 0x78, + 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x46, 0x65, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x31, 0x0a, 0x14, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x13, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x79, 0x12, 0x4d, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x03, 0x0a, 0x0a, 0x46, 0x65, 0x65, 0x41, 0x63, 0x63, 0x72, 0x75, + 0x61, 0x6c, 0x12, 0x3a, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x66, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x57, + 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, + 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x0f, 0x79, 0x69, 0x65, 0x6c, 0x64, + 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x0d, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x6f, 0x44, 0x65, 0x64, 0x75, 0x63, + 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x70, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, + 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x45, 0x6e, 0x64, 0x12, + 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0xec, 0x02, + 0x0a, 0x0d, 0x46, 0x65, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, + 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x12, 0x53, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x79, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x0d, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, + 0x64, 0x12, 0x46, 0x0a, 0x09, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x09, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x94, 0x02, 0x0a, + 0x10, 0x46, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, + 0x6e, 0x12, 0x3a, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x66, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x57, 0x0a, 0x0e, 0x79, 0x69, 0x65, 0x6c, 0x64, + 0x5f, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x0d, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x72, 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x64, 0x22, 0xea, 0x03, 0x0a, 0x08, 0x46, 0x65, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, + 0x12, 0x62, 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x5f, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x65, 0x65, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x12, 0x64, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x79, 0x69, + 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x59, 0x69, 0x65, 0x6c, + 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x6e, 0x6e, 0x75, 0x61, 0x6c, 0x5f, 0x72, 0x61, 0x74, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x41, 0x6e, 0x6e, 0x75, 0x61, 0x6c, 0x52, 0x61, 0x74, 0x65, 0x12, 0x4d, 0x0a, 0x0f, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x62, 0x0a, 0x14, 0x61, 0x76, 0x67, + 0x5f, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x61, 0x76, 0x67, 0x44, 0x61, + 0x69, 0x6c, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, + 0x14, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, + 0x22, 0x8d, 0x03, 0x0a, 0x13, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, + 0x46, 0x65, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x68, 0x69, 0x67, 0x68, + 0x5f, 0x77, 0x61, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x68, 0x69, 0x67, 0x68, 0x57, 0x61, 0x74, 0x65, 0x72, 0x4d, 0x61, + 0x72, 0x6b, 0x12, 0x4f, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x6c, 0x63, 0x75, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, + 0x1f, 0x01, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, + 0x0b, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x6a, 0x0a, 0x18, + 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x16, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x6e, 0x63, 0x65, 0x46, 0x65, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x22, 0xde, 0x01, 0x0a, 0x0c, 0x46, 0x65, 0x65, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x65, + 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x0b, 0x46, 0x65, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, + 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x40, + 0x0a, 0x0a, 0x66, 0x65, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x65, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x66, 0x65, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x42, 0x0a, 0x07, 0x46, 0x65, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x18, + 0x0a, 0x14, 0x46, 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x46, 0x4f, + 0x52, 0x4d, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x1a, 0x04, 0x88, 0xa3, 0x1e, 0x00, 0x42, 0xdb, + 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x09, 0x46, + 0x65, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, 0x33, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4e, 0x6f, + 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_fees_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_fees_proto_rawDescData = file_noble_dollar_vaults_v2_fees_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_fees_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_fees_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_fees_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_fees_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_fees_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_fees_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_noble_dollar_vaults_v2_fees_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_noble_dollar_vaults_v2_fees_proto_goTypes = []interface{}{ + (FeeType)(0), // 0: noble.dollar.vaults.v2.FeeType + (*FeeConfig)(nil), // 1: noble.dollar.vaults.v2.FeeConfig + (*YieldDeductionParams)(nil), // 2: noble.dollar.vaults.v2.YieldDeductionParams + (*FeeAccrual)(nil), // 3: noble.dollar.vaults.v2.FeeAccrual + (*FeeCollection)(nil), // 4: noble.dollar.vaults.v2.FeeCollection + (*FeeTypeBreakdown)(nil), // 5: noble.dollar.vaults.v2.FeeTypeBreakdown + (*FeeStats)(nil), // 6: noble.dollar.vaults.v2.FeeStats + (*PerformanceFeeState)(nil), // 7: noble.dollar.vaults.v2.PerformanceFeeState + (*FeeExemption)(nil), // 8: noble.dollar.vaults.v2.FeeExemption + (*FeeSchedule)(nil), // 9: noble.dollar.vaults.v2.FeeSchedule + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp +} +var file_noble_dollar_vaults_v2_fees_proto_depIdxs = []int32{ + 10, // 0: noble.dollar.vaults.v2.YieldDeductionParams.last_collection:type_name -> google.protobuf.Timestamp + 0, // 1: noble.dollar.vaults.v2.FeeAccrual.fee_type:type_name -> noble.dollar.vaults.v2.FeeType + 10, // 2: noble.dollar.vaults.v2.FeeAccrual.period_start:type_name -> google.protobuf.Timestamp + 10, // 3: noble.dollar.vaults.v2.FeeAccrual.period_end:type_name -> google.protobuf.Timestamp + 10, // 4: noble.dollar.vaults.v2.FeeCollection.timestamp:type_name -> google.protobuf.Timestamp + 5, // 5: noble.dollar.vaults.v2.FeeCollection.breakdown:type_name -> noble.dollar.vaults.v2.FeeTypeBreakdown + 0, // 6: noble.dollar.vaults.v2.FeeTypeBreakdown.fee_type:type_name -> noble.dollar.vaults.v2.FeeType + 10, // 7: noble.dollar.vaults.v2.FeeStats.last_collection:type_name -> google.protobuf.Timestamp + 10, // 8: noble.dollar.vaults.v2.PerformanceFeeState.last_calculation:type_name -> google.protobuf.Timestamp + 10, // 9: noble.dollar.vaults.v2.PerformanceFeeState.period_start:type_name -> google.protobuf.Timestamp + 0, // 10: noble.dollar.vaults.v2.FeeExemption.exempted_types:type_name -> noble.dollar.vaults.v2.FeeType + 10, // 11: noble.dollar.vaults.v2.FeeExemption.expiry:type_name -> google.protobuf.Timestamp + 10, // 12: noble.dollar.vaults.v2.FeeSchedule.effective_date:type_name -> google.protobuf.Timestamp + 1, // 13: noble.dollar.vaults.v2.FeeSchedule.fee_config:type_name -> noble.dollar.vaults.v2.FeeConfig + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_fees_proto_init() } +func file_noble_dollar_vaults_v2_fees_proto_init() { + if File_noble_dollar_vaults_v2_fees_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_fees_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*YieldDeductionParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeAccrual); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeCollection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeTypeBreakdown); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PerformanceFeeState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeExemption); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_fees_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FeeSchedule); 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_noble_dollar_vaults_v2_fees_proto_rawDesc, + NumEnums: 1, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_fees_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_fees_proto_depIdxs, + EnumInfos: file_noble_dollar_vaults_v2_fees_proto_enumTypes, + MessageInfos: file_noble_dollar_vaults_v2_fees_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_fees_proto = out.File + file_noble_dollar_vaults_v2_fees_proto_rawDesc = nil + file_noble_dollar_vaults_v2_fees_proto_goTypes = nil + file_noble_dollar_vaults_v2_fees_proto_depIdxs = nil +} diff --git a/api/vaults/v2/genesis.pulsar.go b/api/vaults/v2/genesis.pulsar.go new file mode 100644 index 00000000..af9300d9 --- /dev/null +++ b/api/vaults/v2/genesis.pulsar.go @@ -0,0 +1,6046 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var _ protoreflect.List = (*_GenesisState_3_list)(nil) + +type _GenesisState_3_list struct { + list *[]*UserPositionEntry +} + +func (x *_GenesisState_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*UserPositionEntry) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*UserPositionEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { + v := new(UserPositionEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_3_list) NewElement() protoreflect.Value { + v := new(UserPositionEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_4_list)(nil) + +type _GenesisState_4_list struct { + list *[]*NAVEntry +} + +func (x *_GenesisState_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NAVEntry) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NAVEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { + v := new(NAVEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_4_list) NewElement() protoreflect.Value { + v := new(NAVEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_5_list)(nil) + +type _GenesisState_5_list struct { + list *[]*WithdrawalRequestEntry +} + +func (x *_GenesisState_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithdrawalRequestEntry) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithdrawalRequestEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { + v := new(WithdrawalRequestEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_5_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_5_list) NewElement() protoreflect.Value { + v := new(WithdrawalRequestEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_5_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_vault_config protoreflect.FieldDescriptor + fd_GenesisState_user_positions protoreflect.FieldDescriptor + fd_GenesisState_nav_entries protoreflect.FieldDescriptor + fd_GenesisState_withdrawal_queue protoreflect.FieldDescriptor + fd_GenesisState_vault_totals protoreflect.FieldDescriptor + fd_GenesisState_vault_stats protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_GenesisState = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_params = md_GenesisState.Fields().ByName("params") + fd_GenesisState_vault_config = md_GenesisState.Fields().ByName("vault_config") + fd_GenesisState_user_positions = md_GenesisState.Fields().ByName("user_positions") + fd_GenesisState_nav_entries = md_GenesisState.Fields().ByName("nav_entries") + fd_GenesisState_withdrawal_queue = md_GenesisState.Fields().ByName("withdrawal_queue") + fd_GenesisState_vault_totals = md_GenesisState.Fields().ByName("vault_totals") + fd_GenesisState_vault_stats = md_GenesisState.Fields().ByName("vault_stats") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_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_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// 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_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_GenesisState_params, value) { + return + } + } + if x.VaultConfig != nil { + value := protoreflect.ValueOfMessage(x.VaultConfig.ProtoReflect()) + if !f(fd_GenesisState_vault_config, value) { + return + } + } + if len(x.UserPositions) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.UserPositions}) + if !f(fd_GenesisState_user_positions, value) { + return + } + } + if len(x.NavEntries) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.NavEntries}) + if !f(fd_GenesisState_nav_entries, value) { + return + } + } + if len(x.WithdrawalQueue) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.WithdrawalQueue}) + if !f(fd_GenesisState_withdrawal_queue, value) { + return + } + } + if x.VaultTotals != nil { + value := protoreflect.ValueOfMessage(x.VaultTotals.ProtoReflect()) + if !f(fd_GenesisState_vault_totals, value) { + return + } + } + if x.VaultStats != nil { + value := protoreflect.ValueOfMessage(x.VaultStats.ProtoReflect()) + if !f(fd_GenesisState_vault_stats, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.GenesisState.params": + return x.Params != nil + case "noble.dollar.vaults.v2.GenesisState.vault_config": + return x.VaultConfig != nil + case "noble.dollar.vaults.v2.GenesisState.user_positions": + return len(x.UserPositions) != 0 + case "noble.dollar.vaults.v2.GenesisState.nav_entries": + return len(x.NavEntries) != 0 + case "noble.dollar.vaults.v2.GenesisState.withdrawal_queue": + return len(x.WithdrawalQueue) != 0 + case "noble.dollar.vaults.v2.GenesisState.vault_totals": + return x.VaultTotals != nil + case "noble.dollar.vaults.v2.GenesisState.vault_stats": + return x.VaultStats != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.GenesisState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.GenesisState.params": + x.Params = nil + case "noble.dollar.vaults.v2.GenesisState.vault_config": + x.VaultConfig = nil + case "noble.dollar.vaults.v2.GenesisState.user_positions": + x.UserPositions = nil + case "noble.dollar.vaults.v2.GenesisState.nav_entries": + x.NavEntries = nil + case "noble.dollar.vaults.v2.GenesisState.withdrawal_queue": + x.WithdrawalQueue = nil + case "noble.dollar.vaults.v2.GenesisState.vault_totals": + x.VaultTotals = nil + case "noble.dollar.vaults.v2.GenesisState.vault_stats": + x.VaultStats = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.GenesisState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.GenesisState.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.vault_config": + value := x.VaultConfig + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.user_positions": + if len(x.UserPositions) == 0 { + return protoreflect.ValueOfList(&_GenesisState_3_list{}) + } + listValue := &_GenesisState_3_list{list: &x.UserPositions} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.GenesisState.nav_entries": + if len(x.NavEntries) == 0 { + return protoreflect.ValueOfList(&_GenesisState_4_list{}) + } + listValue := &_GenesisState_4_list{list: &x.NavEntries} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.GenesisState.withdrawal_queue": + if len(x.WithdrawalQueue) == 0 { + return protoreflect.ValueOfList(&_GenesisState_5_list{}) + } + listValue := &_GenesisState_5_list{list: &x.WithdrawalQueue} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.GenesisState.vault_totals": + value := x.VaultTotals + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.vault_stats": + value := x.VaultStats + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.GenesisState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.GenesisState.params": + x.Params = value.Message().Interface().(*Params) + case "noble.dollar.vaults.v2.GenesisState.vault_config": + x.VaultConfig = value.Message().Interface().(*VaultConfig) + case "noble.dollar.vaults.v2.GenesisState.user_positions": + lv := value.List() + clv := lv.(*_GenesisState_3_list) + x.UserPositions = *clv.list + case "noble.dollar.vaults.v2.GenesisState.nav_entries": + lv := value.List() + clv := lv.(*_GenesisState_4_list) + x.NavEntries = *clv.list + case "noble.dollar.vaults.v2.GenesisState.withdrawal_queue": + lv := value.List() + clv := lv.(*_GenesisState_5_list) + x.WithdrawalQueue = *clv.list + case "noble.dollar.vaults.v2.GenesisState.vault_totals": + x.VaultTotals = value.Message().Interface().(*VaultTotalEntry) + case "noble.dollar.vaults.v2.GenesisState.vault_stats": + x.VaultStats = value.Message().Interface().(*VaultStatsEntry) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.GenesisState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.GenesisState.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.vault_config": + if x.VaultConfig == nil { + x.VaultConfig = new(VaultConfig) + } + return protoreflect.ValueOfMessage(x.VaultConfig.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.user_positions": + if x.UserPositions == nil { + x.UserPositions = []*UserPositionEntry{} + } + value := &_GenesisState_3_list{list: &x.UserPositions} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.GenesisState.nav_entries": + if x.NavEntries == nil { + x.NavEntries = []*NAVEntry{} + } + value := &_GenesisState_4_list{list: &x.NavEntries} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.GenesisState.withdrawal_queue": + if x.WithdrawalQueue == nil { + x.WithdrawalQueue = []*WithdrawalRequestEntry{} + } + value := &_GenesisState_5_list{list: &x.WithdrawalQueue} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.GenesisState.vault_totals": + if x.VaultTotals == nil { + x.VaultTotals = new(VaultTotalEntry) + } + return protoreflect.ValueOfMessage(x.VaultTotals.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.vault_stats": + if x.VaultStats == nil { + x.VaultStats = new(VaultStatsEntry) + } + return protoreflect.ValueOfMessage(x.VaultStats.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.GenesisState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.GenesisState.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.vault_config": + m := new(VaultConfig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.user_positions": + list := []*UserPositionEntry{} + return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) + case "noble.dollar.vaults.v2.GenesisState.nav_entries": + list := []*NAVEntry{} + return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) + case "noble.dollar.vaults.v2.GenesisState.withdrawal_queue": + list := []*WithdrawalRequestEntry{} + return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) + case "noble.dollar.vaults.v2.GenesisState.vault_totals": + m := new(VaultTotalEntry) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.GenesisState.vault_stats": + m := new(VaultStatsEntry) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.GenesisState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.VaultConfig != nil { + l = options.Size(x.VaultConfig) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.UserPositions) > 0 { + for _, e := range x.UserPositions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.NavEntries) > 0 { + for _, e := range x.NavEntries { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.WithdrawalQueue) > 0 { + for _, e := range x.WithdrawalQueue { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.VaultTotals != nil { + l = options.Size(x.VaultTotals) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.VaultStats != nil { + l = options.Size(x.VaultStats) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*GenesisState) + 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.VaultStats != nil { + encoded, err := options.Marshal(x.VaultStats) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if x.VaultTotals != nil { + encoded, err := options.Marshal(x.VaultTotals) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.WithdrawalQueue) > 0 { + for iNdEx := len(x.WithdrawalQueue) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.WithdrawalQueue[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + } + if len(x.NavEntries) > 0 { + for iNdEx := len(x.NavEntries) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.NavEntries[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.UserPositions) > 0 { + for iNdEx := len(x.UserPositions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UserPositions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if x.VaultConfig != nil { + encoded, err := options.Marshal(x.VaultConfig) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*GenesisState) + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VaultConfig", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.VaultConfig == nil { + x.VaultConfig = &VaultConfig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VaultConfig); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UserPositions", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.UserPositions = append(x.UserPositions, &UserPositionEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UserPositions[len(x.UserPositions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NavEntries", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.NavEntries = append(x.NavEntries, &NAVEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NavEntries[len(x.NavEntries)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithdrawalQueue", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.WithdrawalQueue = append(x.WithdrawalQueue, &WithdrawalRequestEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WithdrawalQueue[len(x.WithdrawalQueue)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VaultTotals", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.VaultTotals == nil { + x.VaultTotals = &VaultTotalEntry{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VaultTotals); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VaultStats", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.VaultStats == nil { + x.VaultStats = &VaultStatsEntry{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VaultStats); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_Params protoreflect.MessageDescriptor + fd_Params_authority protoreflect.FieldDescriptor + fd_Params_min_deposit_amount protoreflect.FieldDescriptor + fd_Params_min_withdrawal_amount protoreflect.FieldDescriptor + fd_Params_max_nav_change_bps protoreflect.FieldDescriptor + fd_Params_withdrawal_request_timeout protoreflect.FieldDescriptor + fd_Params_max_withdrawal_requests_per_block protoreflect.FieldDescriptor + fd_Params_vault_enabled protoreflect.FieldDescriptor + fd_Params_twap_config protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_Params = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("Params") + fd_Params_authority = md_Params.Fields().ByName("authority") + fd_Params_min_deposit_amount = md_Params.Fields().ByName("min_deposit_amount") + fd_Params_min_withdrawal_amount = md_Params.Fields().ByName("min_withdrawal_amount") + fd_Params_max_nav_change_bps = md_Params.Fields().ByName("max_nav_change_bps") + fd_Params_withdrawal_request_timeout = md_Params.Fields().ByName("withdrawal_request_timeout") + fd_Params_max_withdrawal_requests_per_block = md_Params.Fields().ByName("max_withdrawal_requests_per_block") + fd_Params_vault_enabled = md_Params.Fields().ByName("vault_enabled") + fd_Params_twap_config = md_Params.Fields().ByName("twap_config") +} + +var _ protoreflect.Message = (*fastReflection_Params)(nil) + +type fastReflection_Params Params + +func (x *Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_Params)(x) +} + +func (x *Params) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[1] + 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_Params_messageType fastReflection_Params_messageType +var _ protoreflect.MessageType = fastReflection_Params_messageType{} + +type fastReflection_Params_messageType struct{} + +func (x fastReflection_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_Params)(nil) +} +func (x fastReflection_Params_messageType) New() protoreflect.Message { + return new(fastReflection_Params) +} +func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// 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_Params) Type() protoreflect.MessageType { + return _fastReflection_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Params) New() protoreflect.Message { + return new(fastReflection_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { + return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Params_authority, value) { + return + } + } + if x.MinDepositAmount != "" { + value := protoreflect.ValueOfString(x.MinDepositAmount) + if !f(fd_Params_min_deposit_amount, value) { + return + } + } + if x.MinWithdrawalAmount != "" { + value := protoreflect.ValueOfString(x.MinWithdrawalAmount) + if !f(fd_Params_min_withdrawal_amount, value) { + return + } + } + if x.MaxNavChangeBps != int32(0) { + value := protoreflect.ValueOfInt32(x.MaxNavChangeBps) + if !f(fd_Params_max_nav_change_bps, value) { + return + } + } + if x.WithdrawalRequestTimeout != int64(0) { + value := protoreflect.ValueOfInt64(x.WithdrawalRequestTimeout) + if !f(fd_Params_withdrawal_request_timeout, value) { + return + } + } + if x.MaxWithdrawalRequestsPerBlock != int32(0) { + value := protoreflect.ValueOfInt32(x.MaxWithdrawalRequestsPerBlock) + if !f(fd_Params_max_withdrawal_requests_per_block, value) { + return + } + } + if x.VaultEnabled != false { + value := protoreflect.ValueOfBool(x.VaultEnabled) + if !f(fd_Params_vault_enabled, value) { + return + } + } + if x.TwapConfig != nil { + value := protoreflect.ValueOfMessage(x.TwapConfig.ProtoReflect()) + if !f(fd_Params_twap_config, 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_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.Params.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.Params.min_deposit_amount": + return x.MinDepositAmount != "" + case "noble.dollar.vaults.v2.Params.min_withdrawal_amount": + return x.MinWithdrawalAmount != "" + case "noble.dollar.vaults.v2.Params.max_nav_change_bps": + return x.MaxNavChangeBps != int32(0) + case "noble.dollar.vaults.v2.Params.withdrawal_request_timeout": + return x.WithdrawalRequestTimeout != int64(0) + case "noble.dollar.vaults.v2.Params.max_withdrawal_requests_per_block": + return x.MaxWithdrawalRequestsPerBlock != int32(0) + case "noble.dollar.vaults.v2.Params.vault_enabled": + return x.VaultEnabled != false + case "noble.dollar.vaults.v2.Params.twap_config": + return x.TwapConfig != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.Params")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.Params.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.Params.min_deposit_amount": + x.MinDepositAmount = "" + case "noble.dollar.vaults.v2.Params.min_withdrawal_amount": + x.MinWithdrawalAmount = "" + case "noble.dollar.vaults.v2.Params.max_nav_change_bps": + x.MaxNavChangeBps = int32(0) + case "noble.dollar.vaults.v2.Params.withdrawal_request_timeout": + x.WithdrawalRequestTimeout = int64(0) + case "noble.dollar.vaults.v2.Params.max_withdrawal_requests_per_block": + x.MaxWithdrawalRequestsPerBlock = int32(0) + case "noble.dollar.vaults.v2.Params.vault_enabled": + x.VaultEnabled = false + case "noble.dollar.vaults.v2.Params.twap_config": + x.TwapConfig = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.Params")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.Params.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.Params.min_deposit_amount": + value := x.MinDepositAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.Params.min_withdrawal_amount": + value := x.MinWithdrawalAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.Params.max_nav_change_bps": + value := x.MaxNavChangeBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.Params.withdrawal_request_timeout": + value := x.WithdrawalRequestTimeout + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.Params.max_withdrawal_requests_per_block": + value := x.MaxWithdrawalRequestsPerBlock + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.Params.vault_enabled": + value := x.VaultEnabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.Params.twap_config": + value := x.TwapConfig + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.Params")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.Params.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.Params.min_deposit_amount": + x.MinDepositAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.Params.min_withdrawal_amount": + x.MinWithdrawalAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.Params.max_nav_change_bps": + x.MaxNavChangeBps = int32(value.Int()) + case "noble.dollar.vaults.v2.Params.withdrawal_request_timeout": + x.WithdrawalRequestTimeout = value.Int() + case "noble.dollar.vaults.v2.Params.max_withdrawal_requests_per_block": + x.MaxWithdrawalRequestsPerBlock = int32(value.Int()) + case "noble.dollar.vaults.v2.Params.vault_enabled": + x.VaultEnabled = value.Bool() + case "noble.dollar.vaults.v2.Params.twap_config": + x.TwapConfig = value.Message().Interface().(*TWAPConfig) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.Params")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.Params.twap_config": + if x.TwapConfig == nil { + x.TwapConfig = new(TWAPConfig) + } + return protoreflect.ValueOfMessage(x.TwapConfig.ProtoReflect()) + case "noble.dollar.vaults.v2.Params.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.Params is not mutable")) + case "noble.dollar.vaults.v2.Params.min_deposit_amount": + panic(fmt.Errorf("field min_deposit_amount of message noble.dollar.vaults.v2.Params is not mutable")) + case "noble.dollar.vaults.v2.Params.min_withdrawal_amount": + panic(fmt.Errorf("field min_withdrawal_amount of message noble.dollar.vaults.v2.Params is not mutable")) + case "noble.dollar.vaults.v2.Params.max_nav_change_bps": + panic(fmt.Errorf("field max_nav_change_bps of message noble.dollar.vaults.v2.Params is not mutable")) + case "noble.dollar.vaults.v2.Params.withdrawal_request_timeout": + panic(fmt.Errorf("field withdrawal_request_timeout of message noble.dollar.vaults.v2.Params is not mutable")) + case "noble.dollar.vaults.v2.Params.max_withdrawal_requests_per_block": + panic(fmt.Errorf("field max_withdrawal_requests_per_block of message noble.dollar.vaults.v2.Params is not mutable")) + case "noble.dollar.vaults.v2.Params.vault_enabled": + panic(fmt.Errorf("field vault_enabled of message noble.dollar.vaults.v2.Params is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.Params")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.Params.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.Params.min_deposit_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.Params.min_withdrawal_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.Params.max_nav_change_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.Params.withdrawal_request_timeout": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.Params.max_withdrawal_requests_per_block": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.Params.vault_enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.Params.twap_config": + m := new(TWAPConfig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.Params")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Params) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinDepositAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinWithdrawalAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxNavChangeBps != 0 { + n += 1 + runtime.Sov(uint64(x.MaxNavChangeBps)) + } + if x.WithdrawalRequestTimeout != 0 { + n += 1 + runtime.Sov(uint64(x.WithdrawalRequestTimeout)) + } + if x.MaxWithdrawalRequestsPerBlock != 0 { + n += 1 + runtime.Sov(uint64(x.MaxWithdrawalRequestsPerBlock)) + } + if x.VaultEnabled { + n += 2 + } + if x.TwapConfig != nil { + l = options.Size(x.TwapConfig) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*Params) + 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.TwapConfig != nil { + encoded, err := options.Marshal(x.TwapConfig) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + if x.VaultEnabled { + i-- + if x.VaultEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if x.MaxWithdrawalRequestsPerBlock != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxWithdrawalRequestsPerBlock)) + i-- + dAtA[i] = 0x30 + } + if x.WithdrawalRequestTimeout != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.WithdrawalRequestTimeout)) + i-- + dAtA[i] = 0x28 + } + if x.MaxNavChangeBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxNavChangeBps)) + i-- + dAtA[i] = 0x20 + } + if len(x.MinWithdrawalAmount) > 0 { + i -= len(x.MinWithdrawalAmount) + copy(dAtA[i:], x.MinWithdrawalAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinWithdrawalAmount))) + i-- + dAtA[i] = 0x1a + } + if len(x.MinDepositAmount) > 0 { + i -= len(x.MinDepositAmount) + copy(dAtA[i:], x.MinDepositAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinDepositAmount))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*Params) + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 Authority", 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.Authority = 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 MinDepositAmount", 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.MinDepositAmount = 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 MinWithdrawalAmount", 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.MinWithdrawalAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxNavChangeBps", wireType) + } + x.MaxNavChangeBps = 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.MaxNavChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithdrawalRequestTimeout", wireType) + } + x.WithdrawalRequestTimeout = 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.WithdrawalRequestTimeout |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxWithdrawalRequestsPerBlock", wireType) + } + x.MaxWithdrawalRequestsPerBlock = 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.MaxWithdrawalRequestsPerBlock |= int32(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 VaultEnabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.VaultEnabled = bool(v != 0) + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TwapConfig", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.TwapConfig == nil { + x.TwapConfig = &TWAPConfig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TwapConfig); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_VaultConfig protoreflect.MessageDescriptor + fd_VaultConfig_enabled protoreflect.FieldDescriptor + fd_VaultConfig_max_total_deposits protoreflect.FieldDescriptor + fd_VaultConfig_target_yield_rate protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_VaultConfig = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("VaultConfig") + fd_VaultConfig_enabled = md_VaultConfig.Fields().ByName("enabled") + fd_VaultConfig_max_total_deposits = md_VaultConfig.Fields().ByName("max_total_deposits") + fd_VaultConfig_target_yield_rate = md_VaultConfig.Fields().ByName("target_yield_rate") +} + +var _ protoreflect.Message = (*fastReflection_VaultConfig)(nil) + +type fastReflection_VaultConfig VaultConfig + +func (x *VaultConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_VaultConfig)(x) +} + +func (x *VaultConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[2] + 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_VaultConfig_messageType fastReflection_VaultConfig_messageType +var _ protoreflect.MessageType = fastReflection_VaultConfig_messageType{} + +type fastReflection_VaultConfig_messageType struct{} + +func (x fastReflection_VaultConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_VaultConfig)(nil) +} +func (x fastReflection_VaultConfig_messageType) New() protoreflect.Message { + return new(fastReflection_VaultConfig) +} +func (x fastReflection_VaultConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_VaultConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_VaultConfig) Descriptor() protoreflect.MessageDescriptor { + return md_VaultConfig +} + +// 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_VaultConfig) Type() protoreflect.MessageType { + return _fastReflection_VaultConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_VaultConfig) New() protoreflect.Message { + return new(fastReflection_VaultConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_VaultConfig) Interface() protoreflect.ProtoMessage { + return (*VaultConfig)(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_VaultConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Enabled != false { + value := protoreflect.ValueOfBool(x.Enabled) + if !f(fd_VaultConfig_enabled, value) { + return + } + } + if x.MaxTotalDeposits != "" { + value := protoreflect.ValueOfString(x.MaxTotalDeposits) + if !f(fd_VaultConfig_max_total_deposits, value) { + return + } + } + if x.TargetYieldRate != "" { + value := protoreflect.ValueOfString(x.TargetYieldRate) + if !f(fd_VaultConfig_target_yield_rate, 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_VaultConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultConfig.enabled": + return x.Enabled != false + case "noble.dollar.vaults.v2.VaultConfig.max_total_deposits": + return x.MaxTotalDeposits != "" + case "noble.dollar.vaults.v2.VaultConfig.target_yield_rate": + return x.TargetYieldRate != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultConfig 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_VaultConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultConfig.enabled": + x.Enabled = false + case "noble.dollar.vaults.v2.VaultConfig.max_total_deposits": + x.MaxTotalDeposits = "" + case "noble.dollar.vaults.v2.VaultConfig.target_yield_rate": + x.TargetYieldRate = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultConfig 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_VaultConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.VaultConfig.enabled": + value := x.Enabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.VaultConfig.max_total_deposits": + value := x.MaxTotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultConfig.target_yield_rate": + value := x.TargetYieldRate + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultConfig 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_VaultConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultConfig.enabled": + x.Enabled = value.Bool() + case "noble.dollar.vaults.v2.VaultConfig.max_total_deposits": + x.MaxTotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultConfig.target_yield_rate": + x.TargetYieldRate = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultConfig 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_VaultConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultConfig.enabled": + panic(fmt.Errorf("field enabled of message noble.dollar.vaults.v2.VaultConfig is not mutable")) + case "noble.dollar.vaults.v2.VaultConfig.max_total_deposits": + panic(fmt.Errorf("field max_total_deposits of message noble.dollar.vaults.v2.VaultConfig is not mutable")) + case "noble.dollar.vaults.v2.VaultConfig.target_yield_rate": + panic(fmt.Errorf("field target_yield_rate of message noble.dollar.vaults.v2.VaultConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultConfig 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_VaultConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultConfig.enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.VaultConfig.max_total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultConfig.target_yield_rate": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultConfig 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_VaultConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.VaultConfig", 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_VaultConfig) 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_VaultConfig) 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_VaultConfig) 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_VaultConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*VaultConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Enabled { + n += 2 + } + l = len(x.MaxTotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TargetYieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*VaultConfig) + 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 len(x.TargetYieldRate) > 0 { + i -= len(x.TargetYieldRate) + copy(dAtA[i:], x.TargetYieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TargetYieldRate))) + i-- + dAtA[i] = 0x1a + } + if len(x.MaxTotalDeposits) > 0 { + i -= len(x.MaxTotalDeposits) + copy(dAtA[i:], x.MaxTotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxTotalDeposits))) + i-- + dAtA[i] = 0x12 + } + if x.Enabled { + i-- + if x.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + 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().(*VaultConfig) + 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: VaultConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VaultConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Enabled = bool(v != 0) + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxTotalDeposits", 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.MaxTotalDeposits = 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 TargetYieldRate", 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.TargetYieldRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_UserPositionEntry protoreflect.MessageDescriptor + fd_UserPositionEntry_address protoreflect.FieldDescriptor + fd_UserPositionEntry_position protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_UserPositionEntry = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("UserPositionEntry") + fd_UserPositionEntry_address = md_UserPositionEntry.Fields().ByName("address") + fd_UserPositionEntry_position = md_UserPositionEntry.Fields().ByName("position") +} + +var _ protoreflect.Message = (*fastReflection_UserPositionEntry)(nil) + +type fastReflection_UserPositionEntry UserPositionEntry + +func (x *UserPositionEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_UserPositionEntry)(x) +} + +func (x *UserPositionEntry) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[3] + 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_UserPositionEntry_messageType fastReflection_UserPositionEntry_messageType +var _ protoreflect.MessageType = fastReflection_UserPositionEntry_messageType{} + +type fastReflection_UserPositionEntry_messageType struct{} + +func (x fastReflection_UserPositionEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_UserPositionEntry)(nil) +} +func (x fastReflection_UserPositionEntry_messageType) New() protoreflect.Message { + return new(fastReflection_UserPositionEntry) +} +func (x fastReflection_UserPositionEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_UserPositionEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_UserPositionEntry) Descriptor() protoreflect.MessageDescriptor { + return md_UserPositionEntry +} + +// 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_UserPositionEntry) Type() protoreflect.MessageType { + return _fastReflection_UserPositionEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_UserPositionEntry) New() protoreflect.Message { + return new(fastReflection_UserPositionEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_UserPositionEntry) Interface() protoreflect.ProtoMessage { + return (*UserPositionEntry)(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_UserPositionEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Address) != 0 { + value := protoreflect.ValueOfBytes(x.Address) + if !f(fd_UserPositionEntry_address, value) { + return + } + } + if x.Position != nil { + value := protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + if !f(fd_UserPositionEntry_position, 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_UserPositionEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionEntry.address": + return len(x.Address) != 0 + case "noble.dollar.vaults.v2.UserPositionEntry.position": + return x.Position != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionEntry 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_UserPositionEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionEntry.address": + x.Address = nil + case "noble.dollar.vaults.v2.UserPositionEntry.position": + x.Position = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionEntry 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_UserPositionEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.UserPositionEntry.address": + value := x.Address + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.UserPositionEntry.position": + value := x.Position + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionEntry 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_UserPositionEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionEntry.address": + x.Address = value.Bytes() + case "noble.dollar.vaults.v2.UserPositionEntry.position": + x.Position = value.Message().Interface().(*UserPosition) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionEntry 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_UserPositionEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionEntry.position": + if x.Position == nil { + x.Position = new(UserPosition) + } + return protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPositionEntry.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.UserPositionEntry is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionEntry 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_UserPositionEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionEntry.address": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.UserPositionEntry.position": + m := new(UserPosition) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionEntry 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_UserPositionEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.UserPositionEntry", 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_UserPositionEntry) 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_UserPositionEntry) 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_UserPositionEntry) 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_UserPositionEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*UserPositionEntry) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Position != nil { + l = options.Size(x.Position) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*UserPositionEntry) + 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.Position != nil { + encoded, err := options.Marshal(x.Position) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*UserPositionEntry) + 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: UserPositionEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UserPositionEntry: 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 Address", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Address = append(x.Address[:0], dAtA[iNdEx:postIndex]...) + if x.Address == nil { + x.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Position == nil { + x.Position = &UserPosition{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Position); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_NAVEntry protoreflect.MessageDescriptor + fd_NAVEntry_nav_info protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_NAVEntry = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("NAVEntry") + fd_NAVEntry_nav_info = md_NAVEntry.Fields().ByName("nav_info") +} + +var _ protoreflect.Message = (*fastReflection_NAVEntry)(nil) + +type fastReflection_NAVEntry NAVEntry + +func (x *NAVEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVEntry)(x) +} + +func (x *NAVEntry) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[4] + 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_NAVEntry_messageType fastReflection_NAVEntry_messageType +var _ protoreflect.MessageType = fastReflection_NAVEntry_messageType{} + +type fastReflection_NAVEntry_messageType struct{} + +func (x fastReflection_NAVEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVEntry)(nil) +} +func (x fastReflection_NAVEntry_messageType) New() protoreflect.Message { + return new(fastReflection_NAVEntry) +} +func (x fastReflection_NAVEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVEntry) Descriptor() protoreflect.MessageDescriptor { + return md_NAVEntry +} + +// 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_NAVEntry) Type() protoreflect.MessageType { + return _fastReflection_NAVEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVEntry) New() protoreflect.Message { + return new(fastReflection_NAVEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVEntry) Interface() protoreflect.ProtoMessage { + return (*NAVEntry)(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_NAVEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NavInfo != nil { + value := protoreflect.ValueOfMessage(x.NavInfo.ProtoReflect()) + if !f(fd_NAVEntry_nav_info, 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_NAVEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVEntry.nav_info": + return x.NavInfo != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVEntry 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_NAVEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVEntry.nav_info": + x.NavInfo = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVEntry 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_NAVEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVEntry.nav_info": + value := x.NavInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVEntry 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_NAVEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVEntry.nav_info": + x.NavInfo = value.Message().Interface().(*NAVInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVEntry 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_NAVEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVEntry.nav_info": + if x.NavInfo == nil { + x.NavInfo = new(NAVInfo) + } + return protoreflect.ValueOfMessage(x.NavInfo.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVEntry 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_NAVEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVEntry.nav_info": + m := new(NAVInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVEntry 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_NAVEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVEntry", 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_NAVEntry) 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_NAVEntry) 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_NAVEntry) 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_NAVEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVEntry) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.NavInfo != nil { + l = options.Size(x.NavInfo) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*NAVEntry) + 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.NavInfo != nil { + encoded, err := options.Marshal(x.NavInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*NAVEntry) + 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: NAVEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVEntry: 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 NavInfo", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.NavInfo == nil { + x.NavInfo = &NAVInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NavInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_WithdrawalRequestEntry protoreflect.MessageDescriptor + fd_WithdrawalRequestEntry_address protoreflect.FieldDescriptor + fd_WithdrawalRequestEntry_withdrawal_request protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_WithdrawalRequestEntry = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("WithdrawalRequestEntry") + fd_WithdrawalRequestEntry_address = md_WithdrawalRequestEntry.Fields().ByName("address") + fd_WithdrawalRequestEntry_withdrawal_request = md_WithdrawalRequestEntry.Fields().ByName("withdrawal_request") +} + +var _ protoreflect.Message = (*fastReflection_WithdrawalRequestEntry)(nil) + +type fastReflection_WithdrawalRequestEntry WithdrawalRequestEntry + +func (x *WithdrawalRequestEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_WithdrawalRequestEntry)(x) +} + +func (x *WithdrawalRequestEntry) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[5] + 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_WithdrawalRequestEntry_messageType fastReflection_WithdrawalRequestEntry_messageType +var _ protoreflect.MessageType = fastReflection_WithdrawalRequestEntry_messageType{} + +type fastReflection_WithdrawalRequestEntry_messageType struct{} + +func (x fastReflection_WithdrawalRequestEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_WithdrawalRequestEntry)(nil) +} +func (x fastReflection_WithdrawalRequestEntry_messageType) New() protoreflect.Message { + return new(fastReflection_WithdrawalRequestEntry) +} +func (x fastReflection_WithdrawalRequestEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalRequestEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WithdrawalRequestEntry) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalRequestEntry +} + +// 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_WithdrawalRequestEntry) Type() protoreflect.MessageType { + return _fastReflection_WithdrawalRequestEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WithdrawalRequestEntry) New() protoreflect.Message { + return new(fastReflection_WithdrawalRequestEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WithdrawalRequestEntry) Interface() protoreflect.ProtoMessage { + return (*WithdrawalRequestEntry)(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_WithdrawalRequestEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Address) != 0 { + value := protoreflect.ValueOfBytes(x.Address) + if !f(fd_WithdrawalRequestEntry_address, value) { + return + } + } + if x.WithdrawalRequest != nil { + value := protoreflect.ValueOfMessage(x.WithdrawalRequest.ProtoReflect()) + if !f(fd_WithdrawalRequestEntry_withdrawal_request, 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_WithdrawalRequestEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.address": + return len(x.Address) != 0 + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request": + return x.WithdrawalRequest != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequestEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequestEntry 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_WithdrawalRequestEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.address": + x.Address = nil + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request": + x.WithdrawalRequest = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequestEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequestEntry 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_WithdrawalRequestEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.address": + value := x.Address + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request": + value := x.WithdrawalRequest + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequestEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequestEntry 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_WithdrawalRequestEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.address": + x.Address = value.Bytes() + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request": + x.WithdrawalRequest = value.Message().Interface().(*WithdrawalRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequestEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequestEntry 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_WithdrawalRequestEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request": + if x.WithdrawalRequest == nil { + x.WithdrawalRequest = new(WithdrawalRequest) + } + return protoreflect.ValueOfMessage(x.WithdrawalRequest.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.WithdrawalRequestEntry is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequestEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequestEntry 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_WithdrawalRequestEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.address": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request": + m := new(WithdrawalRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequestEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequestEntry 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_WithdrawalRequestEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.WithdrawalRequestEntry", 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_WithdrawalRequestEntry) 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_WithdrawalRequestEntry) 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_WithdrawalRequestEntry) 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_WithdrawalRequestEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WithdrawalRequestEntry) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.WithdrawalRequest != nil { + l = options.Size(x.WithdrawalRequest) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*WithdrawalRequestEntry) + 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.WithdrawalRequest != nil { + encoded, err := options.Marshal(x.WithdrawalRequest) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*WithdrawalRequestEntry) + 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: WithdrawalRequestEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithdrawalRequestEntry: 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 Address", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Address = append(x.Address[:0], dAtA[iNdEx:postIndex]...) + if x.Address == nil { + x.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithdrawalRequest", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.WithdrawalRequest == nil { + x.WithdrawalRequest = &WithdrawalRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WithdrawalRequest); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_VaultTotalEntry protoreflect.MessageDescriptor + fd_VaultTotalEntry_total_deposits protoreflect.FieldDescriptor + fd_VaultTotalEntry_total_accrued_yield protoreflect.FieldDescriptor + fd_VaultTotalEntry_total_nav protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_VaultTotalEntry = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("VaultTotalEntry") + fd_VaultTotalEntry_total_deposits = md_VaultTotalEntry.Fields().ByName("total_deposits") + fd_VaultTotalEntry_total_accrued_yield = md_VaultTotalEntry.Fields().ByName("total_accrued_yield") + fd_VaultTotalEntry_total_nav = md_VaultTotalEntry.Fields().ByName("total_nav") +} + +var _ protoreflect.Message = (*fastReflection_VaultTotalEntry)(nil) + +type fastReflection_VaultTotalEntry VaultTotalEntry + +func (x *VaultTotalEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_VaultTotalEntry)(x) +} + +func (x *VaultTotalEntry) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[6] + 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_VaultTotalEntry_messageType fastReflection_VaultTotalEntry_messageType +var _ protoreflect.MessageType = fastReflection_VaultTotalEntry_messageType{} + +type fastReflection_VaultTotalEntry_messageType struct{} + +func (x fastReflection_VaultTotalEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_VaultTotalEntry)(nil) +} +func (x fastReflection_VaultTotalEntry_messageType) New() protoreflect.Message { + return new(fastReflection_VaultTotalEntry) +} +func (x fastReflection_VaultTotalEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_VaultTotalEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_VaultTotalEntry) Descriptor() protoreflect.MessageDescriptor { + return md_VaultTotalEntry +} + +// 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_VaultTotalEntry) Type() protoreflect.MessageType { + return _fastReflection_VaultTotalEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_VaultTotalEntry) New() protoreflect.Message { + return new(fastReflection_VaultTotalEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_VaultTotalEntry) Interface() protoreflect.ProtoMessage { + return (*VaultTotalEntry)(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_VaultTotalEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_VaultTotalEntry_total_deposits, value) { + return + } + } + if x.TotalAccruedYield != "" { + value := protoreflect.ValueOfString(x.TotalAccruedYield) + if !f(fd_VaultTotalEntry_total_accrued_yield, value) { + return + } + } + if x.TotalNav != "" { + value := protoreflect.ValueOfString(x.TotalNav) + if !f(fd_VaultTotalEntry_total_nav, 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_VaultTotalEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultTotalEntry.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.VaultTotalEntry.total_accrued_yield": + return x.TotalAccruedYield != "" + case "noble.dollar.vaults.v2.VaultTotalEntry.total_nav": + return x.TotalNav != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultTotalEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultTotalEntry 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_VaultTotalEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultTotalEntry.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.VaultTotalEntry.total_accrued_yield": + x.TotalAccruedYield = "" + case "noble.dollar.vaults.v2.VaultTotalEntry.total_nav": + x.TotalNav = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultTotalEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultTotalEntry 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_VaultTotalEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.VaultTotalEntry.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultTotalEntry.total_accrued_yield": + value := x.TotalAccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultTotalEntry.total_nav": + value := x.TotalNav + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultTotalEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultTotalEntry 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_VaultTotalEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultTotalEntry.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultTotalEntry.total_accrued_yield": + x.TotalAccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultTotalEntry.total_nav": + x.TotalNav = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultTotalEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultTotalEntry 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_VaultTotalEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultTotalEntry.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.VaultTotalEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultTotalEntry.total_accrued_yield": + panic(fmt.Errorf("field total_accrued_yield of message noble.dollar.vaults.v2.VaultTotalEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultTotalEntry.total_nav": + panic(fmt.Errorf("field total_nav of message noble.dollar.vaults.v2.VaultTotalEntry is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultTotalEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultTotalEntry 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_VaultTotalEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultTotalEntry.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultTotalEntry.total_accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultTotalEntry.total_nav": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultTotalEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultTotalEntry 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_VaultTotalEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.VaultTotalEntry", 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_VaultTotalEntry) 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_VaultTotalEntry) 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_VaultTotalEntry) 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_VaultTotalEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*VaultTotalEntry) + 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.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*VaultTotalEntry) + 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 len(x.TotalNav) > 0 { + i -= len(x.TotalNav) + copy(dAtA[i:], x.TotalNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalNav))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalAccruedYield) > 0 { + i -= len(x.TotalAccruedYield) + copy(dAtA[i:], x.TotalAccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAccruedYield))) + i-- + dAtA[i] = 0x12 + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + 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().(*VaultTotalEntry) + 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: VaultTotalEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VaultTotalEntry: 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 TotalDeposits", 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.TotalDeposits = 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 TotalAccruedYield", 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.TotalAccruedYield = 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 TotalNav", 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.TotalNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_VaultStatsEntry protoreflect.MessageDescriptor + fd_VaultStatsEntry_total_depositors protoreflect.FieldDescriptor + fd_VaultStatsEntry_total_deposited protoreflect.FieldDescriptor + fd_VaultStatsEntry_total_withdrawn protoreflect.FieldDescriptor + fd_VaultStatsEntry_total_fees_collected protoreflect.FieldDescriptor + fd_VaultStatsEntry_total_yield_distributed protoreflect.FieldDescriptor + fd_VaultStatsEntry_active_positions protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_genesis_proto_init() + md_VaultStatsEntry = File_noble_dollar_vaults_v2_genesis_proto.Messages().ByName("VaultStatsEntry") + fd_VaultStatsEntry_total_depositors = md_VaultStatsEntry.Fields().ByName("total_depositors") + fd_VaultStatsEntry_total_deposited = md_VaultStatsEntry.Fields().ByName("total_deposited") + fd_VaultStatsEntry_total_withdrawn = md_VaultStatsEntry.Fields().ByName("total_withdrawn") + fd_VaultStatsEntry_total_fees_collected = md_VaultStatsEntry.Fields().ByName("total_fees_collected") + fd_VaultStatsEntry_total_yield_distributed = md_VaultStatsEntry.Fields().ByName("total_yield_distributed") + fd_VaultStatsEntry_active_positions = md_VaultStatsEntry.Fields().ByName("active_positions") +} + +var _ protoreflect.Message = (*fastReflection_VaultStatsEntry)(nil) + +type fastReflection_VaultStatsEntry VaultStatsEntry + +func (x *VaultStatsEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_VaultStatsEntry)(x) +} + +func (x *VaultStatsEntry) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[7] + 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_VaultStatsEntry_messageType fastReflection_VaultStatsEntry_messageType +var _ protoreflect.MessageType = fastReflection_VaultStatsEntry_messageType{} + +type fastReflection_VaultStatsEntry_messageType struct{} + +func (x fastReflection_VaultStatsEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_VaultStatsEntry)(nil) +} +func (x fastReflection_VaultStatsEntry_messageType) New() protoreflect.Message { + return new(fastReflection_VaultStatsEntry) +} +func (x fastReflection_VaultStatsEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_VaultStatsEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_VaultStatsEntry) Descriptor() protoreflect.MessageDescriptor { + return md_VaultStatsEntry +} + +// 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_VaultStatsEntry) Type() protoreflect.MessageType { + return _fastReflection_VaultStatsEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_VaultStatsEntry) New() protoreflect.Message { + return new(fastReflection_VaultStatsEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_VaultStatsEntry) Interface() protoreflect.ProtoMessage { + return (*VaultStatsEntry)(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_VaultStatsEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalDepositors != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalDepositors) + if !f(fd_VaultStatsEntry_total_depositors, value) { + return + } + } + if x.TotalDeposited != "" { + value := protoreflect.ValueOfString(x.TotalDeposited) + if !f(fd_VaultStatsEntry_total_deposited, value) { + return + } + } + if x.TotalWithdrawn != "" { + value := protoreflect.ValueOfString(x.TotalWithdrawn) + if !f(fd_VaultStatsEntry_total_withdrawn, value) { + return + } + } + if x.TotalFeesCollected != "" { + value := protoreflect.ValueOfString(x.TotalFeesCollected) + if !f(fd_VaultStatsEntry_total_fees_collected, value) { + return + } + } + if x.TotalYieldDistributed != "" { + value := protoreflect.ValueOfString(x.TotalYieldDistributed) + if !f(fd_VaultStatsEntry_total_yield_distributed, value) { + return + } + } + if x.ActivePositions != uint64(0) { + value := protoreflect.ValueOfUint64(x.ActivePositions) + if !f(fd_VaultStatsEntry_active_positions, 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_VaultStatsEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultStatsEntry.total_depositors": + return x.TotalDepositors != uint64(0) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_deposited": + return x.TotalDeposited != "" + case "noble.dollar.vaults.v2.VaultStatsEntry.total_withdrawn": + return x.TotalWithdrawn != "" + case "noble.dollar.vaults.v2.VaultStatsEntry.total_fees_collected": + return x.TotalFeesCollected != "" + case "noble.dollar.vaults.v2.VaultStatsEntry.total_yield_distributed": + return x.TotalYieldDistributed != "" + case "noble.dollar.vaults.v2.VaultStatsEntry.active_positions": + return x.ActivePositions != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultStatsEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultStatsEntry 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_VaultStatsEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultStatsEntry.total_depositors": + x.TotalDepositors = uint64(0) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_deposited": + x.TotalDeposited = "" + case "noble.dollar.vaults.v2.VaultStatsEntry.total_withdrawn": + x.TotalWithdrawn = "" + case "noble.dollar.vaults.v2.VaultStatsEntry.total_fees_collected": + x.TotalFeesCollected = "" + case "noble.dollar.vaults.v2.VaultStatsEntry.total_yield_distributed": + x.TotalYieldDistributed = "" + case "noble.dollar.vaults.v2.VaultStatsEntry.active_positions": + x.ActivePositions = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultStatsEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultStatsEntry 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_VaultStatsEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.VaultStatsEntry.total_depositors": + value := x.TotalDepositors + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_deposited": + value := x.TotalDeposited + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_withdrawn": + value := x.TotalWithdrawn + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_fees_collected": + value := x.TotalFeesCollected + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_yield_distributed": + value := x.TotalYieldDistributed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultStatsEntry.active_positions": + value := x.ActivePositions + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultStatsEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultStatsEntry 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_VaultStatsEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultStatsEntry.total_depositors": + x.TotalDepositors = value.Uint() + case "noble.dollar.vaults.v2.VaultStatsEntry.total_deposited": + x.TotalDeposited = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_withdrawn": + x.TotalWithdrawn = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_fees_collected": + x.TotalFeesCollected = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_yield_distributed": + x.TotalYieldDistributed = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultStatsEntry.active_positions": + x.ActivePositions = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultStatsEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultStatsEntry 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_VaultStatsEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultStatsEntry.total_depositors": + panic(fmt.Errorf("field total_depositors of message noble.dollar.vaults.v2.VaultStatsEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_deposited": + panic(fmt.Errorf("field total_deposited of message noble.dollar.vaults.v2.VaultStatsEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_withdrawn": + panic(fmt.Errorf("field total_withdrawn of message noble.dollar.vaults.v2.VaultStatsEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_fees_collected": + panic(fmt.Errorf("field total_fees_collected of message noble.dollar.vaults.v2.VaultStatsEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_yield_distributed": + panic(fmt.Errorf("field total_yield_distributed of message noble.dollar.vaults.v2.VaultStatsEntry is not mutable")) + case "noble.dollar.vaults.v2.VaultStatsEntry.active_positions": + panic(fmt.Errorf("field active_positions of message noble.dollar.vaults.v2.VaultStatsEntry is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultStatsEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultStatsEntry 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_VaultStatsEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultStatsEntry.total_depositors": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.VaultStatsEntry.total_deposited": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultStatsEntry.total_withdrawn": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultStatsEntry.total_fees_collected": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultStatsEntry.total_yield_distributed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultStatsEntry.active_positions": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultStatsEntry")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultStatsEntry 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_VaultStatsEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.VaultStatsEntry", 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_VaultStatsEntry) 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_VaultStatsEntry) 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_VaultStatsEntry) 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_VaultStatsEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*VaultStatsEntry) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TotalDepositors != 0 { + n += 1 + runtime.Sov(uint64(x.TotalDepositors)) + } + l = len(x.TotalDeposited) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalWithdrawn) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalFeesCollected) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalYieldDistributed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ActivePositions != 0 { + n += 1 + runtime.Sov(uint64(x.ActivePositions)) + } + 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().(*VaultStatsEntry) + 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.ActivePositions != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ActivePositions)) + i-- + dAtA[i] = 0x30 + } + if len(x.TotalYieldDistributed) > 0 { + i -= len(x.TotalYieldDistributed) + copy(dAtA[i:], x.TotalYieldDistributed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalYieldDistributed))) + i-- + dAtA[i] = 0x2a + } + if len(x.TotalFeesCollected) > 0 { + i -= len(x.TotalFeesCollected) + copy(dAtA[i:], x.TotalFeesCollected) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalFeesCollected))) + i-- + dAtA[i] = 0x22 + } + if len(x.TotalWithdrawn) > 0 { + i -= len(x.TotalWithdrawn) + copy(dAtA[i:], x.TotalWithdrawn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalWithdrawn))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalDeposited) > 0 { + i -= len(x.TotalDeposited) + copy(dAtA[i:], x.TotalDeposited) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposited))) + i-- + dAtA[i] = 0x12 + } + if x.TotalDepositors != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalDepositors)) + i-- + dAtA[i] = 0x8 + } + 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().(*VaultStatsEntry) + 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: VaultStatsEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VaultStatsEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDepositors", wireType) + } + x.TotalDepositors = 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.TotalDepositors |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDeposited", 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.TotalDeposited = 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 TotalWithdrawn", 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.TotalWithdrawn = 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 TotalFeesCollected", 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.TotalFeesCollected = 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 TotalYieldDistributed", 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.TotalYieldDistributed = 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 ActivePositions", wireType) + } + x.ActivePositions = 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.ActivePositions |= 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: noble/dollar/vaults/v2/genesis.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) +) + +// GenesisState defines the V2 vaults module's genesis state +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Module parameters + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // V2 vault configurations + VaultConfig *VaultConfig `protobuf:"bytes,2,opt,name=vault_config,json=vaultConfig,proto3" json:"vault_config,omitempty"` + // All user positions in V2 + UserPositions []*UserPositionEntry `protobuf:"bytes,3,rep,name=user_positions,json=userPositions,proto3" json:"user_positions,omitempty"` + // Current NAV information for each vault type + NavEntries []*NAVEntry `protobuf:"bytes,4,rep,name=nav_entries,json=navEntries,proto3" json:"nav_entries,omitempty"` + // Withdrawal queue entries + WithdrawalQueue []*WithdrawalRequestEntry `protobuf:"bytes,5,rep,name=withdrawal_queue,json=withdrawalQueue,proto3" json:"withdrawal_queue,omitempty"` + // Total deposits and yield + VaultTotals *VaultTotalEntry `protobuf:"bytes,6,opt,name=vault_totals,json=vaultTotals,proto3" json:"vault_totals,omitempty"` + // Vault statistics + VaultStats *VaultStatsEntry `protobuf:"bytes,7,opt,name=vault_stats,json=vaultStats,proto3" json:"vault_stats,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +func (x *GenesisState) GetVaultConfig() *VaultConfig { + if x != nil { + return x.VaultConfig + } + return nil +} + +func (x *GenesisState) GetUserPositions() []*UserPositionEntry { + if x != nil { + return x.UserPositions + } + return nil +} + +func (x *GenesisState) GetNavEntries() []*NAVEntry { + if x != nil { + return x.NavEntries + } + return nil +} + +func (x *GenesisState) GetWithdrawalQueue() []*WithdrawalRequestEntry { + if x != nil { + return x.WithdrawalQueue + } + return nil +} + +func (x *GenesisState) GetVaultTotals() *VaultTotalEntry { + if x != nil { + return x.VaultTotals + } + return nil +} + +func (x *GenesisState) GetVaultStats() *VaultStatsEntry { + if x != nil { + return x.VaultStats + } + return nil +} + +// Params defines the parameters for the V2 vaults module +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority address that can update parameters + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Minimum deposit amount + MinDepositAmount string `protobuf:"bytes,2,opt,name=min_deposit_amount,json=minDepositAmount,proto3" json:"min_deposit_amount,omitempty"` + // Minimum withdrawal amount + MinWithdrawalAmount string `protobuf:"bytes,3,opt,name=min_withdrawal_amount,json=minWithdrawalAmount,proto3" json:"min_withdrawal_amount,omitempty"` + // Maximum NAV change percentage allowed per update (basis points) + MaxNavChangeBps int32 `protobuf:"varint,4,opt,name=max_nav_change_bps,json=maxNavChangeBps,proto3" json:"max_nav_change_bps,omitempty"` + // Withdrawal request timeout duration (in seconds) + WithdrawalRequestTimeout int64 `protobuf:"varint,5,opt,name=withdrawal_request_timeout,json=withdrawalRequestTimeout,proto3" json:"withdrawal_request_timeout,omitempty"` + // Maximum number of withdrawal requests to process per block + MaxWithdrawalRequestsPerBlock int32 `protobuf:"varint,6,opt,name=max_withdrawal_requests_per_block,json=maxWithdrawalRequestsPerBlock,proto3" json:"max_withdrawal_requests_per_block,omitempty"` + // Whether V2 vault are enabled + VaultEnabled bool `protobuf:"varint,7,opt,name=vault_enabled,json=vaultEnabled,proto3" json:"vault_enabled,omitempty"` + // TWAP configuration for share pricing + TwapConfig *TWAPConfig `protobuf:"bytes,8,opt,name=twap_config,json=twapConfig,proto3" json:"twap_config,omitempty"` +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Params) ProtoMessage() {} + +// Deprecated: Use Params.ProtoReflect.Descriptor instead. +func (*Params) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *Params) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *Params) GetMinDepositAmount() string { + if x != nil { + return x.MinDepositAmount + } + return "" +} + +func (x *Params) GetMinWithdrawalAmount() string { + if x != nil { + return x.MinWithdrawalAmount + } + return "" +} + +func (x *Params) GetMaxNavChangeBps() int32 { + if x != nil { + return x.MaxNavChangeBps + } + return 0 +} + +func (x *Params) GetWithdrawalRequestTimeout() int64 { + if x != nil { + return x.WithdrawalRequestTimeout + } + return 0 +} + +func (x *Params) GetMaxWithdrawalRequestsPerBlock() int32 { + if x != nil { + return x.MaxWithdrawalRequestsPerBlock + } + return 0 +} + +func (x *Params) GetVaultEnabled() bool { + if x != nil { + return x.VaultEnabled + } + return false +} + +func (x *Params) GetTwapConfig() *TWAPConfig { + if x != nil { + return x.TwapConfig + } + return nil +} + +// VaultConfig stores configuration for a specific vault type +type VaultConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Whether this vault type is enabled for new deposits + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Maximum total deposits allowed + MaxTotalDeposits string `protobuf:"bytes,2,opt,name=max_total_deposits,json=maxTotalDeposits,proto3" json:"max_total_deposits,omitempty"` + // Target yield rate (informational) + TargetYieldRate string `protobuf:"bytes,3,opt,name=target_yield_rate,json=targetYieldRate,proto3" json:"target_yield_rate,omitempty"` +} + +func (x *VaultConfig) Reset() { + *x = VaultConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VaultConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VaultConfig) ProtoMessage() {} + +// Deprecated: Use VaultConfig.ProtoReflect.Descriptor instead. +func (*VaultConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{2} +} + +func (x *VaultConfig) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *VaultConfig) GetMaxTotalDeposits() string { + if x != nil { + return x.MaxTotalDeposits + } + return "" +} + +func (x *VaultConfig) GetTargetYieldRate() string { + if x != nil { + return x.TargetYieldRate + } + return "" +} + +// UserPositionEntry stores a user's position in the V2 system +type UserPositionEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // User position details + Position *UserPosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` +} + +func (x *UserPositionEntry) Reset() { + *x = UserPositionEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserPositionEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserPositionEntry) ProtoMessage() {} + +// Deprecated: Use UserPositionEntry.ProtoReflect.Descriptor instead. +func (*UserPositionEntry) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{3} +} + +func (x *UserPositionEntry) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +func (x *UserPositionEntry) GetPosition() *UserPosition { + if x != nil { + return x.Position + } + return nil +} + +// NAVEntry stores NAV information for a vault type +type NAVEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // NAV information + NavInfo *NAVInfo `protobuf:"bytes,1,opt,name=nav_info,json=navInfo,proto3" json:"nav_info,omitempty"` +} + +func (x *NAVEntry) Reset() { + *x = NAVEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVEntry) ProtoMessage() {} + +// Deprecated: Use NAVEntry.ProtoReflect.Descriptor instead. +func (*NAVEntry) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{4} +} + +func (x *NAVEntry) GetNavInfo() *NAVInfo { + if x != nil { + return x.NavInfo + } + return nil +} + +// WithdrawalRequestEntry stores a withdrawal request in the queue +type WithdrawalRequestEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Withdrawal request details + WithdrawalRequest *WithdrawalRequest `protobuf:"bytes,2,opt,name=withdrawal_request,json=withdrawalRequest,proto3" json:"withdrawal_request,omitempty"` +} + +func (x *WithdrawalRequestEntry) Reset() { + *x = WithdrawalRequestEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WithdrawalRequestEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WithdrawalRequestEntry) ProtoMessage() {} + +// Deprecated: Use WithdrawalRequestEntry.ProtoReflect.Descriptor instead. +func (*WithdrawalRequestEntry) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{5} +} + +func (x *WithdrawalRequestEntry) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +func (x *WithdrawalRequestEntry) GetWithdrawalRequest() *WithdrawalRequest { + if x != nil { + return x.WithdrawalRequest + } + return nil +} + +// VaultTotalEntry tracks total deposits and yield for a vault type +type VaultTotalEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total deposits in the vault + TotalDeposits string `protobuf:"bytes,1,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + // Total accrued yield + TotalAccruedYield string `protobuf:"bytes,2,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + // Total NAV (Net Asset Value = deposits + yield) + TotalNav string `protobuf:"bytes,3,opt,name=total_nav,json=totalNav,proto3" json:"total_nav,omitempty"` +} + +func (x *VaultTotalEntry) Reset() { + *x = VaultTotalEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VaultTotalEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VaultTotalEntry) ProtoMessage() {} + +// Deprecated: Use VaultTotalEntry.ProtoReflect.Descriptor instead. +func (*VaultTotalEntry) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{6} +} + +func (x *VaultTotalEntry) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *VaultTotalEntry) GetTotalAccruedYield() string { + if x != nil { + return x.TotalAccruedYield + } + return "" +} + +func (x *VaultTotalEntry) GetTotalNav() string { + if x != nil { + return x.TotalNav + } + return "" +} + +// VaultStatsEntry tracks statistics for a vault type +type VaultStatsEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total number of depositors + TotalDepositors uint64 `protobuf:"varint,1,opt,name=total_depositors,json=totalDepositors,proto3" json:"total_depositors,omitempty"` + // Total value deposited (cumulative) + TotalDeposited string `protobuf:"bytes,2,opt,name=total_deposited,json=totalDeposited,proto3" json:"total_deposited,omitempty"` + // Total value withdrawn (cumulative) + TotalWithdrawn string `protobuf:"bytes,3,opt,name=total_withdrawn,json=totalWithdrawn,proto3" json:"total_withdrawn,omitempty"` + // Total fees collected + TotalFeesCollected string `protobuf:"bytes,4,opt,name=total_fees_collected,json=totalFeesCollected,proto3" json:"total_fees_collected,omitempty"` + // Total yield distributed + TotalYieldDistributed string `protobuf:"bytes,5,opt,name=total_yield_distributed,json=totalYieldDistributed,proto3" json:"total_yield_distributed,omitempty"` + // Number of active positions + ActivePositions uint64 `protobuf:"varint,6,opt,name=active_positions,json=activePositions,proto3" json:"active_positions,omitempty"` +} + +func (x *VaultStatsEntry) Reset() { + *x = VaultStatsEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_genesis_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VaultStatsEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VaultStatsEntry) ProtoMessage() {} + +// Deprecated: Use VaultStatsEntry.ProtoReflect.Descriptor instead. +func (*VaultStatsEntry) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP(), []int{7} +} + +func (x *VaultStatsEntry) GetTotalDepositors() uint64 { + if x != nil { + return x.TotalDepositors + } + return 0 +} + +func (x *VaultStatsEntry) GetTotalDeposited() string { + if x != nil { + return x.TotalDeposited + } + return "" +} + +func (x *VaultStatsEntry) GetTotalWithdrawn() string { + if x != nil { + return x.TotalWithdrawn + } + return "" +} + +func (x *VaultStatsEntry) GetTotalFeesCollected() string { + if x != nil { + return x.TotalFeesCollected + } + return "" +} + +func (x *VaultStatsEntry) GetTotalYieldDistributed() string { + if x != nil { + return x.TotalYieldDistributed + } + return "" +} + +func (x *VaultStatsEntry) GetActivePositions() uint64 { + if x != nil { + return x.ActivePositions + } + return 0 +} + +var File_noble_dollar_vaults_v2_genesis_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_genesis_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, + 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x61, 0x76, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x04, 0x0a, 0x0c, 0x47, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4c, 0x0a, 0x0c, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x56, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x47, 0x0a, 0x0b, 0x6e, 0x61, 0x76, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x41, + 0x56, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x6e, 0x61, + 0x76, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x10, 0x77, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x50, 0x0a, 0x0c, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x6f, + 0x74, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0a, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x22, 0xab, 0x04, 0x0a, 0x06, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x5e, + 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x6d, 0x69, + 0x6e, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x64, + 0x0a, 0x15, 0x6d, 0x69, 0x6e, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x13, 0x6d, 0x69, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x41, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x61, 0x76, 0x5f, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x62, 0x70, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x4e, 0x61, 0x76, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x70, + 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, + 0x48, 0x0a, 0x21, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x6d, 0x61, 0x78, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x73, 0x50, 0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0c, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x49, + 0x0a, 0x0b, 0x74, 0x77, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x57, 0x41, + 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x74, + 0x77, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xeb, 0x01, 0x0a, 0x0b, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x12, 0x5e, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x73, 0x12, 0x62, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x79, 0x69, + 0x65, 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, + 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x59, 0x69, + 0x65, 0x6c, 0x64, 0x52, 0x61, 0x74, 0x65, 0x22, 0x75, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4c, + 0x0a, 0x08, 0x4e, 0x41, 0x56, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x40, 0x0a, 0x08, 0x6e, 0x61, + 0x76, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x41, 0x56, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x07, 0x6e, 0x61, 0x76, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x92, 0x01, 0x0a, + 0x16, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x5e, 0x0a, 0x12, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, + 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x9b, 0x02, 0x0a, 0x0f, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x57, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x60, + 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, + 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x59, 0x69, 0x65, 0x6c, 0x64, + 0x12, 0x4d, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x61, 0x76, 0x22, + 0xeb, 0x03, 0x0a, 0x0f, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x59, + 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x0f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x57, 0x69, 0x74, 0x68, 0x64, + 0x72, 0x61, 0x77, 0x6e, 0x12, 0x62, 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x66, 0x65, + 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x65, 0x65, 0x73, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x68, 0x0a, 0x17, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x15, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0xde, 0x01, + 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x47, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, + 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, + 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_genesis_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_genesis_proto_rawDescData = file_noble_dollar_vaults_v2_genesis_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_genesis_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_genesis_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_genesis_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_genesis_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_noble_dollar_vaults_v2_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: noble.dollar.vaults.v2.GenesisState + (*Params)(nil), // 1: noble.dollar.vaults.v2.Params + (*VaultConfig)(nil), // 2: noble.dollar.vaults.v2.VaultConfig + (*UserPositionEntry)(nil), // 3: noble.dollar.vaults.v2.UserPositionEntry + (*NAVEntry)(nil), // 4: noble.dollar.vaults.v2.NAVEntry + (*WithdrawalRequestEntry)(nil), // 5: noble.dollar.vaults.v2.WithdrawalRequestEntry + (*VaultTotalEntry)(nil), // 6: noble.dollar.vaults.v2.VaultTotalEntry + (*VaultStatsEntry)(nil), // 7: noble.dollar.vaults.v2.VaultStatsEntry + (*TWAPConfig)(nil), // 8: noble.dollar.vaults.v2.TWAPConfig + (*UserPosition)(nil), // 9: noble.dollar.vaults.v2.UserPosition + (*NAVInfo)(nil), // 10: noble.dollar.vaults.v2.NAVInfo + (*WithdrawalRequest)(nil), // 11: noble.dollar.vaults.v2.WithdrawalRequest +} +var file_noble_dollar_vaults_v2_genesis_proto_depIdxs = []int32{ + 1, // 0: noble.dollar.vaults.v2.GenesisState.params:type_name -> noble.dollar.vaults.v2.Params + 2, // 1: noble.dollar.vaults.v2.GenesisState.vault_config:type_name -> noble.dollar.vaults.v2.VaultConfig + 3, // 2: noble.dollar.vaults.v2.GenesisState.user_positions:type_name -> noble.dollar.vaults.v2.UserPositionEntry + 4, // 3: noble.dollar.vaults.v2.GenesisState.nav_entries:type_name -> noble.dollar.vaults.v2.NAVEntry + 5, // 4: noble.dollar.vaults.v2.GenesisState.withdrawal_queue:type_name -> noble.dollar.vaults.v2.WithdrawalRequestEntry + 6, // 5: noble.dollar.vaults.v2.GenesisState.vault_totals:type_name -> noble.dollar.vaults.v2.VaultTotalEntry + 7, // 6: noble.dollar.vaults.v2.GenesisState.vault_stats:type_name -> noble.dollar.vaults.v2.VaultStatsEntry + 8, // 7: noble.dollar.vaults.v2.Params.twap_config:type_name -> noble.dollar.vaults.v2.TWAPConfig + 9, // 8: noble.dollar.vaults.v2.UserPositionEntry.position:type_name -> noble.dollar.vaults.v2.UserPosition + 10, // 9: noble.dollar.vaults.v2.NAVEntry.nav_info:type_name -> noble.dollar.vaults.v2.NAVInfo + 11, // 10: noble.dollar.vaults.v2.WithdrawalRequestEntry.withdrawal_request:type_name -> noble.dollar.vaults.v2.WithdrawalRequest + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_genesis_proto_init() } +func file_noble_dollar_vaults_v2_genesis_proto_init() { + if File_noble_dollar_vaults_v2_genesis_proto != nil { + return + } + file_noble_dollar_vaults_v2_nav_proto_init() + file_noble_dollar_vaults_v2_vaults_proto_init() + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Params); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VaultConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserPositionEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawalRequestEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VaultTotalEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_genesis_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VaultStatsEntry); 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_noble_dollar_vaults_v2_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_genesis_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_genesis_proto_depIdxs, + MessageInfos: file_noble_dollar_vaults_v2_genesis_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_genesis_proto = out.File + file_noble_dollar_vaults_v2_genesis_proto_rawDesc = nil + file_noble_dollar_vaults_v2_genesis_proto_goTypes = nil + file_noble_dollar_vaults_v2_genesis_proto_depIdxs = nil +} diff --git a/api/vaults/v2/nav.pulsar.go b/api/vaults/v2/nav.pulsar.go new file mode 100644 index 00000000..d57dbee4 --- /dev/null +++ b/api/vaults/v2/nav.pulsar.go @@ -0,0 +1,4266 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_NAVBand protoreflect.MessageDescriptor + fd_NAVBand_lower_bound protoreflect.FieldDescriptor + fd_NAVBand_upper_bound protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_nav_proto_init() + md_NAVBand = File_noble_dollar_vaults_v2_nav_proto.Messages().ByName("NAVBand") + fd_NAVBand_lower_bound = md_NAVBand.Fields().ByName("lower_bound") + fd_NAVBand_upper_bound = md_NAVBand.Fields().ByName("upper_bound") +} + +var _ protoreflect.Message = (*fastReflection_NAVBand)(nil) + +type fastReflection_NAVBand NAVBand + +func (x *NAVBand) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVBand)(x) +} + +func (x *NAVBand) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_nav_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_NAVBand_messageType fastReflection_NAVBand_messageType +var _ protoreflect.MessageType = fastReflection_NAVBand_messageType{} + +type fastReflection_NAVBand_messageType struct{} + +func (x fastReflection_NAVBand_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVBand)(nil) +} +func (x fastReflection_NAVBand_messageType) New() protoreflect.Message { + return new(fastReflection_NAVBand) +} +func (x fastReflection_NAVBand_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVBand +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVBand) Descriptor() protoreflect.MessageDescriptor { + return md_NAVBand +} + +// 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_NAVBand) Type() protoreflect.MessageType { + return _fastReflection_NAVBand_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVBand) New() protoreflect.Message { + return new(fastReflection_NAVBand) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVBand) Interface() protoreflect.ProtoMessage { + return (*NAVBand)(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_NAVBand) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LowerBound != int32(0) { + value := protoreflect.ValueOfInt32(x.LowerBound) + if !f(fd_NAVBand_lower_bound, value) { + return + } + } + if x.UpperBound != int32(0) { + value := protoreflect.ValueOfInt32(x.UpperBound) + if !f(fd_NAVBand_upper_bound, 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_NAVBand) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBand.lower_bound": + return x.LowerBound != int32(0) + case "noble.dollar.vaults.v2.NAVBand.upper_bound": + return x.UpperBound != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBand")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBand 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_NAVBand) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBand.lower_bound": + x.LowerBound = int32(0) + case "noble.dollar.vaults.v2.NAVBand.upper_bound": + x.UpperBound = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBand")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBand 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_NAVBand) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVBand.lower_bound": + value := x.LowerBound + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.NAVBand.upper_bound": + value := x.UpperBound + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBand")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBand 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_NAVBand) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBand.lower_bound": + x.LowerBound = int32(value.Int()) + case "noble.dollar.vaults.v2.NAVBand.upper_bound": + x.UpperBound = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBand")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBand 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_NAVBand) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBand.lower_bound": + panic(fmt.Errorf("field lower_bound of message noble.dollar.vaults.v2.NAVBand is not mutable")) + case "noble.dollar.vaults.v2.NAVBand.upper_bound": + panic(fmt.Errorf("field upper_bound of message noble.dollar.vaults.v2.NAVBand is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBand")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBand 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_NAVBand) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBand.lower_bound": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.NAVBand.upper_bound": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBand")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBand 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_NAVBand) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVBand", 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_NAVBand) 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_NAVBand) 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_NAVBand) 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_NAVBand) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVBand) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.LowerBound != 0 { + n += 1 + runtime.Sov(uint64(x.LowerBound)) + } + if x.UpperBound != 0 { + n += 1 + runtime.Sov(uint64(x.UpperBound)) + } + 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().(*NAVBand) + 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.UpperBound != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.UpperBound)) + i-- + dAtA[i] = 0x10 + } + if x.LowerBound != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LowerBound)) + i-- + dAtA[i] = 0x8 + } + 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().(*NAVBand) + 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: NAVBand: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVBand: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LowerBound", wireType) + } + x.LowerBound = 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.LowerBound |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpperBound", wireType) + } + x.UpperBound = 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.UpperBound |= int32(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, + } +} + +var _ protoreflect.List = (*_NAVConfig_1_list)(nil) + +type _NAVConfig_1_list struct { + list *[]*NAVBand +} + +func (x *_NAVConfig_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_NAVConfig_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_NAVConfig_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NAVBand) + (*x.list)[i] = concreteValue +} + +func (x *_NAVConfig_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NAVBand) + *x.list = append(*x.list, concreteValue) +} + +func (x *_NAVConfig_1_list) AppendMutable() protoreflect.Value { + v := new(NAVBand) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_NAVConfig_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_NAVConfig_1_list) NewElement() protoreflect.Value { + v := new(NAVBand) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_NAVConfig_1_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_NAVConfig_2_list)(nil) + +type _NAVConfig_2_list struct { + list *[]*NAVBand +} + +func (x *_NAVConfig_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_NAVConfig_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_NAVConfig_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NAVBand) + (*x.list)[i] = concreteValue +} + +func (x *_NAVConfig_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*NAVBand) + *x.list = append(*x.list, concreteValue) +} + +func (x *_NAVConfig_2_list) AppendMutable() protoreflect.Value { + v := new(NAVBand) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_NAVConfig_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_NAVConfig_2_list) NewElement() protoreflect.Value { + v := new(NAVBand) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_NAVConfig_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_NAVConfig protoreflect.MessageDescriptor + fd_NAVConfig_deposit_bands protoreflect.FieldDescriptor + fd_NAVConfig_withdrawal_bands protoreflect.FieldDescriptor + fd_NAVConfig_min_nav_update_interval protoreflect.FieldDescriptor + fd_NAVConfig_max_nav_deviation protoreflect.FieldDescriptor + fd_NAVConfig_circuit_breaker_threshold protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_nav_proto_init() + md_NAVConfig = File_noble_dollar_vaults_v2_nav_proto.Messages().ByName("NAVConfig") + fd_NAVConfig_deposit_bands = md_NAVConfig.Fields().ByName("deposit_bands") + fd_NAVConfig_withdrawal_bands = md_NAVConfig.Fields().ByName("withdrawal_bands") + fd_NAVConfig_min_nav_update_interval = md_NAVConfig.Fields().ByName("min_nav_update_interval") + fd_NAVConfig_max_nav_deviation = md_NAVConfig.Fields().ByName("max_nav_deviation") + fd_NAVConfig_circuit_breaker_threshold = md_NAVConfig.Fields().ByName("circuit_breaker_threshold") +} + +var _ protoreflect.Message = (*fastReflection_NAVConfig)(nil) + +type fastReflection_NAVConfig NAVConfig + +func (x *NAVConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVConfig)(x) +} + +func (x *NAVConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[1] + 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_NAVConfig_messageType fastReflection_NAVConfig_messageType +var _ protoreflect.MessageType = fastReflection_NAVConfig_messageType{} + +type fastReflection_NAVConfig_messageType struct{} + +func (x fastReflection_NAVConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVConfig)(nil) +} +func (x fastReflection_NAVConfig_messageType) New() protoreflect.Message { + return new(fastReflection_NAVConfig) +} +func (x fastReflection_NAVConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVConfig) Descriptor() protoreflect.MessageDescriptor { + return md_NAVConfig +} + +// 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_NAVConfig) Type() protoreflect.MessageType { + return _fastReflection_NAVConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVConfig) New() protoreflect.Message { + return new(fastReflection_NAVConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVConfig) Interface() protoreflect.ProtoMessage { + return (*NAVConfig)(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_NAVConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.DepositBands) != 0 { + value := protoreflect.ValueOfList(&_NAVConfig_1_list{list: &x.DepositBands}) + if !f(fd_NAVConfig_deposit_bands, value) { + return + } + } + if len(x.WithdrawalBands) != 0 { + value := protoreflect.ValueOfList(&_NAVConfig_2_list{list: &x.WithdrawalBands}) + if !f(fd_NAVConfig_withdrawal_bands, value) { + return + } + } + if x.MinNavUpdateInterval != int64(0) { + value := protoreflect.ValueOfInt64(x.MinNavUpdateInterval) + if !f(fd_NAVConfig_min_nav_update_interval, value) { + return + } + } + if x.MaxNavDeviation != int32(0) { + value := protoreflect.ValueOfInt32(x.MaxNavDeviation) + if !f(fd_NAVConfig_max_nav_deviation, value) { + return + } + } + if x.CircuitBreakerThreshold != int32(0) { + value := protoreflect.ValueOfInt32(x.CircuitBreakerThreshold) + if !f(fd_NAVConfig_circuit_breaker_threshold, 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_NAVConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVConfig.deposit_bands": + return len(x.DepositBands) != 0 + case "noble.dollar.vaults.v2.NAVConfig.withdrawal_bands": + return len(x.WithdrawalBands) != 0 + case "noble.dollar.vaults.v2.NAVConfig.min_nav_update_interval": + return x.MinNavUpdateInterval != int64(0) + case "noble.dollar.vaults.v2.NAVConfig.max_nav_deviation": + return x.MaxNavDeviation != int32(0) + case "noble.dollar.vaults.v2.NAVConfig.circuit_breaker_threshold": + return x.CircuitBreakerThreshold != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVConfig 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_NAVConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVConfig.deposit_bands": + x.DepositBands = nil + case "noble.dollar.vaults.v2.NAVConfig.withdrawal_bands": + x.WithdrawalBands = nil + case "noble.dollar.vaults.v2.NAVConfig.min_nav_update_interval": + x.MinNavUpdateInterval = int64(0) + case "noble.dollar.vaults.v2.NAVConfig.max_nav_deviation": + x.MaxNavDeviation = int32(0) + case "noble.dollar.vaults.v2.NAVConfig.circuit_breaker_threshold": + x.CircuitBreakerThreshold = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVConfig 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_NAVConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVConfig.deposit_bands": + if len(x.DepositBands) == 0 { + return protoreflect.ValueOfList(&_NAVConfig_1_list{}) + } + listValue := &_NAVConfig_1_list{list: &x.DepositBands} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.NAVConfig.withdrawal_bands": + if len(x.WithdrawalBands) == 0 { + return protoreflect.ValueOfList(&_NAVConfig_2_list{}) + } + listValue := &_NAVConfig_2_list{list: &x.WithdrawalBands} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.NAVConfig.min_nav_update_interval": + value := x.MinNavUpdateInterval + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.NAVConfig.max_nav_deviation": + value := x.MaxNavDeviation + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.NAVConfig.circuit_breaker_threshold": + value := x.CircuitBreakerThreshold + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVConfig 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_NAVConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVConfig.deposit_bands": + lv := value.List() + clv := lv.(*_NAVConfig_1_list) + x.DepositBands = *clv.list + case "noble.dollar.vaults.v2.NAVConfig.withdrawal_bands": + lv := value.List() + clv := lv.(*_NAVConfig_2_list) + x.WithdrawalBands = *clv.list + case "noble.dollar.vaults.v2.NAVConfig.min_nav_update_interval": + x.MinNavUpdateInterval = value.Int() + case "noble.dollar.vaults.v2.NAVConfig.max_nav_deviation": + x.MaxNavDeviation = int32(value.Int()) + case "noble.dollar.vaults.v2.NAVConfig.circuit_breaker_threshold": + x.CircuitBreakerThreshold = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVConfig 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_NAVConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVConfig.deposit_bands": + if x.DepositBands == nil { + x.DepositBands = []*NAVBand{} + } + value := &_NAVConfig_1_list{list: &x.DepositBands} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.NAVConfig.withdrawal_bands": + if x.WithdrawalBands == nil { + x.WithdrawalBands = []*NAVBand{} + } + value := &_NAVConfig_2_list{list: &x.WithdrawalBands} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.NAVConfig.min_nav_update_interval": + panic(fmt.Errorf("field min_nav_update_interval of message noble.dollar.vaults.v2.NAVConfig is not mutable")) + case "noble.dollar.vaults.v2.NAVConfig.max_nav_deviation": + panic(fmt.Errorf("field max_nav_deviation of message noble.dollar.vaults.v2.NAVConfig is not mutable")) + case "noble.dollar.vaults.v2.NAVConfig.circuit_breaker_threshold": + panic(fmt.Errorf("field circuit_breaker_threshold of message noble.dollar.vaults.v2.NAVConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVConfig 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_NAVConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVConfig.deposit_bands": + list := []*NAVBand{} + return protoreflect.ValueOfList(&_NAVConfig_1_list{list: &list}) + case "noble.dollar.vaults.v2.NAVConfig.withdrawal_bands": + list := []*NAVBand{} + return protoreflect.ValueOfList(&_NAVConfig_2_list{list: &list}) + case "noble.dollar.vaults.v2.NAVConfig.min_nav_update_interval": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.NAVConfig.max_nav_deviation": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.NAVConfig.circuit_breaker_threshold": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVConfig 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_NAVConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVConfig", 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_NAVConfig) 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_NAVConfig) 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_NAVConfig) 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_NAVConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.DepositBands) > 0 { + for _, e := range x.DepositBands { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.WithdrawalBands) > 0 { + for _, e := range x.WithdrawalBands { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.MinNavUpdateInterval != 0 { + n += 1 + runtime.Sov(uint64(x.MinNavUpdateInterval)) + } + if x.MaxNavDeviation != 0 { + n += 1 + runtime.Sov(uint64(x.MaxNavDeviation)) + } + if x.CircuitBreakerThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.CircuitBreakerThreshold)) + } + 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().(*NAVConfig) + 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.CircuitBreakerThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CircuitBreakerThreshold)) + i-- + dAtA[i] = 0x28 + } + if x.MaxNavDeviation != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxNavDeviation)) + i-- + dAtA[i] = 0x20 + } + if x.MinNavUpdateInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MinNavUpdateInterval)) + i-- + dAtA[i] = 0x18 + } + if len(x.WithdrawalBands) > 0 { + for iNdEx := len(x.WithdrawalBands) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.WithdrawalBands[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.DepositBands) > 0 { + for iNdEx := len(x.DepositBands) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DepositBands[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*NAVConfig) + 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: NAVConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVConfig: 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 DepositBands", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.DepositBands = append(x.DepositBands, &NAVBand{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DepositBands[len(x.DepositBands)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithdrawalBands", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.WithdrawalBands = append(x.WithdrawalBands, &NAVBand{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WithdrawalBands[len(x.WithdrawalBands)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinNavUpdateInterval", wireType) + } + x.MinNavUpdateInterval = 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.MinNavUpdateInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxNavDeviation", wireType) + } + x.MaxNavDeviation = 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.MaxNavDeviation |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerThreshold", wireType) + } + x.CircuitBreakerThreshold = 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.CircuitBreakerThreshold |= int32(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, + } +} + +var ( + md_NAVInfo protoreflect.MessageDescriptor + fd_NAVInfo_current_nav protoreflect.FieldDescriptor + fd_NAVInfo_previous_nav protoreflect.FieldDescriptor + fd_NAVInfo_last_update protoreflect.FieldDescriptor + fd_NAVInfo_change_bps protoreflect.FieldDescriptor + fd_NAVInfo_circuit_breaker_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_nav_proto_init() + md_NAVInfo = File_noble_dollar_vaults_v2_nav_proto.Messages().ByName("NAVInfo") + fd_NAVInfo_current_nav = md_NAVInfo.Fields().ByName("current_nav") + fd_NAVInfo_previous_nav = md_NAVInfo.Fields().ByName("previous_nav") + fd_NAVInfo_last_update = md_NAVInfo.Fields().ByName("last_update") + fd_NAVInfo_change_bps = md_NAVInfo.Fields().ByName("change_bps") + fd_NAVInfo_circuit_breaker_active = md_NAVInfo.Fields().ByName("circuit_breaker_active") +} + +var _ protoreflect.Message = (*fastReflection_NAVInfo)(nil) + +type fastReflection_NAVInfo NAVInfo + +func (x *NAVInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVInfo)(x) +} + +func (x *NAVInfo) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[2] + 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_NAVInfo_messageType fastReflection_NAVInfo_messageType +var _ protoreflect.MessageType = fastReflection_NAVInfo_messageType{} + +type fastReflection_NAVInfo_messageType struct{} + +func (x fastReflection_NAVInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVInfo)(nil) +} +func (x fastReflection_NAVInfo_messageType) New() protoreflect.Message { + return new(fastReflection_NAVInfo) +} +func (x fastReflection_NAVInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVInfo) Descriptor() protoreflect.MessageDescriptor { + return md_NAVInfo +} + +// 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_NAVInfo) Type() protoreflect.MessageType { + return _fastReflection_NAVInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVInfo) New() protoreflect.Message { + return new(fastReflection_NAVInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVInfo) Interface() protoreflect.ProtoMessage { + return (*NAVInfo)(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_NAVInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.CurrentNav != "" { + value := protoreflect.ValueOfString(x.CurrentNav) + if !f(fd_NAVInfo_current_nav, value) { + return + } + } + if x.PreviousNav != "" { + value := protoreflect.ValueOfString(x.PreviousNav) + if !f(fd_NAVInfo_previous_nav, value) { + return + } + } + if x.LastUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + if !f(fd_NAVInfo_last_update, value) { + return + } + } + if x.ChangeBps != int32(0) { + value := protoreflect.ValueOfInt32(x.ChangeBps) + if !f(fd_NAVInfo_change_bps, value) { + return + } + } + if x.CircuitBreakerActive != false { + value := protoreflect.ValueOfBool(x.CircuitBreakerActive) + if !f(fd_NAVInfo_circuit_breaker_active, 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_NAVInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVInfo.current_nav": + return x.CurrentNav != "" + case "noble.dollar.vaults.v2.NAVInfo.previous_nav": + return x.PreviousNav != "" + case "noble.dollar.vaults.v2.NAVInfo.last_update": + return x.LastUpdate != nil + case "noble.dollar.vaults.v2.NAVInfo.change_bps": + return x.ChangeBps != int32(0) + case "noble.dollar.vaults.v2.NAVInfo.circuit_breaker_active": + return x.CircuitBreakerActive != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVInfo 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_NAVInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVInfo.current_nav": + x.CurrentNav = "" + case "noble.dollar.vaults.v2.NAVInfo.previous_nav": + x.PreviousNav = "" + case "noble.dollar.vaults.v2.NAVInfo.last_update": + x.LastUpdate = nil + case "noble.dollar.vaults.v2.NAVInfo.change_bps": + x.ChangeBps = int32(0) + case "noble.dollar.vaults.v2.NAVInfo.circuit_breaker_active": + x.CircuitBreakerActive = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVInfo 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_NAVInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVInfo.current_nav": + value := x.CurrentNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVInfo.previous_nav": + value := x.PreviousNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVInfo.last_update": + value := x.LastUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVInfo.change_bps": + value := x.ChangeBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.NAVInfo.circuit_breaker_active": + value := x.CircuitBreakerActive + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVInfo 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_NAVInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVInfo.current_nav": + x.CurrentNav = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVInfo.previous_nav": + x.PreviousNav = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVInfo.last_update": + x.LastUpdate = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.NAVInfo.change_bps": + x.ChangeBps = int32(value.Int()) + case "noble.dollar.vaults.v2.NAVInfo.circuit_breaker_active": + x.CircuitBreakerActive = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVInfo 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_NAVInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVInfo.last_update": + if x.LastUpdate == nil { + x.LastUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVInfo.current_nav": + panic(fmt.Errorf("field current_nav of message noble.dollar.vaults.v2.NAVInfo is not mutable")) + case "noble.dollar.vaults.v2.NAVInfo.previous_nav": + panic(fmt.Errorf("field previous_nav of message noble.dollar.vaults.v2.NAVInfo is not mutable")) + case "noble.dollar.vaults.v2.NAVInfo.change_bps": + panic(fmt.Errorf("field change_bps of message noble.dollar.vaults.v2.NAVInfo is not mutable")) + case "noble.dollar.vaults.v2.NAVInfo.circuit_breaker_active": + panic(fmt.Errorf("field circuit_breaker_active of message noble.dollar.vaults.v2.NAVInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVInfo 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_NAVInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVInfo.current_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVInfo.previous_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVInfo.last_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVInfo.change_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.NAVInfo.circuit_breaker_active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVInfo 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_NAVInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVInfo", 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_NAVInfo) 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_NAVInfo) 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_NAVInfo) 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_NAVInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVInfo) + 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.CurrentNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PreviousNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdate != nil { + l = options.Size(x.LastUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChangeBps != 0 { + n += 1 + runtime.Sov(uint64(x.ChangeBps)) + } + if x.CircuitBreakerActive { + n += 2 + } + 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().(*NAVInfo) + 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.CircuitBreakerActive { + i-- + if x.CircuitBreakerActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if x.ChangeBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChangeBps)) + i-- + dAtA[i] = 0x20 + } + if x.LastUpdate != nil { + encoded, err := options.Marshal(x.LastUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.PreviousNav) > 0 { + i -= len(x.PreviousNav) + copy(dAtA[i:], x.PreviousNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousNav))) + i-- + dAtA[i] = 0x12 + } + if len(x.CurrentNav) > 0 { + i -= len(x.CurrentNav) + copy(dAtA[i:], x.CurrentNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentNav))) + 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().(*NAVInfo) + 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: NAVInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVInfo: 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 CurrentNav", 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.CurrentNav = 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 PreviousNav", 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.PreviousNav = 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 LastUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastUpdate == nil { + x.LastUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + x.ChangeBps = 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.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerActive", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.CircuitBreakerActive = bool(v != 0) + 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, + } +} + +var ( + md_NAVUpdate protoreflect.MessageDescriptor + fd_NAVUpdate_new_nav protoreflect.FieldDescriptor + fd_NAVUpdate_timestamp protoreflect.FieldDescriptor + fd_NAVUpdate_block_height protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_nav_proto_init() + md_NAVUpdate = File_noble_dollar_vaults_v2_nav_proto.Messages().ByName("NAVUpdate") + fd_NAVUpdate_new_nav = md_NAVUpdate.Fields().ByName("new_nav") + fd_NAVUpdate_timestamp = md_NAVUpdate.Fields().ByName("timestamp") + fd_NAVUpdate_block_height = md_NAVUpdate.Fields().ByName("block_height") +} + +var _ protoreflect.Message = (*fastReflection_NAVUpdate)(nil) + +type fastReflection_NAVUpdate NAVUpdate + +func (x *NAVUpdate) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVUpdate)(x) +} + +func (x *NAVUpdate) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[3] + 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_NAVUpdate_messageType fastReflection_NAVUpdate_messageType +var _ protoreflect.MessageType = fastReflection_NAVUpdate_messageType{} + +type fastReflection_NAVUpdate_messageType struct{} + +func (x fastReflection_NAVUpdate_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVUpdate)(nil) +} +func (x fastReflection_NAVUpdate_messageType) New() protoreflect.Message { + return new(fastReflection_NAVUpdate) +} +func (x fastReflection_NAVUpdate_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVUpdate +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVUpdate) Descriptor() protoreflect.MessageDescriptor { + return md_NAVUpdate +} + +// 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_NAVUpdate) Type() protoreflect.MessageType { + return _fastReflection_NAVUpdate_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVUpdate) New() protoreflect.Message { + return new(fastReflection_NAVUpdate) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVUpdate) Interface() protoreflect.ProtoMessage { + return (*NAVUpdate)(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_NAVUpdate) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NewNav != "" { + value := protoreflect.ValueOfString(x.NewNav) + if !f(fd_NAVUpdate_new_nav, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_NAVUpdate_timestamp, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_NAVUpdate_block_height, 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_NAVUpdate) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVUpdate.new_nav": + return x.NewNav != "" + case "noble.dollar.vaults.v2.NAVUpdate.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.NAVUpdate.block_height": + return x.BlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVUpdate 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_NAVUpdate) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVUpdate.new_nav": + x.NewNav = "" + case "noble.dollar.vaults.v2.NAVUpdate.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.NAVUpdate.block_height": + x.BlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVUpdate 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_NAVUpdate) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVUpdate.new_nav": + value := x.NewNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVUpdate.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVUpdate.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVUpdate 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_NAVUpdate) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVUpdate.new_nav": + x.NewNav = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVUpdate.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.NAVUpdate.block_height": + x.BlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVUpdate 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_NAVUpdate) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVUpdate.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVUpdate.new_nav": + panic(fmt.Errorf("field new_nav of message noble.dollar.vaults.v2.NAVUpdate is not mutable")) + case "noble.dollar.vaults.v2.NAVUpdate.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.NAVUpdate is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVUpdate 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_NAVUpdate) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVUpdate.new_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVUpdate.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVUpdate.block_height": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVUpdate")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVUpdate 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_NAVUpdate) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVUpdate", 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_NAVUpdate) 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_NAVUpdate) 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_NAVUpdate) 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_NAVUpdate) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVUpdate) + 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.NewNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + 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().(*NAVUpdate) + 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.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.NewNav) > 0 { + i -= len(x.NewNav) + copy(dAtA[i:], x.NewNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewNav))) + 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().(*NAVUpdate) + 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: NAVUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVUpdate: 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 NewNav", 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.NewNav = 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 Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(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, + } +} + +var ( + md_PricingInfo protoreflect.MessageDescriptor + fd_PricingInfo_yield_rate protoreflect.FieldDescriptor + fd_PricingInfo_applied_band protoreflect.FieldDescriptor + fd_PricingInfo_effective_fee_rate protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_nav_proto_init() + md_PricingInfo = File_noble_dollar_vaults_v2_nav_proto.Messages().ByName("PricingInfo") + fd_PricingInfo_yield_rate = md_PricingInfo.Fields().ByName("yield_rate") + fd_PricingInfo_applied_band = md_PricingInfo.Fields().ByName("applied_band") + fd_PricingInfo_effective_fee_rate = md_PricingInfo.Fields().ByName("effective_fee_rate") +} + +var _ protoreflect.Message = (*fastReflection_PricingInfo)(nil) + +type fastReflection_PricingInfo PricingInfo + +func (x *PricingInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_PricingInfo)(x) +} + +func (x *PricingInfo) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[4] + 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_PricingInfo_messageType fastReflection_PricingInfo_messageType +var _ protoreflect.MessageType = fastReflection_PricingInfo_messageType{} + +type fastReflection_PricingInfo_messageType struct{} + +func (x fastReflection_PricingInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_PricingInfo)(nil) +} +func (x fastReflection_PricingInfo_messageType) New() protoreflect.Message { + return new(fastReflection_PricingInfo) +} +func (x fastReflection_PricingInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PricingInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_PricingInfo) Descriptor() protoreflect.MessageDescriptor { + return md_PricingInfo +} + +// 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_PricingInfo) Type() protoreflect.MessageType { + return _fastReflection_PricingInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_PricingInfo) New() protoreflect.Message { + return new(fastReflection_PricingInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_PricingInfo) Interface() protoreflect.ProtoMessage { + return (*PricingInfo)(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_PricingInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.YieldRate != "" { + value := protoreflect.ValueOfString(x.YieldRate) + if !f(fd_PricingInfo_yield_rate, value) { + return + } + } + if x.AppliedBand != nil { + value := protoreflect.ValueOfMessage(x.AppliedBand.ProtoReflect()) + if !f(fd_PricingInfo_applied_band, value) { + return + } + } + if x.EffectiveFeeRate != int32(0) { + value := protoreflect.ValueOfInt32(x.EffectiveFeeRate) + if !f(fd_PricingInfo_effective_fee_rate, 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_PricingInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PricingInfo.yield_rate": + return x.YieldRate != "" + case "noble.dollar.vaults.v2.PricingInfo.applied_band": + return x.AppliedBand != nil + case "noble.dollar.vaults.v2.PricingInfo.effective_fee_rate": + return x.EffectiveFeeRate != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PricingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PricingInfo 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_PricingInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PricingInfo.yield_rate": + x.YieldRate = "" + case "noble.dollar.vaults.v2.PricingInfo.applied_band": + x.AppliedBand = nil + case "noble.dollar.vaults.v2.PricingInfo.effective_fee_rate": + x.EffectiveFeeRate = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PricingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PricingInfo 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_PricingInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.PricingInfo.yield_rate": + value := x.YieldRate + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.PricingInfo.applied_band": + value := x.AppliedBand + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.PricingInfo.effective_fee_rate": + value := x.EffectiveFeeRate + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PricingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PricingInfo 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_PricingInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PricingInfo.yield_rate": + x.YieldRate = value.Interface().(string) + case "noble.dollar.vaults.v2.PricingInfo.applied_band": + x.AppliedBand = value.Message().Interface().(*NAVBand) + case "noble.dollar.vaults.v2.PricingInfo.effective_fee_rate": + x.EffectiveFeeRate = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PricingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PricingInfo 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_PricingInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PricingInfo.applied_band": + if x.AppliedBand == nil { + x.AppliedBand = new(NAVBand) + } + return protoreflect.ValueOfMessage(x.AppliedBand.ProtoReflect()) + case "noble.dollar.vaults.v2.PricingInfo.yield_rate": + panic(fmt.Errorf("field yield_rate of message noble.dollar.vaults.v2.PricingInfo is not mutable")) + case "noble.dollar.vaults.v2.PricingInfo.effective_fee_rate": + panic(fmt.Errorf("field effective_fee_rate of message noble.dollar.vaults.v2.PricingInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PricingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PricingInfo 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_PricingInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.PricingInfo.yield_rate": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.PricingInfo.applied_band": + m := new(NAVBand) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.PricingInfo.effective_fee_rate": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.PricingInfo")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.PricingInfo 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_PricingInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.PricingInfo", 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_PricingInfo) 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_PricingInfo) 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_PricingInfo) 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_PricingInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*PricingInfo) + 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.YieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.AppliedBand != nil { + l = options.Size(x.AppliedBand) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EffectiveFeeRate != 0 { + n += 1 + runtime.Sov(uint64(x.EffectiveFeeRate)) + } + 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().(*PricingInfo) + 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.EffectiveFeeRate != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EffectiveFeeRate)) + i-- + dAtA[i] = 0x18 + } + if x.AppliedBand != nil { + encoded, err := options.Marshal(x.AppliedBand) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.YieldRate) > 0 { + i -= len(x.YieldRate) + copy(dAtA[i:], x.YieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldRate))) + 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().(*PricingInfo) + 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: PricingInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PricingInfo: 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 YieldRate", 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.YieldRate = 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 AppliedBand", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.AppliedBand == nil { + x.AppliedBand = &NAVBand{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AppliedBand); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveFeeRate", wireType) + } + x.EffectiveFeeRate = 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.EffectiveFeeRate |= int32(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, + } +} + +var ( + md_LossEvent protoreflect.MessageDescriptor + fd_LossEvent_loss_amount protoreflect.FieldDescriptor + fd_LossEvent_previous_nav protoreflect.FieldDescriptor + fd_LossEvent_new_nav protoreflect.FieldDescriptor + fd_LossEvent_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_nav_proto_init() + md_LossEvent = File_noble_dollar_vaults_v2_nav_proto.Messages().ByName("LossEvent") + fd_LossEvent_loss_amount = md_LossEvent.Fields().ByName("loss_amount") + fd_LossEvent_previous_nav = md_LossEvent.Fields().ByName("previous_nav") + fd_LossEvent_new_nav = md_LossEvent.Fields().ByName("new_nav") + fd_LossEvent_timestamp = md_LossEvent.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_LossEvent)(nil) + +type fastReflection_LossEvent LossEvent + +func (x *LossEvent) ProtoReflect() protoreflect.Message { + return (*fastReflection_LossEvent)(x) +} + +func (x *LossEvent) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[5] + 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_LossEvent_messageType fastReflection_LossEvent_messageType +var _ protoreflect.MessageType = fastReflection_LossEvent_messageType{} + +type fastReflection_LossEvent_messageType struct{} + +func (x fastReflection_LossEvent_messageType) Zero() protoreflect.Message { + return (*fastReflection_LossEvent)(nil) +} +func (x fastReflection_LossEvent_messageType) New() protoreflect.Message { + return new(fastReflection_LossEvent) +} +func (x fastReflection_LossEvent_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_LossEvent +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_LossEvent) Descriptor() protoreflect.MessageDescriptor { + return md_LossEvent +} + +// 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_LossEvent) Type() protoreflect.MessageType { + return _fastReflection_LossEvent_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_LossEvent) New() protoreflect.Message { + return new(fastReflection_LossEvent) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_LossEvent) Interface() protoreflect.ProtoMessage { + return (*LossEvent)(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_LossEvent) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LossAmount != "" { + value := protoreflect.ValueOfString(x.LossAmount) + if !f(fd_LossEvent_loss_amount, value) { + return + } + } + if x.PreviousNav != "" { + value := protoreflect.ValueOfString(x.PreviousNav) + if !f(fd_LossEvent_previous_nav, value) { + return + } + } + if x.NewNav != "" { + value := protoreflect.ValueOfString(x.NewNav) + if !f(fd_LossEvent_new_nav, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_LossEvent_timestamp, 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_LossEvent) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.LossEvent.loss_amount": + return x.LossAmount != "" + case "noble.dollar.vaults.v2.LossEvent.previous_nav": + return x.PreviousNav != "" + case "noble.dollar.vaults.v2.LossEvent.new_nav": + return x.NewNav != "" + case "noble.dollar.vaults.v2.LossEvent.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.LossEvent")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.LossEvent 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_LossEvent) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.LossEvent.loss_amount": + x.LossAmount = "" + case "noble.dollar.vaults.v2.LossEvent.previous_nav": + x.PreviousNav = "" + case "noble.dollar.vaults.v2.LossEvent.new_nav": + x.NewNav = "" + case "noble.dollar.vaults.v2.LossEvent.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.LossEvent")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.LossEvent 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_LossEvent) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.LossEvent.loss_amount": + value := x.LossAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.LossEvent.previous_nav": + value := x.PreviousNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.LossEvent.new_nav": + value := x.NewNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.LossEvent.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.LossEvent")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.LossEvent 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_LossEvent) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.LossEvent.loss_amount": + x.LossAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.LossEvent.previous_nav": + x.PreviousNav = value.Interface().(string) + case "noble.dollar.vaults.v2.LossEvent.new_nav": + x.NewNav = value.Interface().(string) + case "noble.dollar.vaults.v2.LossEvent.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.LossEvent")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.LossEvent 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_LossEvent) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.LossEvent.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.LossEvent.loss_amount": + panic(fmt.Errorf("field loss_amount of message noble.dollar.vaults.v2.LossEvent is not mutable")) + case "noble.dollar.vaults.v2.LossEvent.previous_nav": + panic(fmt.Errorf("field previous_nav of message noble.dollar.vaults.v2.LossEvent is not mutable")) + case "noble.dollar.vaults.v2.LossEvent.new_nav": + panic(fmt.Errorf("field new_nav of message noble.dollar.vaults.v2.LossEvent is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.LossEvent")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.LossEvent 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_LossEvent) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.LossEvent.loss_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.LossEvent.previous_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.LossEvent.new_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.LossEvent.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.LossEvent")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.LossEvent 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_LossEvent) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.LossEvent", 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_LossEvent) 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_LossEvent) 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_LossEvent) 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_LossEvent) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*LossEvent) + 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.LossAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PreviousNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*LossEvent) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.NewNav) > 0 { + i -= len(x.NewNav) + copy(dAtA[i:], x.NewNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewNav))) + i-- + dAtA[i] = 0x1a + } + if len(x.PreviousNav) > 0 { + i -= len(x.PreviousNav) + copy(dAtA[i:], x.PreviousNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousNav))) + i-- + dAtA[i] = 0x12 + } + if len(x.LossAmount) > 0 { + i -= len(x.LossAmount) + copy(dAtA[i:], x.LossAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LossAmount))) + 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().(*LossEvent) + 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: LossEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LossEvent: 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 LossAmount", 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.LossAmount = 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 PreviousNav", 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.PreviousNav = 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 NewNav", 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.NewNav = 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 Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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: noble/dollar/vaults/v2/nav.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) +) + +// NAVBand defines the pricing bands for deposits and withdrawals +type NAVBand struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Lower bound of the band (basis points above/below NAV) + LowerBound int32 `protobuf:"varint,1,opt,name=lower_bound,json=lowerBound,proto3" json:"lower_bound,omitempty"` + // Upper bound of the band (basis points above/below NAV) + UpperBound int32 `protobuf:"varint,2,opt,name=upper_bound,json=upperBound,proto3" json:"upper_bound,omitempty"` +} + +func (x *NAVBand) Reset() { + *x = NAVBand{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVBand) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVBand) ProtoMessage() {} + +// Deprecated: Use NAVBand.ProtoReflect.Descriptor instead. +func (*NAVBand) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP(), []int{0} +} + +func (x *NAVBand) GetLowerBound() int32 { + if x != nil { + return x.LowerBound + } + return 0 +} + +func (x *NAVBand) GetUpperBound() int32 { + if x != nil { + return x.UpperBound + } + return 0 +} + +// NAVConfig defines the configuration for NAV-based pricing +type NAVConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Base NAV bands for deposits + DepositBands []*NAVBand `protobuf:"bytes,1,rep,name=deposit_bands,json=depositBands,proto3" json:"deposit_bands,omitempty"` + // Base NAV bands for withdrawals + WithdrawalBands []*NAVBand `protobuf:"bytes,2,rep,name=withdrawal_bands,json=withdrawalBands,proto3" json:"withdrawal_bands,omitempty"` + // Minimum NAV update interval (seconds) + MinNavUpdateInterval int64 `protobuf:"varint,3,opt,name=min_nav_update_interval,json=minNavUpdateInterval,proto3" json:"min_nav_update_interval,omitempty"` + // Maximum allowed NAV deviation before emergency controls (basis points) + MaxNavDeviation int32 `protobuf:"varint,4,opt,name=max_nav_deviation,json=maxNavDeviation,proto3" json:"max_nav_deviation,omitempty"` + // Emergency circuit breaker threshold (basis points) + CircuitBreakerThreshold int32 `protobuf:"varint,5,opt,name=circuit_breaker_threshold,json=circuitBreakerThreshold,proto3" json:"circuit_breaker_threshold,omitempty"` +} + +func (x *NAVConfig) Reset() { + *x = NAVConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVConfig) ProtoMessage() {} + +// Deprecated: Use NAVConfig.ProtoReflect.Descriptor instead. +func (*NAVConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP(), []int{1} +} + +func (x *NAVConfig) GetDepositBands() []*NAVBand { + if x != nil { + return x.DepositBands + } + return nil +} + +func (x *NAVConfig) GetWithdrawalBands() []*NAVBand { + if x != nil { + return x.WithdrawalBands + } + return nil +} + +func (x *NAVConfig) GetMinNavUpdateInterval() int64 { + if x != nil { + return x.MinNavUpdateInterval + } + return 0 +} + +func (x *NAVConfig) GetMaxNavDeviation() int32 { + if x != nil { + return x.MaxNavDeviation + } + return 0 +} + +func (x *NAVConfig) GetCircuitBreakerThreshold() int32 { + if x != nil { + return x.CircuitBreakerThreshold + } + return 0 +} + +// NAVInfo represents current NAV information for a vault +type NAVInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current NAV value + CurrentNav string `protobuf:"bytes,1,opt,name=current_nav,json=currentNav,proto3" json:"current_nav,omitempty"` + // Previous NAV value + PreviousNav string `protobuf:"bytes,2,opt,name=previous_nav,json=previousNav,proto3" json:"previous_nav,omitempty"` + // Last update timestamp + LastUpdate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` + // NAV change since last update (basis points) + ChangeBps int32 `protobuf:"varint,4,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Whether circuit breaker is active + CircuitBreakerActive bool `protobuf:"varint,5,opt,name=circuit_breaker_active,json=circuitBreakerActive,proto3" json:"circuit_breaker_active,omitempty"` +} + +func (x *NAVInfo) Reset() { + *x = NAVInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVInfo) ProtoMessage() {} + +// Deprecated: Use NAVInfo.ProtoReflect.Descriptor instead. +func (*NAVInfo) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP(), []int{2} +} + +func (x *NAVInfo) GetCurrentNav() string { + if x != nil { + return x.CurrentNav + } + return "" +} + +func (x *NAVInfo) GetPreviousNav() string { + if x != nil { + return x.PreviousNav + } + return "" +} + +func (x *NAVInfo) GetLastUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdate + } + return nil +} + +func (x *NAVInfo) GetChangeBps() int32 { + if x != nil { + return x.ChangeBps + } + return 0 +} + +func (x *NAVInfo) GetCircuitBreakerActive() bool { + if x != nil { + return x.CircuitBreakerActive + } + return false +} + +// NAVUpdate represents a NAV update event +type NAVUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // New NAV point + NewNav string `protobuf:"bytes,1,opt,name=new_nav,json=newNav,proto3" json:"new_nav,omitempty"` + // Update timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (x *NAVUpdate) Reset() { + *x = NAVUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVUpdate) ProtoMessage() {} + +// Deprecated: Use NAVUpdate.ProtoReflect.Descriptor instead. +func (*NAVUpdate) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP(), []int{3} +} + +func (x *NAVUpdate) GetNewNav() string { + if x != nil { + return x.NewNav + } + return "" +} + +func (x *NAVUpdate) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *NAVUpdate) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +// PricingInfo provides pricing information for deposits/withdrawals +type PricingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current yield rate (APY) + YieldRate string `protobuf:"bytes,1,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` + // Applied NAV band + AppliedBand *NAVBand `protobuf:"bytes,2,opt,name=applied_band,json=appliedBand,proto3" json:"applied_band,omitempty"` + // Effective fee rate + EffectiveFeeRate int32 `protobuf:"varint,3,opt,name=effective_fee_rate,json=effectiveFeeRate,proto3" json:"effective_fee_rate,omitempty"` +} + +func (x *PricingInfo) Reset() { + *x = PricingInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PricingInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PricingInfo) ProtoMessage() {} + +// Deprecated: Use PricingInfo.ProtoReflect.Descriptor instead. +func (*PricingInfo) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP(), []int{4} +} + +func (x *PricingInfo) GetYieldRate() string { + if x != nil { + return x.YieldRate + } + return "" +} + +func (x *PricingInfo) GetAppliedBand() *NAVBand { + if x != nil { + return x.AppliedBand + } + return nil +} + +func (x *PricingInfo) GetEffectiveFeeRate() int32 { + if x != nil { + return x.EffectiveFeeRate + } + return 0 +} + +// LossEvent represents a loss in vault value +type LossEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Amount of loss + LossAmount string `protobuf:"bytes,1,opt,name=loss_amount,json=lossAmount,proto3" json:"loss_amount,omitempty"` + // Previous NAV before loss + PreviousNav string `protobuf:"bytes,2,opt,name=previous_nav,json=previousNav,proto3" json:"previous_nav,omitempty"` + // New NAV after loss + NewNav string `protobuf:"bytes,3,opt,name=new_nav,json=newNav,proto3" json:"new_nav,omitempty"` + // Timestamp of loss + Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *LossEvent) Reset() { + *x = LossEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_nav_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LossEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LossEvent) ProtoMessage() {} + +// Deprecated: Use LossEvent.ProtoReflect.Descriptor instead. +func (*LossEvent) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP(), []int{5} +} + +func (x *LossEvent) GetLossAmount() string { + if x != nil { + return x.LossAmount + } + return "" +} + +func (x *LossEvent) GetPreviousNav() string { + if x != nil { + return x.PreviousNav + } + return "" +} + +func (x *LossEvent) GetNewNav() string { + if x != nil { + return x.NewNav + } + return "" +} + +func (x *LossEvent) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +var File_noble_dollar_vaults_v2_nav_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_nav_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x61, 0x76, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, + 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x4b, 0x0a, 0x07, 0x4e, 0x41, 0x56, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, + 0x77, 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0a, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x75, + 0x70, 0x70, 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0a, 0x75, 0x70, 0x70, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0xbc, 0x02, 0x0a, + 0x09, 0x4e, 0x41, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x0d, 0x64, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x41, 0x56, 0x42, 0x61, + 0x6e, 0x64, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x61, 0x6e, 0x64, 0x73, + 0x12, 0x4a, 0x0a, 0x10, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, 0x62, + 0x61, 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x41, 0x56, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0f, 0x77, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x42, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x35, 0x0a, 0x17, + 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x76, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x6d, + 0x69, 0x6e, 0x4e, 0x61, 0x76, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x76, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x61, 0x76, 0x5f, 0x64, + 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, + 0x6d, 0x61, 0x78, 0x4e, 0x61, 0x76, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x3a, 0x0a, 0x19, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, + 0x65, 0x72, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x17, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, + 0x65, 0x72, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0xcd, 0x02, 0x0a, 0x07, + 0x4e, 0x41, 0x56, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x51, 0x0a, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x76, 0x12, 0x53, 0x0a, 0x0c, 0x70, 0x72, + 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4e, 0x61, 0x76, 0x12, + 0x45, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x5f, 0x62, 0x70, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x42, 0x70, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, + 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, + 0x65, 0x61, 0x6b, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0xbd, 0x01, 0x0a, 0x09, + 0x4e, 0x41, 0x56, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x49, 0x0a, 0x07, 0x6e, 0x65, 0x77, + 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x6e, 0x65, + 0x77, 0x4e, 0x61, 0x76, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xd6, 0x01, 0x0a, 0x0b, + 0x50, 0x72, 0x69, 0x63, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x55, 0x0a, 0x0a, 0x79, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, + 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, + 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x61, + 0x74, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x61, + 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4e, 0x41, 0x56, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x65, 0x64, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x10, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x46, 0x65, 0x65, + 0x52, 0x61, 0x74, 0x65, 0x22, 0xc2, 0x02, 0x0a, 0x09, 0x4c, 0x6f, 0x73, 0x73, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x0b, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x41, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4e, 0x61, 0x76, 0x12, 0x49, 0x0a, 0x07, 0x6e, 0x65, + 0x77, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x6e, + 0x65, 0x77, 0x4e, 0x61, 0x76, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0xda, 0x01, 0x0a, 0x1a, 0x63, 0x6f, + 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x4e, 0x61, 0x76, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, + 0x4e, 0x44, 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, + 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, + 0x6c, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_nav_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_nav_proto_rawDescData = file_noble_dollar_vaults_v2_nav_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_nav_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_nav_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_nav_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_nav_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_nav_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_nav_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_noble_dollar_vaults_v2_nav_proto_goTypes = []interface{}{ + (*NAVBand)(nil), // 0: noble.dollar.vaults.v2.NAVBand + (*NAVConfig)(nil), // 1: noble.dollar.vaults.v2.NAVConfig + (*NAVInfo)(nil), // 2: noble.dollar.vaults.v2.NAVInfo + (*NAVUpdate)(nil), // 3: noble.dollar.vaults.v2.NAVUpdate + (*PricingInfo)(nil), // 4: noble.dollar.vaults.v2.PricingInfo + (*LossEvent)(nil), // 5: noble.dollar.vaults.v2.LossEvent + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp +} +var file_noble_dollar_vaults_v2_nav_proto_depIdxs = []int32{ + 0, // 0: noble.dollar.vaults.v2.NAVConfig.deposit_bands:type_name -> noble.dollar.vaults.v2.NAVBand + 0, // 1: noble.dollar.vaults.v2.NAVConfig.withdrawal_bands:type_name -> noble.dollar.vaults.v2.NAVBand + 6, // 2: noble.dollar.vaults.v2.NAVInfo.last_update:type_name -> google.protobuf.Timestamp + 6, // 3: noble.dollar.vaults.v2.NAVUpdate.timestamp:type_name -> google.protobuf.Timestamp + 0, // 4: noble.dollar.vaults.v2.PricingInfo.applied_band:type_name -> noble.dollar.vaults.v2.NAVBand + 6, // 5: noble.dollar.vaults.v2.LossEvent.timestamp:type_name -> google.protobuf.Timestamp + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_nav_proto_init() } +func file_noble_dollar_vaults_v2_nav_proto_init() { + if File_noble_dollar_vaults_v2_nav_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_nav_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVBand); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_nav_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_nav_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_nav_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_nav_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PricingInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_nav_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LossEvent); 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_noble_dollar_vaults_v2_nav_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_nav_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_nav_proto_depIdxs, + MessageInfos: file_noble_dollar_vaults_v2_nav_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_nav_proto = out.File + file_noble_dollar_vaults_v2_nav_proto_rawDesc = nil + file_noble_dollar_vaults_v2_nav_proto_goTypes = nil + file_noble_dollar_vaults_v2_nav_proto_depIdxs = nil +} diff --git a/api/vaults/v2/oracle.pulsar.go b/api/vaults/v2/oracle.pulsar.go new file mode 100644 index 00000000..7ac01337 --- /dev/null +++ b/api/vaults/v2/oracle.pulsar.go @@ -0,0 +1,14161 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_RemotePositionOracle protoreflect.MessageDescriptor + fd_RemotePositionOracle_position_id protoreflect.FieldDescriptor + fd_RemotePositionOracle_chain_id protoreflect.FieldDescriptor + fd_RemotePositionOracle_oracle_address protoreflect.FieldDescriptor + fd_RemotePositionOracle_vault_address protoreflect.FieldDescriptor + fd_RemotePositionOracle_shares_held protoreflect.FieldDescriptor + fd_RemotePositionOracle_share_price protoreflect.FieldDescriptor + fd_RemotePositionOracle_last_update protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_RemotePositionOracle = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("RemotePositionOracle") + fd_RemotePositionOracle_position_id = md_RemotePositionOracle.Fields().ByName("position_id") + fd_RemotePositionOracle_chain_id = md_RemotePositionOracle.Fields().ByName("chain_id") + fd_RemotePositionOracle_oracle_address = md_RemotePositionOracle.Fields().ByName("oracle_address") + fd_RemotePositionOracle_vault_address = md_RemotePositionOracle.Fields().ByName("vault_address") + fd_RemotePositionOracle_shares_held = md_RemotePositionOracle.Fields().ByName("shares_held") + fd_RemotePositionOracle_share_price = md_RemotePositionOracle.Fields().ByName("share_price") + fd_RemotePositionOracle_last_update = md_RemotePositionOracle.Fields().ByName("last_update") +} + +var _ protoreflect.Message = (*fastReflection_RemotePositionOracle)(nil) + +type fastReflection_RemotePositionOracle RemotePositionOracle + +func (x *RemotePositionOracle) ProtoReflect() protoreflect.Message { + return (*fastReflection_RemotePositionOracle)(x) +} + +func (x *RemotePositionOracle) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_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_RemotePositionOracle_messageType fastReflection_RemotePositionOracle_messageType +var _ protoreflect.MessageType = fastReflection_RemotePositionOracle_messageType{} + +type fastReflection_RemotePositionOracle_messageType struct{} + +func (x fastReflection_RemotePositionOracle_messageType) Zero() protoreflect.Message { + return (*fastReflection_RemotePositionOracle)(nil) +} +func (x fastReflection_RemotePositionOracle_messageType) New() protoreflect.Message { + return new(fastReflection_RemotePositionOracle) +} +func (x fastReflection_RemotePositionOracle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RemotePositionOracle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RemotePositionOracle) Descriptor() protoreflect.MessageDescriptor { + return md_RemotePositionOracle +} + +// 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_RemotePositionOracle) Type() protoreflect.MessageType { + return _fastReflection_RemotePositionOracle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RemotePositionOracle) New() protoreflect.Message { + return new(fastReflection_RemotePositionOracle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RemotePositionOracle) Interface() protoreflect.ProtoMessage { + return (*RemotePositionOracle)(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_RemotePositionOracle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_RemotePositionOracle_position_id, value) { + return + } + } + if x.ChainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.ChainId) + if !f(fd_RemotePositionOracle_chain_id, value) { + return + } + } + if x.OracleAddress != "" { + value := protoreflect.ValueOfString(x.OracleAddress) + if !f(fd_RemotePositionOracle_oracle_address, value) { + return + } + } + if x.VaultAddress != "" { + value := protoreflect.ValueOfString(x.VaultAddress) + if !f(fd_RemotePositionOracle_vault_address, value) { + return + } + } + if x.SharesHeld != "" { + value := protoreflect.ValueOfString(x.SharesHeld) + if !f(fd_RemotePositionOracle_shares_held, value) { + return + } + } + if x.SharePrice != "" { + value := protoreflect.ValueOfString(x.SharePrice) + if !f(fd_RemotePositionOracle_share_price, value) { + return + } + } + if x.LastUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + if !f(fd_RemotePositionOracle_last_update, 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_RemotePositionOracle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionOracle.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.RemotePositionOracle.chain_id": + return x.ChainId != uint32(0) + case "noble.dollar.vaults.v2.RemotePositionOracle.oracle_address": + return x.OracleAddress != "" + case "noble.dollar.vaults.v2.RemotePositionOracle.vault_address": + return x.VaultAddress != "" + case "noble.dollar.vaults.v2.RemotePositionOracle.shares_held": + return x.SharesHeld != "" + case "noble.dollar.vaults.v2.RemotePositionOracle.share_price": + return x.SharePrice != "" + case "noble.dollar.vaults.v2.RemotePositionOracle.last_update": + return x.LastUpdate != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionOracle 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_RemotePositionOracle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionOracle.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.RemotePositionOracle.chain_id": + x.ChainId = uint32(0) + case "noble.dollar.vaults.v2.RemotePositionOracle.oracle_address": + x.OracleAddress = "" + case "noble.dollar.vaults.v2.RemotePositionOracle.vault_address": + x.VaultAddress = "" + case "noble.dollar.vaults.v2.RemotePositionOracle.shares_held": + x.SharesHeld = "" + case "noble.dollar.vaults.v2.RemotePositionOracle.share_price": + x.SharePrice = "" + case "noble.dollar.vaults.v2.RemotePositionOracle.last_update": + x.LastUpdate = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionOracle 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_RemotePositionOracle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.RemotePositionOracle.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.RemotePositionOracle.chain_id": + value := x.ChainId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.RemotePositionOracle.oracle_address": + value := x.OracleAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePositionOracle.vault_address": + value := x.VaultAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePositionOracle.shares_held": + value := x.SharesHeld + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePositionOracle.share_price": + value := x.SharePrice + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.RemotePositionOracle.last_update": + value := x.LastUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionOracle 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_RemotePositionOracle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionOracle.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.RemotePositionOracle.chain_id": + x.ChainId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.RemotePositionOracle.oracle_address": + x.OracleAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePositionOracle.vault_address": + x.VaultAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePositionOracle.shares_held": + x.SharesHeld = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePositionOracle.share_price": + x.SharePrice = value.Interface().(string) + case "noble.dollar.vaults.v2.RemotePositionOracle.last_update": + x.LastUpdate = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionOracle 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_RemotePositionOracle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionOracle.last_update": + if x.LastUpdate == nil { + x.LastUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.RemotePositionOracle.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.RemotePositionOracle is not mutable")) + case "noble.dollar.vaults.v2.RemotePositionOracle.chain_id": + panic(fmt.Errorf("field chain_id of message noble.dollar.vaults.v2.RemotePositionOracle is not mutable")) + case "noble.dollar.vaults.v2.RemotePositionOracle.oracle_address": + panic(fmt.Errorf("field oracle_address of message noble.dollar.vaults.v2.RemotePositionOracle is not mutable")) + case "noble.dollar.vaults.v2.RemotePositionOracle.vault_address": + panic(fmt.Errorf("field vault_address of message noble.dollar.vaults.v2.RemotePositionOracle is not mutable")) + case "noble.dollar.vaults.v2.RemotePositionOracle.shares_held": + panic(fmt.Errorf("field shares_held of message noble.dollar.vaults.v2.RemotePositionOracle is not mutable")) + case "noble.dollar.vaults.v2.RemotePositionOracle.share_price": + panic(fmt.Errorf("field share_price of message noble.dollar.vaults.v2.RemotePositionOracle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionOracle 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_RemotePositionOracle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionOracle.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.RemotePositionOracle.chain_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.RemotePositionOracle.oracle_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePositionOracle.vault_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePositionOracle.shares_held": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePositionOracle.share_price": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.RemotePositionOracle.last_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionOracle 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_RemotePositionOracle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.RemotePositionOracle", 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_RemotePositionOracle) 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_RemotePositionOracle) 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_RemotePositionOracle) 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_RemotePositionOracle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RemotePositionOracle) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.ChainId != 0 { + n += 1 + runtime.Sov(uint64(x.ChainId)) + } + l = len(x.OracleAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.VaultAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharesHeld) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharePrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdate != nil { + l = options.Size(x.LastUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*RemotePositionOracle) + 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.LastUpdate != nil { + encoded, err := options.Marshal(x.LastUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if len(x.SharePrice) > 0 { + i -= len(x.SharePrice) + copy(dAtA[i:], x.SharePrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharePrice))) + i-- + dAtA[i] = 0x32 + } + if len(x.SharesHeld) > 0 { + i -= len(x.SharesHeld) + copy(dAtA[i:], x.SharesHeld) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesHeld))) + i-- + dAtA[i] = 0x2a + } + if len(x.VaultAddress) > 0 { + i -= len(x.VaultAddress) + copy(dAtA[i:], x.VaultAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VaultAddress))) + i-- + dAtA[i] = 0x22 + } + if len(x.OracleAddress) > 0 { + i -= len(x.OracleAddress) + copy(dAtA[i:], x.OracleAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleAddress))) + i-- + dAtA[i] = 0x1a + } + if x.ChainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChainId)) + i-- + dAtA[i] = 0x10 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*RemotePositionOracle) + 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: RemotePositionOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RemotePositionOracle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + x.ChainId = 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.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", 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.OracleAddress = 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 VaultAddress", 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.VaultAddress = 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 SharesHeld", 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.SharesHeld = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharePrice", 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.SharePrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastUpdate == nil { + x.LastUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_OracleMapping protoreflect.MessageDescriptor + fd_OracleMapping_oracle_address protoreflect.FieldDescriptor + fd_OracleMapping_chain_id protoreflect.FieldDescriptor + fd_OracleMapping_position_id protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_OracleMapping = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("OracleMapping") + fd_OracleMapping_oracle_address = md_OracleMapping.Fields().ByName("oracle_address") + fd_OracleMapping_chain_id = md_OracleMapping.Fields().ByName("chain_id") + fd_OracleMapping_position_id = md_OracleMapping.Fields().ByName("position_id") +} + +var _ protoreflect.Message = (*fastReflection_OracleMapping)(nil) + +type fastReflection_OracleMapping OracleMapping + +func (x *OracleMapping) ProtoReflect() protoreflect.Message { + return (*fastReflection_OracleMapping)(x) +} + +func (x *OracleMapping) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[1] + 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_OracleMapping_messageType fastReflection_OracleMapping_messageType +var _ protoreflect.MessageType = fastReflection_OracleMapping_messageType{} + +type fastReflection_OracleMapping_messageType struct{} + +func (x fastReflection_OracleMapping_messageType) Zero() protoreflect.Message { + return (*fastReflection_OracleMapping)(nil) +} +func (x fastReflection_OracleMapping_messageType) New() protoreflect.Message { + return new(fastReflection_OracleMapping) +} +func (x fastReflection_OracleMapping_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OracleMapping +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OracleMapping) Descriptor() protoreflect.MessageDescriptor { + return md_OracleMapping +} + +// 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_OracleMapping) Type() protoreflect.MessageType { + return _fastReflection_OracleMapping_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OracleMapping) New() protoreflect.Message { + return new(fastReflection_OracleMapping) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OracleMapping) Interface() protoreflect.ProtoMessage { + return (*OracleMapping)(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_OracleMapping) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OracleAddress != "" { + value := protoreflect.ValueOfString(x.OracleAddress) + if !f(fd_OracleMapping_oracle_address, value) { + return + } + } + if x.ChainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.ChainId) + if !f(fd_OracleMapping_chain_id, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_OracleMapping_position_id, 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_OracleMapping) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleMapping.oracle_address": + return x.OracleAddress != "" + case "noble.dollar.vaults.v2.OracleMapping.chain_id": + return x.ChainId != uint32(0) + case "noble.dollar.vaults.v2.OracleMapping.position_id": + return x.PositionId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleMapping")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleMapping 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_OracleMapping) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleMapping.oracle_address": + x.OracleAddress = "" + case "noble.dollar.vaults.v2.OracleMapping.chain_id": + x.ChainId = uint32(0) + case "noble.dollar.vaults.v2.OracleMapping.position_id": + x.PositionId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleMapping")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleMapping 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_OracleMapping) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.OracleMapping.oracle_address": + value := x.OracleAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.OracleMapping.chain_id": + value := x.ChainId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.OracleMapping.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleMapping")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleMapping 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_OracleMapping) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleMapping.oracle_address": + x.OracleAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.OracleMapping.chain_id": + x.ChainId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.OracleMapping.position_id": + x.PositionId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleMapping")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleMapping 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_OracleMapping) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleMapping.oracle_address": + panic(fmt.Errorf("field oracle_address of message noble.dollar.vaults.v2.OracleMapping is not mutable")) + case "noble.dollar.vaults.v2.OracleMapping.chain_id": + panic(fmt.Errorf("field chain_id of message noble.dollar.vaults.v2.OracleMapping is not mutable")) + case "noble.dollar.vaults.v2.OracleMapping.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.OracleMapping is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleMapping")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleMapping 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_OracleMapping) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleMapping.oracle_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.OracleMapping.chain_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.OracleMapping.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleMapping")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleMapping 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_OracleMapping) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.OracleMapping", 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_OracleMapping) 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_OracleMapping) 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_OracleMapping) 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_OracleMapping) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OracleMapping) + 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.OracleAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChainId != 0 { + n += 1 + runtime.Sov(uint64(x.ChainId)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + 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().(*OracleMapping) + 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.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x18 + } + if x.ChainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChainId)) + i-- + dAtA[i] = 0x10 + } + if len(x.OracleAddress) > 0 { + i -= len(x.OracleAddress) + copy(dAtA[i:], x.OracleAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleAddress))) + 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().(*OracleMapping) + 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: OracleMapping: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OracleMapping: 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 OracleAddress", 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.OracleAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + x.ChainId = 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.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= 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, + } +} + +var ( + md_EnrolledOracleRouter protoreflect.MessageDescriptor + fd_EnrolledOracleRouter_position_id protoreflect.FieldDescriptor + fd_EnrolledOracleRouter_source_chain protoreflect.FieldDescriptor + fd_EnrolledOracleRouter_oracle_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_EnrolledOracleRouter = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("EnrolledOracleRouter") + fd_EnrolledOracleRouter_position_id = md_EnrolledOracleRouter.Fields().ByName("position_id") + fd_EnrolledOracleRouter_source_chain = md_EnrolledOracleRouter.Fields().ByName("source_chain") + fd_EnrolledOracleRouter_oracle_address = md_EnrolledOracleRouter.Fields().ByName("oracle_address") +} + +var _ protoreflect.Message = (*fastReflection_EnrolledOracleRouter)(nil) + +type fastReflection_EnrolledOracleRouter EnrolledOracleRouter + +func (x *EnrolledOracleRouter) ProtoReflect() protoreflect.Message { + return (*fastReflection_EnrolledOracleRouter)(x) +} + +func (x *EnrolledOracleRouter) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[2] + 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_EnrolledOracleRouter_messageType fastReflection_EnrolledOracleRouter_messageType +var _ protoreflect.MessageType = fastReflection_EnrolledOracleRouter_messageType{} + +type fastReflection_EnrolledOracleRouter_messageType struct{} + +func (x fastReflection_EnrolledOracleRouter_messageType) Zero() protoreflect.Message { + return (*fastReflection_EnrolledOracleRouter)(nil) +} +func (x fastReflection_EnrolledOracleRouter_messageType) New() protoreflect.Message { + return new(fastReflection_EnrolledOracleRouter) +} +func (x fastReflection_EnrolledOracleRouter_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EnrolledOracleRouter +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EnrolledOracleRouter) Descriptor() protoreflect.MessageDescriptor { + return md_EnrolledOracleRouter +} + +// 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_EnrolledOracleRouter) Type() protoreflect.MessageType { + return _fastReflection_EnrolledOracleRouter_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EnrolledOracleRouter) New() protoreflect.Message { + return new(fastReflection_EnrolledOracleRouter) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EnrolledOracleRouter) Interface() protoreflect.ProtoMessage { + return (*EnrolledOracleRouter)(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_EnrolledOracleRouter) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_EnrolledOracleRouter_position_id, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_EnrolledOracleRouter_source_chain, value) { + return + } + } + if x.OracleAddress != "" { + value := protoreflect.ValueOfString(x.OracleAddress) + if !f(fd_EnrolledOracleRouter_oracle_address, 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_EnrolledOracleRouter) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracleRouter.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.EnrolledOracleRouter.oracle_address": + return x.OracleAddress != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracleRouter")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracleRouter 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_EnrolledOracleRouter) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracleRouter.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.EnrolledOracleRouter.oracle_address": + x.OracleAddress = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracleRouter")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracleRouter 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_EnrolledOracleRouter) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracleRouter.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.oracle_address": + value := x.OracleAddress + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracleRouter")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracleRouter 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_EnrolledOracleRouter) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracleRouter.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.EnrolledOracleRouter.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.oracle_address": + x.OracleAddress = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracleRouter")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracleRouter 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_EnrolledOracleRouter) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracleRouter.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.EnrolledOracleRouter is not mutable")) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.EnrolledOracleRouter is not mutable")) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.oracle_address": + panic(fmt.Errorf("field oracle_address of message noble.dollar.vaults.v2.EnrolledOracleRouter is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracleRouter")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracleRouter 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_EnrolledOracleRouter) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracleRouter.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.EnrolledOracleRouter.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EnrolledOracleRouter.oracle_address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracleRouter")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracleRouter 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_EnrolledOracleRouter) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EnrolledOracleRouter", 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_EnrolledOracleRouter) 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_EnrolledOracleRouter) 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_EnrolledOracleRouter) 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_EnrolledOracleRouter) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EnrolledOracleRouter) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OracleAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*EnrolledOracleRouter) + 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 len(x.OracleAddress) > 0 { + i -= len(x.OracleAddress) + copy(dAtA[i:], x.OracleAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x12 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*EnrolledOracleRouter) + 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: EnrolledOracleRouter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EnrolledOracleRouter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = 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 OracleAddress", 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.OracleAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_EnrolledOracle protoreflect.MessageDescriptor + fd_EnrolledOracle_position_id protoreflect.FieldDescriptor + fd_EnrolledOracle_source_chain protoreflect.FieldDescriptor + fd_EnrolledOracle_oracle_address protoreflect.FieldDescriptor + fd_EnrolledOracle_max_staleness protoreflect.FieldDescriptor + fd_EnrolledOracle_registered_at protoreflect.FieldDescriptor + fd_EnrolledOracle_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_EnrolledOracle = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("EnrolledOracle") + fd_EnrolledOracle_position_id = md_EnrolledOracle.Fields().ByName("position_id") + fd_EnrolledOracle_source_chain = md_EnrolledOracle.Fields().ByName("source_chain") + fd_EnrolledOracle_oracle_address = md_EnrolledOracle.Fields().ByName("oracle_address") + fd_EnrolledOracle_max_staleness = md_EnrolledOracle.Fields().ByName("max_staleness") + fd_EnrolledOracle_registered_at = md_EnrolledOracle.Fields().ByName("registered_at") + fd_EnrolledOracle_active = md_EnrolledOracle.Fields().ByName("active") +} + +var _ protoreflect.Message = (*fastReflection_EnrolledOracle)(nil) + +type fastReflection_EnrolledOracle EnrolledOracle + +func (x *EnrolledOracle) ProtoReflect() protoreflect.Message { + return (*fastReflection_EnrolledOracle)(x) +} + +func (x *EnrolledOracle) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[3] + 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_EnrolledOracle_messageType fastReflection_EnrolledOracle_messageType +var _ protoreflect.MessageType = fastReflection_EnrolledOracle_messageType{} + +type fastReflection_EnrolledOracle_messageType struct{} + +func (x fastReflection_EnrolledOracle_messageType) Zero() protoreflect.Message { + return (*fastReflection_EnrolledOracle)(nil) +} +func (x fastReflection_EnrolledOracle_messageType) New() protoreflect.Message { + return new(fastReflection_EnrolledOracle) +} +func (x fastReflection_EnrolledOracle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EnrolledOracle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EnrolledOracle) Descriptor() protoreflect.MessageDescriptor { + return md_EnrolledOracle +} + +// 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_EnrolledOracle) Type() protoreflect.MessageType { + return _fastReflection_EnrolledOracle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EnrolledOracle) New() protoreflect.Message { + return new(fastReflection_EnrolledOracle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EnrolledOracle) Interface() protoreflect.ProtoMessage { + return (*EnrolledOracle)(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_EnrolledOracle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_EnrolledOracle_position_id, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_EnrolledOracle_source_chain, value) { + return + } + } + if x.OracleAddress != "" { + value := protoreflect.ValueOfString(x.OracleAddress) + if !f(fd_EnrolledOracle_oracle_address, value) { + return + } + } + if x.MaxStaleness != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxStaleness) + if !f(fd_EnrolledOracle_max_staleness, value) { + return + } + } + if x.RegisteredAt != nil { + value := protoreflect.ValueOfMessage(x.RegisteredAt.ProtoReflect()) + if !f(fd_EnrolledOracle_registered_at, value) { + return + } + } + if x.Active != false { + value := protoreflect.ValueOfBool(x.Active) + if !f(fd_EnrolledOracle_active, 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_EnrolledOracle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracle.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.EnrolledOracle.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.EnrolledOracle.oracle_address": + return x.OracleAddress != "" + case "noble.dollar.vaults.v2.EnrolledOracle.max_staleness": + return x.MaxStaleness != int64(0) + case "noble.dollar.vaults.v2.EnrolledOracle.registered_at": + return x.RegisteredAt != nil + case "noble.dollar.vaults.v2.EnrolledOracle.active": + return x.Active != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracle 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_EnrolledOracle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracle.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.EnrolledOracle.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.EnrolledOracle.oracle_address": + x.OracleAddress = "" + case "noble.dollar.vaults.v2.EnrolledOracle.max_staleness": + x.MaxStaleness = int64(0) + case "noble.dollar.vaults.v2.EnrolledOracle.registered_at": + x.RegisteredAt = nil + case "noble.dollar.vaults.v2.EnrolledOracle.active": + x.Active = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracle 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_EnrolledOracle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracle.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.EnrolledOracle.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EnrolledOracle.oracle_address": + value := x.OracleAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.EnrolledOracle.max_staleness": + value := x.MaxStaleness + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.EnrolledOracle.registered_at": + value := x.RegisteredAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.EnrolledOracle.active": + value := x.Active + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracle 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_EnrolledOracle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracle.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.EnrolledOracle.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.EnrolledOracle.oracle_address": + x.OracleAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.EnrolledOracle.max_staleness": + x.MaxStaleness = value.Int() + case "noble.dollar.vaults.v2.EnrolledOracle.registered_at": + x.RegisteredAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.EnrolledOracle.active": + x.Active = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracle 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_EnrolledOracle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracle.registered_at": + if x.RegisteredAt == nil { + x.RegisteredAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.RegisteredAt.ProtoReflect()) + case "noble.dollar.vaults.v2.EnrolledOracle.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.EnrolledOracle is not mutable")) + case "noble.dollar.vaults.v2.EnrolledOracle.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.EnrolledOracle is not mutable")) + case "noble.dollar.vaults.v2.EnrolledOracle.oracle_address": + panic(fmt.Errorf("field oracle_address of message noble.dollar.vaults.v2.EnrolledOracle is not mutable")) + case "noble.dollar.vaults.v2.EnrolledOracle.max_staleness": + panic(fmt.Errorf("field max_staleness of message noble.dollar.vaults.v2.EnrolledOracle is not mutable")) + case "noble.dollar.vaults.v2.EnrolledOracle.active": + panic(fmt.Errorf("field active of message noble.dollar.vaults.v2.EnrolledOracle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracle 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_EnrolledOracle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.EnrolledOracle.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.EnrolledOracle.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EnrolledOracle.oracle_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.EnrolledOracle.max_staleness": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.EnrolledOracle.registered_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.EnrolledOracle.active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.EnrolledOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.EnrolledOracle 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_EnrolledOracle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.EnrolledOracle", 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_EnrolledOracle) 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_EnrolledOracle) 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_EnrolledOracle) 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_EnrolledOracle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EnrolledOracle) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OracleAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxStaleness != 0 { + n += 1 + runtime.Sov(uint64(x.MaxStaleness)) + } + if x.RegisteredAt != nil { + l = options.Size(x.RegisteredAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Active { + n += 2 + } + 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().(*EnrolledOracle) + 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.Active { + i-- + if x.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if x.RegisteredAt != nil { + encoded, err := options.Marshal(x.RegisteredAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.MaxStaleness != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxStaleness)) + i-- + dAtA[i] = 0x20 + } + if len(x.OracleAddress) > 0 { + i -= len(x.OracleAddress) + copy(dAtA[i:], x.OracleAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x12 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*EnrolledOracle) + 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: EnrolledOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EnrolledOracle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = 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 OracleAddress", 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.OracleAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + x.MaxStaleness = 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.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RegisteredAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.RegisteredAt == nil { + x.RegisteredAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RegisteredAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Active = bool(v != 0) + 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, + } +} + +var ( + md_StalenessConfig protoreflect.MessageDescriptor + fd_StalenessConfig_warning_threshold protoreflect.FieldDescriptor + fd_StalenessConfig_critical_threshold protoreflect.FieldDescriptor + fd_StalenessConfig_max_staleness protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_StalenessConfig = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("StalenessConfig") + fd_StalenessConfig_warning_threshold = md_StalenessConfig.Fields().ByName("warning_threshold") + fd_StalenessConfig_critical_threshold = md_StalenessConfig.Fields().ByName("critical_threshold") + fd_StalenessConfig_max_staleness = md_StalenessConfig.Fields().ByName("max_staleness") +} + +var _ protoreflect.Message = (*fastReflection_StalenessConfig)(nil) + +type fastReflection_StalenessConfig StalenessConfig + +func (x *StalenessConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_StalenessConfig)(x) +} + +func (x *StalenessConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[4] + 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_StalenessConfig_messageType fastReflection_StalenessConfig_messageType +var _ protoreflect.MessageType = fastReflection_StalenessConfig_messageType{} + +type fastReflection_StalenessConfig_messageType struct{} + +func (x fastReflection_StalenessConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_StalenessConfig)(nil) +} +func (x fastReflection_StalenessConfig_messageType) New() protoreflect.Message { + return new(fastReflection_StalenessConfig) +} +func (x fastReflection_StalenessConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StalenessConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StalenessConfig) Descriptor() protoreflect.MessageDescriptor { + return md_StalenessConfig +} + +// 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_StalenessConfig) Type() protoreflect.MessageType { + return _fastReflection_StalenessConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StalenessConfig) New() protoreflect.Message { + return new(fastReflection_StalenessConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StalenessConfig) Interface() protoreflect.ProtoMessage { + return (*StalenessConfig)(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_StalenessConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.WarningThreshold != int64(0) { + value := protoreflect.ValueOfInt64(x.WarningThreshold) + if !f(fd_StalenessConfig_warning_threshold, value) { + return + } + } + if x.CriticalThreshold != int64(0) { + value := protoreflect.ValueOfInt64(x.CriticalThreshold) + if !f(fd_StalenessConfig_critical_threshold, value) { + return + } + } + if x.MaxStaleness != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxStaleness) + if !f(fd_StalenessConfig_max_staleness, 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_StalenessConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StalenessConfig.warning_threshold": + return x.WarningThreshold != int64(0) + case "noble.dollar.vaults.v2.StalenessConfig.critical_threshold": + return x.CriticalThreshold != int64(0) + case "noble.dollar.vaults.v2.StalenessConfig.max_staleness": + return x.MaxStaleness != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StalenessConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StalenessConfig 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_StalenessConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StalenessConfig.warning_threshold": + x.WarningThreshold = int64(0) + case "noble.dollar.vaults.v2.StalenessConfig.critical_threshold": + x.CriticalThreshold = int64(0) + case "noble.dollar.vaults.v2.StalenessConfig.max_staleness": + x.MaxStaleness = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StalenessConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StalenessConfig 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_StalenessConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.StalenessConfig.warning_threshold": + value := x.WarningThreshold + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.StalenessConfig.critical_threshold": + value := x.CriticalThreshold + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.StalenessConfig.max_staleness": + value := x.MaxStaleness + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StalenessConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StalenessConfig 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_StalenessConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StalenessConfig.warning_threshold": + x.WarningThreshold = value.Int() + case "noble.dollar.vaults.v2.StalenessConfig.critical_threshold": + x.CriticalThreshold = value.Int() + case "noble.dollar.vaults.v2.StalenessConfig.max_staleness": + x.MaxStaleness = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StalenessConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StalenessConfig 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_StalenessConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StalenessConfig.warning_threshold": + panic(fmt.Errorf("field warning_threshold of message noble.dollar.vaults.v2.StalenessConfig is not mutable")) + case "noble.dollar.vaults.v2.StalenessConfig.critical_threshold": + panic(fmt.Errorf("field critical_threshold of message noble.dollar.vaults.v2.StalenessConfig is not mutable")) + case "noble.dollar.vaults.v2.StalenessConfig.max_staleness": + panic(fmt.Errorf("field max_staleness of message noble.dollar.vaults.v2.StalenessConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StalenessConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StalenessConfig 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_StalenessConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StalenessConfig.warning_threshold": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.StalenessConfig.critical_threshold": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.StalenessConfig.max_staleness": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StalenessConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StalenessConfig 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_StalenessConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.StalenessConfig", 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_StalenessConfig) 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_StalenessConfig) 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_StalenessConfig) 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_StalenessConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StalenessConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.WarningThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.WarningThreshold)) + } + if x.CriticalThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.CriticalThreshold)) + } + if x.MaxStaleness != 0 { + n += 1 + runtime.Sov(uint64(x.MaxStaleness)) + } + 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().(*StalenessConfig) + 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.MaxStaleness != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxStaleness)) + i-- + dAtA[i] = 0x18 + } + if x.CriticalThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CriticalThreshold)) + i-- + dAtA[i] = 0x10 + } + if x.WarningThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.WarningThreshold)) + i-- + dAtA[i] = 0x8 + } + 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().(*StalenessConfig) + 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: StalenessConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StalenessConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WarningThreshold", wireType) + } + x.WarningThreshold = 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.WarningThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CriticalThreshold", wireType) + } + x.CriticalThreshold = 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.CriticalThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + x.MaxStaleness = 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.MaxStaleness |= int64(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, + } +} + +var ( + md_NAVPayload protoreflect.MessageDescriptor + fd_NAVPayload_message_type protoreflect.FieldDescriptor + fd_NAVPayload_position_id protoreflect.FieldDescriptor + fd_NAVPayload_share_price protoreflect.FieldDescriptor + fd_NAVPayload_shares_held protoreflect.FieldDescriptor + fd_NAVPayload_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_NAVPayload = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("NAVPayload") + fd_NAVPayload_message_type = md_NAVPayload.Fields().ByName("message_type") + fd_NAVPayload_position_id = md_NAVPayload.Fields().ByName("position_id") + fd_NAVPayload_share_price = md_NAVPayload.Fields().ByName("share_price") + fd_NAVPayload_shares_held = md_NAVPayload.Fields().ByName("shares_held") + fd_NAVPayload_timestamp = md_NAVPayload.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_NAVPayload)(nil) + +type fastReflection_NAVPayload NAVPayload + +func (x *NAVPayload) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVPayload)(x) +} + +func (x *NAVPayload) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[5] + 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_NAVPayload_messageType fastReflection_NAVPayload_messageType +var _ protoreflect.MessageType = fastReflection_NAVPayload_messageType{} + +type fastReflection_NAVPayload_messageType struct{} + +func (x fastReflection_NAVPayload_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVPayload)(nil) +} +func (x fastReflection_NAVPayload_messageType) New() protoreflect.Message { + return new(fastReflection_NAVPayload) +} +func (x fastReflection_NAVPayload_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVPayload +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVPayload) Descriptor() protoreflect.MessageDescriptor { + return md_NAVPayload +} + +// 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_NAVPayload) Type() protoreflect.MessageType { + return _fastReflection_NAVPayload_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVPayload) New() protoreflect.Message { + return new(fastReflection_NAVPayload) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVPayload) Interface() protoreflect.ProtoMessage { + return (*NAVPayload)(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_NAVPayload) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MessageType != uint32(0) { + value := protoreflect.ValueOfUint32(x.MessageType) + if !f(fd_NAVPayload_message_type, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_NAVPayload_position_id, value) { + return + } + } + if x.SharePrice != "" { + value := protoreflect.ValueOfString(x.SharePrice) + if !f(fd_NAVPayload_share_price, value) { + return + } + } + if x.SharesHeld != "" { + value := protoreflect.ValueOfString(x.SharesHeld) + if !f(fd_NAVPayload_shares_held, value) { + return + } + } + if x.Timestamp != int64(0) { + value := protoreflect.ValueOfInt64(x.Timestamp) + if !f(fd_NAVPayload_timestamp, 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_NAVPayload) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVPayload.message_type": + return x.MessageType != uint32(0) + case "noble.dollar.vaults.v2.NAVPayload.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.NAVPayload.share_price": + return x.SharePrice != "" + case "noble.dollar.vaults.v2.NAVPayload.shares_held": + return x.SharesHeld != "" + case "noble.dollar.vaults.v2.NAVPayload.timestamp": + return x.Timestamp != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVPayload")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVPayload 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_NAVPayload) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVPayload.message_type": + x.MessageType = uint32(0) + case "noble.dollar.vaults.v2.NAVPayload.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.NAVPayload.share_price": + x.SharePrice = "" + case "noble.dollar.vaults.v2.NAVPayload.shares_held": + x.SharesHeld = "" + case "noble.dollar.vaults.v2.NAVPayload.timestamp": + x.Timestamp = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVPayload")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVPayload 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_NAVPayload) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVPayload.message_type": + value := x.MessageType + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.NAVPayload.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.NAVPayload.share_price": + value := x.SharePrice + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVPayload.shares_held": + value := x.SharesHeld + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVPayload.timestamp": + value := x.Timestamp + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVPayload")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVPayload 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_NAVPayload) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVPayload.message_type": + x.MessageType = uint32(value.Uint()) + case "noble.dollar.vaults.v2.NAVPayload.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.NAVPayload.share_price": + x.SharePrice = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVPayload.shares_held": + x.SharesHeld = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVPayload.timestamp": + x.Timestamp = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVPayload")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVPayload 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_NAVPayload) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVPayload.message_type": + panic(fmt.Errorf("field message_type of message noble.dollar.vaults.v2.NAVPayload is not mutable")) + case "noble.dollar.vaults.v2.NAVPayload.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.NAVPayload is not mutable")) + case "noble.dollar.vaults.v2.NAVPayload.share_price": + panic(fmt.Errorf("field share_price of message noble.dollar.vaults.v2.NAVPayload is not mutable")) + case "noble.dollar.vaults.v2.NAVPayload.shares_held": + panic(fmt.Errorf("field shares_held of message noble.dollar.vaults.v2.NAVPayload is not mutable")) + case "noble.dollar.vaults.v2.NAVPayload.timestamp": + panic(fmt.Errorf("field timestamp of message noble.dollar.vaults.v2.NAVPayload is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVPayload")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVPayload 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_NAVPayload) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVPayload.message_type": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.NAVPayload.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.NAVPayload.share_price": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVPayload.shares_held": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVPayload.timestamp": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVPayload")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVPayload 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_NAVPayload) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVPayload", 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_NAVPayload) 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_NAVPayload) 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_NAVPayload) 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_NAVPayload) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVPayload) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.MessageType != 0 { + n += 1 + runtime.Sov(uint64(x.MessageType)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.SharePrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharesHeld) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != 0 { + n += 1 + runtime.Sov(uint64(x.Timestamp)) + } + 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().(*NAVPayload) + 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.Timestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) + i-- + dAtA[i] = 0x28 + } + if len(x.SharesHeld) > 0 { + i -= len(x.SharesHeld) + copy(dAtA[i:], x.SharesHeld) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesHeld))) + i-- + dAtA[i] = 0x22 + } + if len(x.SharePrice) > 0 { + i -= len(x.SharePrice) + copy(dAtA[i:], x.SharePrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharePrice))) + i-- + dAtA[i] = 0x1a + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x10 + } + if x.MessageType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MessageType)) + i-- + dAtA[i] = 0x8 + } + 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().(*NAVPayload) + 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: NAVPayload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVPayload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType) + } + x.MessageType = 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.MessageType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharePrice", 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.SharePrice = 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 SharesHeld", 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.SharesHeld = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + x.Timestamp = 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.Timestamp |= int64(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, + } +} + +var ( + md_FallbackStrategy protoreflect.MessageDescriptor + fd_FallbackStrategy_use_last_known_good protoreflect.FieldDescriptor + fd_FallbackStrategy_max_cache_age protoreflect.FieldDescriptor + fd_FallbackStrategy_alert_threshold protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_FallbackStrategy = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("FallbackStrategy") + fd_FallbackStrategy_use_last_known_good = md_FallbackStrategy.Fields().ByName("use_last_known_good") + fd_FallbackStrategy_max_cache_age = md_FallbackStrategy.Fields().ByName("max_cache_age") + fd_FallbackStrategy_alert_threshold = md_FallbackStrategy.Fields().ByName("alert_threshold") +} + +var _ protoreflect.Message = (*fastReflection_FallbackStrategy)(nil) + +type fastReflection_FallbackStrategy FallbackStrategy + +func (x *FallbackStrategy) ProtoReflect() protoreflect.Message { + return (*fastReflection_FallbackStrategy)(x) +} + +func (x *FallbackStrategy) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[6] + 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_FallbackStrategy_messageType fastReflection_FallbackStrategy_messageType +var _ protoreflect.MessageType = fastReflection_FallbackStrategy_messageType{} + +type fastReflection_FallbackStrategy_messageType struct{} + +func (x fastReflection_FallbackStrategy_messageType) Zero() protoreflect.Message { + return (*fastReflection_FallbackStrategy)(nil) +} +func (x fastReflection_FallbackStrategy_messageType) New() protoreflect.Message { + return new(fastReflection_FallbackStrategy) +} +func (x fastReflection_FallbackStrategy_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_FallbackStrategy +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_FallbackStrategy) Descriptor() protoreflect.MessageDescriptor { + return md_FallbackStrategy +} + +// 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_FallbackStrategy) Type() protoreflect.MessageType { + return _fastReflection_FallbackStrategy_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_FallbackStrategy) New() protoreflect.Message { + return new(fastReflection_FallbackStrategy) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_FallbackStrategy) Interface() protoreflect.ProtoMessage { + return (*FallbackStrategy)(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_FallbackStrategy) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.UseLastKnownGood != false { + value := protoreflect.ValueOfBool(x.UseLastKnownGood) + if !f(fd_FallbackStrategy_use_last_known_good, value) { + return + } + } + if x.MaxCacheAge != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxCacheAge) + if !f(fd_FallbackStrategy_max_cache_age, value) { + return + } + } + if x.AlertThreshold != int64(0) { + value := protoreflect.ValueOfInt64(x.AlertThreshold) + if !f(fd_FallbackStrategy_alert_threshold, 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_FallbackStrategy) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FallbackStrategy.use_last_known_good": + return x.UseLastKnownGood != false + case "noble.dollar.vaults.v2.FallbackStrategy.max_cache_age": + return x.MaxCacheAge != int64(0) + case "noble.dollar.vaults.v2.FallbackStrategy.alert_threshold": + return x.AlertThreshold != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FallbackStrategy")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FallbackStrategy 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_FallbackStrategy) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FallbackStrategy.use_last_known_good": + x.UseLastKnownGood = false + case "noble.dollar.vaults.v2.FallbackStrategy.max_cache_age": + x.MaxCacheAge = int64(0) + case "noble.dollar.vaults.v2.FallbackStrategy.alert_threshold": + x.AlertThreshold = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FallbackStrategy")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FallbackStrategy 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_FallbackStrategy) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.FallbackStrategy.use_last_known_good": + value := x.UseLastKnownGood + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.FallbackStrategy.max_cache_age": + value := x.MaxCacheAge + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.FallbackStrategy.alert_threshold": + value := x.AlertThreshold + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FallbackStrategy")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FallbackStrategy 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_FallbackStrategy) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FallbackStrategy.use_last_known_good": + x.UseLastKnownGood = value.Bool() + case "noble.dollar.vaults.v2.FallbackStrategy.max_cache_age": + x.MaxCacheAge = value.Int() + case "noble.dollar.vaults.v2.FallbackStrategy.alert_threshold": + x.AlertThreshold = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FallbackStrategy")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FallbackStrategy 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_FallbackStrategy) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FallbackStrategy.use_last_known_good": + panic(fmt.Errorf("field use_last_known_good of message noble.dollar.vaults.v2.FallbackStrategy is not mutable")) + case "noble.dollar.vaults.v2.FallbackStrategy.max_cache_age": + panic(fmt.Errorf("field max_cache_age of message noble.dollar.vaults.v2.FallbackStrategy is not mutable")) + case "noble.dollar.vaults.v2.FallbackStrategy.alert_threshold": + panic(fmt.Errorf("field alert_threshold of message noble.dollar.vaults.v2.FallbackStrategy is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FallbackStrategy")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FallbackStrategy 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_FallbackStrategy) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.FallbackStrategy.use_last_known_good": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.FallbackStrategy.max_cache_age": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.FallbackStrategy.alert_threshold": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.FallbackStrategy")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.FallbackStrategy 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_FallbackStrategy) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.FallbackStrategy", 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_FallbackStrategy) 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_FallbackStrategy) 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_FallbackStrategy) 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_FallbackStrategy) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*FallbackStrategy) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.UseLastKnownGood { + n += 2 + } + if x.MaxCacheAge != 0 { + n += 1 + runtime.Sov(uint64(x.MaxCacheAge)) + } + if x.AlertThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.AlertThreshold)) + } + 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().(*FallbackStrategy) + 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.AlertThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AlertThreshold)) + i-- + dAtA[i] = 0x18 + } + if x.MaxCacheAge != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxCacheAge)) + i-- + dAtA[i] = 0x10 + } + if x.UseLastKnownGood { + i-- + if x.UseLastKnownGood { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + 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().(*FallbackStrategy) + 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: FallbackStrategy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: FallbackStrategy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UseLastKnownGood", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.UseLastKnownGood = bool(v != 0) + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxCacheAge", wireType) + } + x.MaxCacheAge = 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.MaxCacheAge |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AlertThreshold", wireType) + } + x.AlertThreshold = 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.AlertThreshold |= int64(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, + } +} + +var ( + md_OracleGovernanceParams protoreflect.MessageDescriptor + fd_OracleGovernanceParams_max_update_interval protoreflect.FieldDescriptor + fd_OracleGovernanceParams_min_update_interval protoreflect.FieldDescriptor + fd_OracleGovernanceParams_max_price_deviation_bps protoreflect.FieldDescriptor + fd_OracleGovernanceParams_default_staleness protoreflect.FieldDescriptor + fd_OracleGovernanceParams_default_fallback protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_OracleGovernanceParams = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("OracleGovernanceParams") + fd_OracleGovernanceParams_max_update_interval = md_OracleGovernanceParams.Fields().ByName("max_update_interval") + fd_OracleGovernanceParams_min_update_interval = md_OracleGovernanceParams.Fields().ByName("min_update_interval") + fd_OracleGovernanceParams_max_price_deviation_bps = md_OracleGovernanceParams.Fields().ByName("max_price_deviation_bps") + fd_OracleGovernanceParams_default_staleness = md_OracleGovernanceParams.Fields().ByName("default_staleness") + fd_OracleGovernanceParams_default_fallback = md_OracleGovernanceParams.Fields().ByName("default_fallback") +} + +var _ protoreflect.Message = (*fastReflection_OracleGovernanceParams)(nil) + +type fastReflection_OracleGovernanceParams OracleGovernanceParams + +func (x *OracleGovernanceParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_OracleGovernanceParams)(x) +} + +func (x *OracleGovernanceParams) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[7] + 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_OracleGovernanceParams_messageType fastReflection_OracleGovernanceParams_messageType +var _ protoreflect.MessageType = fastReflection_OracleGovernanceParams_messageType{} + +type fastReflection_OracleGovernanceParams_messageType struct{} + +func (x fastReflection_OracleGovernanceParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_OracleGovernanceParams)(nil) +} +func (x fastReflection_OracleGovernanceParams_messageType) New() protoreflect.Message { + return new(fastReflection_OracleGovernanceParams) +} +func (x fastReflection_OracleGovernanceParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OracleGovernanceParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OracleGovernanceParams) Descriptor() protoreflect.MessageDescriptor { + return md_OracleGovernanceParams +} + +// 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_OracleGovernanceParams) Type() protoreflect.MessageType { + return _fastReflection_OracleGovernanceParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OracleGovernanceParams) New() protoreflect.Message { + return new(fastReflection_OracleGovernanceParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OracleGovernanceParams) Interface() protoreflect.ProtoMessage { + return (*OracleGovernanceParams)(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_OracleGovernanceParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MaxUpdateInterval != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxUpdateInterval) + if !f(fd_OracleGovernanceParams_max_update_interval, value) { + return + } + } + if x.MinUpdateInterval != int64(0) { + value := protoreflect.ValueOfInt64(x.MinUpdateInterval) + if !f(fd_OracleGovernanceParams_min_update_interval, value) { + return + } + } + if x.MaxPriceDeviationBps != int32(0) { + value := protoreflect.ValueOfInt32(x.MaxPriceDeviationBps) + if !f(fd_OracleGovernanceParams_max_price_deviation_bps, value) { + return + } + } + if x.DefaultStaleness != nil { + value := protoreflect.ValueOfMessage(x.DefaultStaleness.ProtoReflect()) + if !f(fd_OracleGovernanceParams_default_staleness, value) { + return + } + } + if x.DefaultFallback != nil { + value := protoreflect.ValueOfMessage(x.DefaultFallback.ProtoReflect()) + if !f(fd_OracleGovernanceParams_default_fallback, 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_OracleGovernanceParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_update_interval": + return x.MaxUpdateInterval != int64(0) + case "noble.dollar.vaults.v2.OracleGovernanceParams.min_update_interval": + return x.MinUpdateInterval != int64(0) + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_price_deviation_bps": + return x.MaxPriceDeviationBps != int32(0) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness": + return x.DefaultStaleness != nil + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback": + return x.DefaultFallback != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleGovernanceParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleGovernanceParams 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_OracleGovernanceParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_update_interval": + x.MaxUpdateInterval = int64(0) + case "noble.dollar.vaults.v2.OracleGovernanceParams.min_update_interval": + x.MinUpdateInterval = int64(0) + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_price_deviation_bps": + x.MaxPriceDeviationBps = int32(0) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness": + x.DefaultStaleness = nil + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback": + x.DefaultFallback = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleGovernanceParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleGovernanceParams 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_OracleGovernanceParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_update_interval": + value := x.MaxUpdateInterval + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.OracleGovernanceParams.min_update_interval": + value := x.MinUpdateInterval + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_price_deviation_bps": + value := x.MaxPriceDeviationBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness": + value := x.DefaultStaleness + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback": + value := x.DefaultFallback + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleGovernanceParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleGovernanceParams 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_OracleGovernanceParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_update_interval": + x.MaxUpdateInterval = value.Int() + case "noble.dollar.vaults.v2.OracleGovernanceParams.min_update_interval": + x.MinUpdateInterval = value.Int() + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_price_deviation_bps": + x.MaxPriceDeviationBps = int32(value.Int()) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness": + x.DefaultStaleness = value.Message().Interface().(*StalenessConfig) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback": + x.DefaultFallback = value.Message().Interface().(*FallbackStrategy) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleGovernanceParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleGovernanceParams 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_OracleGovernanceParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness": + if x.DefaultStaleness == nil { + x.DefaultStaleness = new(StalenessConfig) + } + return protoreflect.ValueOfMessage(x.DefaultStaleness.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback": + if x.DefaultFallback == nil { + x.DefaultFallback = new(FallbackStrategy) + } + return protoreflect.ValueOfMessage(x.DefaultFallback.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_update_interval": + panic(fmt.Errorf("field max_update_interval of message noble.dollar.vaults.v2.OracleGovernanceParams is not mutable")) + case "noble.dollar.vaults.v2.OracleGovernanceParams.min_update_interval": + panic(fmt.Errorf("field min_update_interval of message noble.dollar.vaults.v2.OracleGovernanceParams is not mutable")) + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_price_deviation_bps": + panic(fmt.Errorf("field max_price_deviation_bps of message noble.dollar.vaults.v2.OracleGovernanceParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleGovernanceParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleGovernanceParams 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_OracleGovernanceParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_update_interval": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.OracleGovernanceParams.min_update_interval": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.OracleGovernanceParams.max_price_deviation_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness": + m := new(StalenessConfig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback": + m := new(FallbackStrategy) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleGovernanceParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleGovernanceParams 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_OracleGovernanceParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.OracleGovernanceParams", 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_OracleGovernanceParams) 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_OracleGovernanceParams) 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_OracleGovernanceParams) 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_OracleGovernanceParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OracleGovernanceParams) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.MaxUpdateInterval != 0 { + n += 1 + runtime.Sov(uint64(x.MaxUpdateInterval)) + } + if x.MinUpdateInterval != 0 { + n += 1 + runtime.Sov(uint64(x.MinUpdateInterval)) + } + if x.MaxPriceDeviationBps != 0 { + n += 1 + runtime.Sov(uint64(x.MaxPriceDeviationBps)) + } + if x.DefaultStaleness != nil { + l = options.Size(x.DefaultStaleness) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DefaultFallback != nil { + l = options.Size(x.DefaultFallback) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*OracleGovernanceParams) + 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.DefaultFallback != nil { + encoded, err := options.Marshal(x.DefaultFallback) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.DefaultStaleness != nil { + encoded, err := options.Marshal(x.DefaultStaleness) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.MaxPriceDeviationBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxPriceDeviationBps)) + i-- + dAtA[i] = 0x18 + } + if x.MinUpdateInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MinUpdateInterval)) + i-- + dAtA[i] = 0x10 + } + if x.MaxUpdateInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxUpdateInterval)) + i-- + dAtA[i] = 0x8 + } + 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().(*OracleGovernanceParams) + 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: OracleGovernanceParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OracleGovernanceParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxUpdateInterval", wireType) + } + x.MaxUpdateInterval = 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.MaxUpdateInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinUpdateInterval", wireType) + } + x.MinUpdateInterval = 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.MinUpdateInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxPriceDeviationBps", wireType) + } + x.MaxPriceDeviationBps = 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.MaxPriceDeviationBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultStaleness", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.DefaultStaleness == nil { + x.DefaultStaleness = &StalenessConfig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DefaultStaleness); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultFallback", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.DefaultFallback == nil { + x.DefaultFallback = &FallbackStrategy{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DefaultFallback); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_AlertConfig protoreflect.MessageDescriptor + fd_AlertConfig_stale_data_threshold protoreflect.FieldDescriptor + fd_AlertConfig_price_deviation_threshold protoreflect.FieldDescriptor + fd_AlertConfig_failed_update_threshold protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_AlertConfig = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("AlertConfig") + fd_AlertConfig_stale_data_threshold = md_AlertConfig.Fields().ByName("stale_data_threshold") + fd_AlertConfig_price_deviation_threshold = md_AlertConfig.Fields().ByName("price_deviation_threshold") + fd_AlertConfig_failed_update_threshold = md_AlertConfig.Fields().ByName("failed_update_threshold") +} + +var _ protoreflect.Message = (*fastReflection_AlertConfig)(nil) + +type fastReflection_AlertConfig AlertConfig + +func (x *AlertConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_AlertConfig)(x) +} + +func (x *AlertConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[8] + 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_AlertConfig_messageType fastReflection_AlertConfig_messageType +var _ protoreflect.MessageType = fastReflection_AlertConfig_messageType{} + +type fastReflection_AlertConfig_messageType struct{} + +func (x fastReflection_AlertConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_AlertConfig)(nil) +} +func (x fastReflection_AlertConfig_messageType) New() protoreflect.Message { + return new(fastReflection_AlertConfig) +} +func (x fastReflection_AlertConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_AlertConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_AlertConfig) Descriptor() protoreflect.MessageDescriptor { + return md_AlertConfig +} + +// 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_AlertConfig) Type() protoreflect.MessageType { + return _fastReflection_AlertConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_AlertConfig) New() protoreflect.Message { + return new(fastReflection_AlertConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_AlertConfig) Interface() protoreflect.ProtoMessage { + return (*AlertConfig)(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_AlertConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.StaleDataThreshold != int64(0) { + value := protoreflect.ValueOfInt64(x.StaleDataThreshold) + if !f(fd_AlertConfig_stale_data_threshold, value) { + return + } + } + if x.PriceDeviationThreshold != int32(0) { + value := protoreflect.ValueOfInt32(x.PriceDeviationThreshold) + if !f(fd_AlertConfig_price_deviation_threshold, value) { + return + } + } + if x.FailedUpdateThreshold != int32(0) { + value := protoreflect.ValueOfInt32(x.FailedUpdateThreshold) + if !f(fd_AlertConfig_failed_update_threshold, 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_AlertConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.AlertConfig.stale_data_threshold": + return x.StaleDataThreshold != int64(0) + case "noble.dollar.vaults.v2.AlertConfig.price_deviation_threshold": + return x.PriceDeviationThreshold != int32(0) + case "noble.dollar.vaults.v2.AlertConfig.failed_update_threshold": + return x.FailedUpdateThreshold != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.AlertConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.AlertConfig 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_AlertConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.AlertConfig.stale_data_threshold": + x.StaleDataThreshold = int64(0) + case "noble.dollar.vaults.v2.AlertConfig.price_deviation_threshold": + x.PriceDeviationThreshold = int32(0) + case "noble.dollar.vaults.v2.AlertConfig.failed_update_threshold": + x.FailedUpdateThreshold = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.AlertConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.AlertConfig 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_AlertConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.AlertConfig.stale_data_threshold": + value := x.StaleDataThreshold + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.AlertConfig.price_deviation_threshold": + value := x.PriceDeviationThreshold + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.AlertConfig.failed_update_threshold": + value := x.FailedUpdateThreshold + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.AlertConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.AlertConfig 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_AlertConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.AlertConfig.stale_data_threshold": + x.StaleDataThreshold = value.Int() + case "noble.dollar.vaults.v2.AlertConfig.price_deviation_threshold": + x.PriceDeviationThreshold = int32(value.Int()) + case "noble.dollar.vaults.v2.AlertConfig.failed_update_threshold": + x.FailedUpdateThreshold = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.AlertConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.AlertConfig 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_AlertConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.AlertConfig.stale_data_threshold": + panic(fmt.Errorf("field stale_data_threshold of message noble.dollar.vaults.v2.AlertConfig is not mutable")) + case "noble.dollar.vaults.v2.AlertConfig.price_deviation_threshold": + panic(fmt.Errorf("field price_deviation_threshold of message noble.dollar.vaults.v2.AlertConfig is not mutable")) + case "noble.dollar.vaults.v2.AlertConfig.failed_update_threshold": + panic(fmt.Errorf("field failed_update_threshold of message noble.dollar.vaults.v2.AlertConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.AlertConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.AlertConfig 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_AlertConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.AlertConfig.stale_data_threshold": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.AlertConfig.price_deviation_threshold": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.AlertConfig.failed_update_threshold": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.AlertConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.AlertConfig 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_AlertConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.AlertConfig", 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_AlertConfig) 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_AlertConfig) 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_AlertConfig) 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_AlertConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*AlertConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.StaleDataThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.StaleDataThreshold)) + } + if x.PriceDeviationThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.PriceDeviationThreshold)) + } + if x.FailedUpdateThreshold != 0 { + n += 1 + runtime.Sov(uint64(x.FailedUpdateThreshold)) + } + 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().(*AlertConfig) + 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.FailedUpdateThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FailedUpdateThreshold)) + i-- + dAtA[i] = 0x18 + } + if x.PriceDeviationThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PriceDeviationThreshold)) + i-- + dAtA[i] = 0x10 + } + if x.StaleDataThreshold != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.StaleDataThreshold)) + i-- + dAtA[i] = 0x8 + } + 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().(*AlertConfig) + 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: AlertConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AlertConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StaleDataThreshold", wireType) + } + x.StaleDataThreshold = 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.StaleDataThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PriceDeviationThreshold", wireType) + } + x.PriceDeviationThreshold = 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.PriceDeviationThreshold |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FailedUpdateThreshold", wireType) + } + x.FailedUpdateThreshold = 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.FailedUpdateThreshold |= int32(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, + } +} + +var ( + md_OracleStatus protoreflect.MessageDescriptor + fd_OracleStatus_oracle_id protoreflect.FieldDescriptor + fd_OracleStatus_position_id protoreflect.FieldDescriptor + fd_OracleStatus_last_success protoreflect.FieldDescriptor + fd_OracleStatus_consecutive_failures protoreflect.FieldDescriptor + fd_OracleStatus_is_healthy protoreflect.FieldDescriptor + fd_OracleStatus_staleness_level protoreflect.FieldDescriptor + fd_OracleStatus_last_error protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_OracleStatus = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("OracleStatus") + fd_OracleStatus_oracle_id = md_OracleStatus.Fields().ByName("oracle_id") + fd_OracleStatus_position_id = md_OracleStatus.Fields().ByName("position_id") + fd_OracleStatus_last_success = md_OracleStatus.Fields().ByName("last_success") + fd_OracleStatus_consecutive_failures = md_OracleStatus.Fields().ByName("consecutive_failures") + fd_OracleStatus_is_healthy = md_OracleStatus.Fields().ByName("is_healthy") + fd_OracleStatus_staleness_level = md_OracleStatus.Fields().ByName("staleness_level") + fd_OracleStatus_last_error = md_OracleStatus.Fields().ByName("last_error") +} + +var _ protoreflect.Message = (*fastReflection_OracleStatus)(nil) + +type fastReflection_OracleStatus OracleStatus + +func (x *OracleStatus) ProtoReflect() protoreflect.Message { + return (*fastReflection_OracleStatus)(x) +} + +func (x *OracleStatus) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[9] + 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_OracleStatus_messageType fastReflection_OracleStatus_messageType +var _ protoreflect.MessageType = fastReflection_OracleStatus_messageType{} + +type fastReflection_OracleStatus_messageType struct{} + +func (x fastReflection_OracleStatus_messageType) Zero() protoreflect.Message { + return (*fastReflection_OracleStatus)(nil) +} +func (x fastReflection_OracleStatus_messageType) New() protoreflect.Message { + return new(fastReflection_OracleStatus) +} +func (x fastReflection_OracleStatus_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OracleStatus +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OracleStatus) Descriptor() protoreflect.MessageDescriptor { + return md_OracleStatus +} + +// 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_OracleStatus) Type() protoreflect.MessageType { + return _fastReflection_OracleStatus_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OracleStatus) New() protoreflect.Message { + return new(fastReflection_OracleStatus) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OracleStatus) Interface() protoreflect.ProtoMessage { + return (*OracleStatus)(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_OracleStatus) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OracleId != "" { + value := protoreflect.ValueOfString(x.OracleId) + if !f(fd_OracleStatus_oracle_id, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_OracleStatus_position_id, value) { + return + } + } + if x.LastSuccess != nil { + value := protoreflect.ValueOfMessage(x.LastSuccess.ProtoReflect()) + if !f(fd_OracleStatus_last_success, value) { + return + } + } + if x.ConsecutiveFailures != int32(0) { + value := protoreflect.ValueOfInt32(x.ConsecutiveFailures) + if !f(fd_OracleStatus_consecutive_failures, value) { + return + } + } + if x.IsHealthy != false { + value := protoreflect.ValueOfBool(x.IsHealthy) + if !f(fd_OracleStatus_is_healthy, value) { + return + } + } + if x.StalenessLevel != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.StalenessLevel)) + if !f(fd_OracleStatus_staleness_level, value) { + return + } + } + if x.LastError != "" { + value := protoreflect.ValueOfString(x.LastError) + if !f(fd_OracleStatus_last_error, 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_OracleStatus) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleStatus.oracle_id": + return x.OracleId != "" + case "noble.dollar.vaults.v2.OracleStatus.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.OracleStatus.last_success": + return x.LastSuccess != nil + case "noble.dollar.vaults.v2.OracleStatus.consecutive_failures": + return x.ConsecutiveFailures != int32(0) + case "noble.dollar.vaults.v2.OracleStatus.is_healthy": + return x.IsHealthy != false + case "noble.dollar.vaults.v2.OracleStatus.staleness_level": + return x.StalenessLevel != 0 + case "noble.dollar.vaults.v2.OracleStatus.last_error": + return x.LastError != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleStatus")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleStatus 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_OracleStatus) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleStatus.oracle_id": + x.OracleId = "" + case "noble.dollar.vaults.v2.OracleStatus.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.OracleStatus.last_success": + x.LastSuccess = nil + case "noble.dollar.vaults.v2.OracleStatus.consecutive_failures": + x.ConsecutiveFailures = int32(0) + case "noble.dollar.vaults.v2.OracleStatus.is_healthy": + x.IsHealthy = false + case "noble.dollar.vaults.v2.OracleStatus.staleness_level": + x.StalenessLevel = 0 + case "noble.dollar.vaults.v2.OracleStatus.last_error": + x.LastError = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleStatus")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleStatus 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_OracleStatus) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.OracleStatus.oracle_id": + value := x.OracleId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.OracleStatus.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.OracleStatus.last_success": + value := x.LastSuccess + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleStatus.consecutive_failures": + value := x.ConsecutiveFailures + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.OracleStatus.is_healthy": + value := x.IsHealthy + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.OracleStatus.staleness_level": + value := x.StalenessLevel + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.OracleStatus.last_error": + value := x.LastError + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleStatus")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleStatus 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_OracleStatus) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleStatus.oracle_id": + x.OracleId = value.Interface().(string) + case "noble.dollar.vaults.v2.OracleStatus.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.OracleStatus.last_success": + x.LastSuccess = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.OracleStatus.consecutive_failures": + x.ConsecutiveFailures = int32(value.Int()) + case "noble.dollar.vaults.v2.OracleStatus.is_healthy": + x.IsHealthy = value.Bool() + case "noble.dollar.vaults.v2.OracleStatus.staleness_level": + x.StalenessLevel = (StalenessLevel)(value.Enum()) + case "noble.dollar.vaults.v2.OracleStatus.last_error": + x.LastError = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleStatus")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleStatus 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_OracleStatus) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleStatus.last_success": + if x.LastSuccess == nil { + x.LastSuccess = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastSuccess.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleStatus.oracle_id": + panic(fmt.Errorf("field oracle_id of message noble.dollar.vaults.v2.OracleStatus is not mutable")) + case "noble.dollar.vaults.v2.OracleStatus.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.OracleStatus is not mutable")) + case "noble.dollar.vaults.v2.OracleStatus.consecutive_failures": + panic(fmt.Errorf("field consecutive_failures of message noble.dollar.vaults.v2.OracleStatus is not mutable")) + case "noble.dollar.vaults.v2.OracleStatus.is_healthy": + panic(fmt.Errorf("field is_healthy of message noble.dollar.vaults.v2.OracleStatus is not mutable")) + case "noble.dollar.vaults.v2.OracleStatus.staleness_level": + panic(fmt.Errorf("field staleness_level of message noble.dollar.vaults.v2.OracleStatus is not mutable")) + case "noble.dollar.vaults.v2.OracleStatus.last_error": + panic(fmt.Errorf("field last_error of message noble.dollar.vaults.v2.OracleStatus is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleStatus")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleStatus 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_OracleStatus) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleStatus.oracle_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.OracleStatus.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.OracleStatus.last_success": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.OracleStatus.consecutive_failures": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.OracleStatus.is_healthy": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.OracleStatus.staleness_level": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.OracleStatus.last_error": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleStatus")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleStatus 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_OracleStatus) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.OracleStatus", 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_OracleStatus) 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_OracleStatus) 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_OracleStatus) 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_OracleStatus) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OracleStatus) + 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.OracleId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.LastSuccess != nil { + l = options.Size(x.LastSuccess) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ConsecutiveFailures != 0 { + n += 1 + runtime.Sov(uint64(x.ConsecutiveFailures)) + } + if x.IsHealthy { + n += 2 + } + if x.StalenessLevel != 0 { + n += 1 + runtime.Sov(uint64(x.StalenessLevel)) + } + l = len(x.LastError) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*OracleStatus) + 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 len(x.LastError) > 0 { + i -= len(x.LastError) + copy(dAtA[i:], x.LastError) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastError))) + i-- + dAtA[i] = 0x3a + } + if x.StalenessLevel != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.StalenessLevel)) + i-- + dAtA[i] = 0x30 + } + if x.IsHealthy { + i-- + if x.IsHealthy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if x.ConsecutiveFailures != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ConsecutiveFailures)) + i-- + dAtA[i] = 0x20 + } + if x.LastSuccess != nil { + encoded, err := options.Marshal(x.LastSuccess) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(x.OracleId) > 0 { + i -= len(x.OracleId) + copy(dAtA[i:], x.OracleId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleId))) + 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().(*OracleStatus) + 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: OracleStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OracleStatus: 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 OracleId", 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.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastSuccess", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastSuccess == nil { + x.LastSuccess = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastSuccess); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveFailures", wireType) + } + x.ConsecutiveFailures = 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.ConsecutiveFailures |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsHealthy", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.IsHealthy = bool(v != 0) + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StalenessLevel", wireType) + } + x.StalenessLevel = 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.StalenessLevel |= StalenessLevel(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastError", 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.LastError = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_CrossChainOracleMessage protoreflect.MessageDescriptor + fd_CrossChainOracleMessage_mailbox_id protoreflect.FieldDescriptor + fd_CrossChainOracleMessage_source_chain protoreflect.FieldDescriptor + fd_CrossChainOracleMessage_sender protoreflect.FieldDescriptor + fd_CrossChainOracleMessage_metadata protoreflect.FieldDescriptor + fd_CrossChainOracleMessage_payload protoreflect.FieldDescriptor + fd_CrossChainOracleMessage_received_at protoreflect.FieldDescriptor + fd_CrossChainOracleMessage_provider_type protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_CrossChainOracleMessage = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("CrossChainOracleMessage") + fd_CrossChainOracleMessage_mailbox_id = md_CrossChainOracleMessage.Fields().ByName("mailbox_id") + fd_CrossChainOracleMessage_source_chain = md_CrossChainOracleMessage.Fields().ByName("source_chain") + fd_CrossChainOracleMessage_sender = md_CrossChainOracleMessage.Fields().ByName("sender") + fd_CrossChainOracleMessage_metadata = md_CrossChainOracleMessage.Fields().ByName("metadata") + fd_CrossChainOracleMessage_payload = md_CrossChainOracleMessage.Fields().ByName("payload") + fd_CrossChainOracleMessage_received_at = md_CrossChainOracleMessage.Fields().ByName("received_at") + fd_CrossChainOracleMessage_provider_type = md_CrossChainOracleMessage.Fields().ByName("provider_type") +} + +var _ protoreflect.Message = (*fastReflection_CrossChainOracleMessage)(nil) + +type fastReflection_CrossChainOracleMessage CrossChainOracleMessage + +func (x *CrossChainOracleMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_CrossChainOracleMessage)(x) +} + +func (x *CrossChainOracleMessage) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[10] + 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_CrossChainOracleMessage_messageType fastReflection_CrossChainOracleMessage_messageType +var _ protoreflect.MessageType = fastReflection_CrossChainOracleMessage_messageType{} + +type fastReflection_CrossChainOracleMessage_messageType struct{} + +func (x fastReflection_CrossChainOracleMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_CrossChainOracleMessage)(nil) +} +func (x fastReflection_CrossChainOracleMessage_messageType) New() protoreflect.Message { + return new(fastReflection_CrossChainOracleMessage) +} +func (x fastReflection_CrossChainOracleMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainOracleMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CrossChainOracleMessage) Descriptor() protoreflect.MessageDescriptor { + return md_CrossChainOracleMessage +} + +// 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_CrossChainOracleMessage) Type() protoreflect.MessageType { + return _fastReflection_CrossChainOracleMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CrossChainOracleMessage) New() protoreflect.Message { + return new(fastReflection_CrossChainOracleMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CrossChainOracleMessage) Interface() protoreflect.ProtoMessage { + return (*CrossChainOracleMessage)(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_CrossChainOracleMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.MailboxId) != 0 { + value := protoreflect.ValueOfBytes(x.MailboxId) + if !f(fd_CrossChainOracleMessage_mailbox_id, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_CrossChainOracleMessage_source_chain, value) { + return + } + } + if len(x.Sender) != 0 { + value := protoreflect.ValueOfBytes(x.Sender) + if !f(fd_CrossChainOracleMessage_sender, value) { + return + } + } + if len(x.Metadata) != 0 { + value := protoreflect.ValueOfBytes(x.Metadata) + if !f(fd_CrossChainOracleMessage_metadata, value) { + return + } + } + if len(x.Payload) != 0 { + value := protoreflect.ValueOfBytes(x.Payload) + if !f(fd_CrossChainOracleMessage_payload, value) { + return + } + } + if x.ReceivedAt != nil { + value := protoreflect.ValueOfMessage(x.ReceivedAt.ProtoReflect()) + if !f(fd_CrossChainOracleMessage_received_at, value) { + return + } + } + if x.ProviderType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.ProviderType)) + if !f(fd_CrossChainOracleMessage_provider_type, 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_CrossChainOracleMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainOracleMessage.mailbox_id": + return len(x.MailboxId) != 0 + case "noble.dollar.vaults.v2.CrossChainOracleMessage.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.CrossChainOracleMessage.sender": + return len(x.Sender) != 0 + case "noble.dollar.vaults.v2.CrossChainOracleMessage.metadata": + return len(x.Metadata) != 0 + case "noble.dollar.vaults.v2.CrossChainOracleMessage.payload": + return len(x.Payload) != 0 + case "noble.dollar.vaults.v2.CrossChainOracleMessage.received_at": + return x.ReceivedAt != nil + case "noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type": + return x.ProviderType != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainOracleMessage")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainOracleMessage 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_CrossChainOracleMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainOracleMessage.mailbox_id": + x.MailboxId = nil + case "noble.dollar.vaults.v2.CrossChainOracleMessage.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.CrossChainOracleMessage.sender": + x.Sender = nil + case "noble.dollar.vaults.v2.CrossChainOracleMessage.metadata": + x.Metadata = nil + case "noble.dollar.vaults.v2.CrossChainOracleMessage.payload": + x.Payload = nil + case "noble.dollar.vaults.v2.CrossChainOracleMessage.received_at": + x.ReceivedAt = nil + case "noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type": + x.ProviderType = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainOracleMessage")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainOracleMessage 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_CrossChainOracleMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.CrossChainOracleMessage.mailbox_id": + value := x.MailboxId + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.sender": + value := x.Sender + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.metadata": + value := x.Metadata + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.payload": + value := x.Payload + return protoreflect.ValueOfBytes(value) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.received_at": + value := x.ReceivedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type": + value := x.ProviderType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainOracleMessage")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainOracleMessage 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_CrossChainOracleMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainOracleMessage.mailbox_id": + x.MailboxId = value.Bytes() + case "noble.dollar.vaults.v2.CrossChainOracleMessage.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.sender": + x.Sender = value.Bytes() + case "noble.dollar.vaults.v2.CrossChainOracleMessage.metadata": + x.Metadata = value.Bytes() + case "noble.dollar.vaults.v2.CrossChainOracleMessage.payload": + x.Payload = value.Bytes() + case "noble.dollar.vaults.v2.CrossChainOracleMessage.received_at": + x.ReceivedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type": + x.ProviderType = (ProviderType)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainOracleMessage")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainOracleMessage 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_CrossChainOracleMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainOracleMessage.received_at": + if x.ReceivedAt == nil { + x.ReceivedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ReceivedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.mailbox_id": + panic(fmt.Errorf("field mailbox_id of message noble.dollar.vaults.v2.CrossChainOracleMessage is not mutable")) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.CrossChainOracleMessage is not mutable")) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.sender": + panic(fmt.Errorf("field sender of message noble.dollar.vaults.v2.CrossChainOracleMessage is not mutable")) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.metadata": + panic(fmt.Errorf("field metadata of message noble.dollar.vaults.v2.CrossChainOracleMessage is not mutable")) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.payload": + panic(fmt.Errorf("field payload of message noble.dollar.vaults.v2.CrossChainOracleMessage is not mutable")) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type": + panic(fmt.Errorf("field provider_type of message noble.dollar.vaults.v2.CrossChainOracleMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainOracleMessage")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainOracleMessage 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_CrossChainOracleMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CrossChainOracleMessage.mailbox_id": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.CrossChainOracleMessage.sender": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.metadata": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.payload": + return protoreflect.ValueOfBytes(nil) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.received_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CrossChainOracleMessage")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CrossChainOracleMessage 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_CrossChainOracleMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.CrossChainOracleMessage", 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_CrossChainOracleMessage) 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_CrossChainOracleMessage) 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_CrossChainOracleMessage) 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_CrossChainOracleMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CrossChainOracleMessage) + 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.MailboxId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Payload) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ReceivedAt != nil { + l = options.Size(x.ReceivedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ProviderType != 0 { + n += 1 + runtime.Sov(uint64(x.ProviderType)) + } + 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().(*CrossChainOracleMessage) + 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.ProviderType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ProviderType)) + i-- + dAtA[i] = 0x38 + } + if x.ReceivedAt != nil { + encoded, err := options.Marshal(x.ReceivedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.Payload) > 0 { + i -= len(x.Payload) + copy(dAtA[i:], x.Payload) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Payload))) + i-- + dAtA[i] = 0x2a + } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x22 + } + if len(x.Sender) > 0 { + i -= len(x.Sender) + copy(dAtA[i:], x.Sender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) + i-- + dAtA[i] = 0x1a + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x12 + } + if len(x.MailboxId) > 0 { + i -= len(x.MailboxId) + copy(dAtA[i:], x.MailboxId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MailboxId))) + 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().(*CrossChainOracleMessage) + 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: CrossChainOracleMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CrossChainOracleMessage: 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 MailboxId", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.MailboxId = append(x.MailboxId[:0], dAtA[iNdEx:postIndex]...) + if x.MailboxId == nil { + x.MailboxId = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = 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 Sender", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Sender = append(x.Sender[:0], dAtA[iNdEx:postIndex]...) + if x.Sender == nil { + x.Sender = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Metadata = append(x.Metadata[:0], dAtA[iNdEx:postIndex]...) + if x.Metadata == nil { + x.Metadata = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var byteLen int + 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Payload = append(x.Payload[:0], dAtA[iNdEx:postIndex]...) + if x.Payload == nil { + x.Payload = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ReceivedAt == nil { + x.ReceivedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReceivedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderType", wireType) + } + x.ProviderType = 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.ProviderType |= ProviderType(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, + } +} + +var ( + md_OracleUpdateResult protoreflect.MessageDescriptor + fd_OracleUpdateResult_position_id protoreflect.FieldDescriptor + fd_OracleUpdateResult_new_share_price protoreflect.FieldDescriptor + fd_OracleUpdateResult_new_shares protoreflect.FieldDescriptor + fd_OracleUpdateResult_position_value protoreflect.FieldDescriptor + fd_OracleUpdateResult_updated_nav protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_OracleUpdateResult = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("OracleUpdateResult") + fd_OracleUpdateResult_position_id = md_OracleUpdateResult.Fields().ByName("position_id") + fd_OracleUpdateResult_new_share_price = md_OracleUpdateResult.Fields().ByName("new_share_price") + fd_OracleUpdateResult_new_shares = md_OracleUpdateResult.Fields().ByName("new_shares") + fd_OracleUpdateResult_position_value = md_OracleUpdateResult.Fields().ByName("position_value") + fd_OracleUpdateResult_updated_nav = md_OracleUpdateResult.Fields().ByName("updated_nav") +} + +var _ protoreflect.Message = (*fastReflection_OracleUpdateResult)(nil) + +type fastReflection_OracleUpdateResult OracleUpdateResult + +func (x *OracleUpdateResult) ProtoReflect() protoreflect.Message { + return (*fastReflection_OracleUpdateResult)(x) +} + +func (x *OracleUpdateResult) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[11] + 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_OracleUpdateResult_messageType fastReflection_OracleUpdateResult_messageType +var _ protoreflect.MessageType = fastReflection_OracleUpdateResult_messageType{} + +type fastReflection_OracleUpdateResult_messageType struct{} + +func (x fastReflection_OracleUpdateResult_messageType) Zero() protoreflect.Message { + return (*fastReflection_OracleUpdateResult)(nil) +} +func (x fastReflection_OracleUpdateResult_messageType) New() protoreflect.Message { + return new(fastReflection_OracleUpdateResult) +} +func (x fastReflection_OracleUpdateResult_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OracleUpdateResult +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OracleUpdateResult) Descriptor() protoreflect.MessageDescriptor { + return md_OracleUpdateResult +} + +// 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_OracleUpdateResult) Type() protoreflect.MessageType { + return _fastReflection_OracleUpdateResult_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OracleUpdateResult) New() protoreflect.Message { + return new(fastReflection_OracleUpdateResult) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OracleUpdateResult) Interface() protoreflect.ProtoMessage { + return (*OracleUpdateResult)(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_OracleUpdateResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_OracleUpdateResult_position_id, value) { + return + } + } + if x.NewSharePrice != "" { + value := protoreflect.ValueOfString(x.NewSharePrice) + if !f(fd_OracleUpdateResult_new_share_price, value) { + return + } + } + if x.NewShares != "" { + value := protoreflect.ValueOfString(x.NewShares) + if !f(fd_OracleUpdateResult_new_shares, value) { + return + } + } + if x.PositionValue != "" { + value := protoreflect.ValueOfString(x.PositionValue) + if !f(fd_OracleUpdateResult_position_value, value) { + return + } + } + if x.UpdatedNav != "" { + value := protoreflect.ValueOfString(x.UpdatedNav) + if !f(fd_OracleUpdateResult_updated_nav, 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_OracleUpdateResult) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleUpdateResult.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_share_price": + return x.NewSharePrice != "" + case "noble.dollar.vaults.v2.OracleUpdateResult.new_shares": + return x.NewShares != "" + case "noble.dollar.vaults.v2.OracleUpdateResult.position_value": + return x.PositionValue != "" + case "noble.dollar.vaults.v2.OracleUpdateResult.updated_nav": + return x.UpdatedNav != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleUpdateResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleUpdateResult 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_OracleUpdateResult) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleUpdateResult.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_share_price": + x.NewSharePrice = "" + case "noble.dollar.vaults.v2.OracleUpdateResult.new_shares": + x.NewShares = "" + case "noble.dollar.vaults.v2.OracleUpdateResult.position_value": + x.PositionValue = "" + case "noble.dollar.vaults.v2.OracleUpdateResult.updated_nav": + x.UpdatedNav = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleUpdateResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleUpdateResult 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_OracleUpdateResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.OracleUpdateResult.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_share_price": + value := x.NewSharePrice + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_shares": + value := x.NewShares + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.OracleUpdateResult.position_value": + value := x.PositionValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.OracleUpdateResult.updated_nav": + value := x.UpdatedNav + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleUpdateResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleUpdateResult 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_OracleUpdateResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleUpdateResult.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.OracleUpdateResult.new_share_price": + x.NewSharePrice = value.Interface().(string) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_shares": + x.NewShares = value.Interface().(string) + case "noble.dollar.vaults.v2.OracleUpdateResult.position_value": + x.PositionValue = value.Interface().(string) + case "noble.dollar.vaults.v2.OracleUpdateResult.updated_nav": + x.UpdatedNav = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleUpdateResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleUpdateResult 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_OracleUpdateResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleUpdateResult.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.OracleUpdateResult is not mutable")) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_share_price": + panic(fmt.Errorf("field new_share_price of message noble.dollar.vaults.v2.OracleUpdateResult is not mutable")) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_shares": + panic(fmt.Errorf("field new_shares of message noble.dollar.vaults.v2.OracleUpdateResult is not mutable")) + case "noble.dollar.vaults.v2.OracleUpdateResult.position_value": + panic(fmt.Errorf("field position_value of message noble.dollar.vaults.v2.OracleUpdateResult is not mutable")) + case "noble.dollar.vaults.v2.OracleUpdateResult.updated_nav": + panic(fmt.Errorf("field updated_nav of message noble.dollar.vaults.v2.OracleUpdateResult is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleUpdateResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleUpdateResult 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_OracleUpdateResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.OracleUpdateResult.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.OracleUpdateResult.new_share_price": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.OracleUpdateResult.new_shares": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.OracleUpdateResult.position_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.OracleUpdateResult.updated_nav": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.OracleUpdateResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.OracleUpdateResult 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_OracleUpdateResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.OracleUpdateResult", 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_OracleUpdateResult) 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_OracleUpdateResult) 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_OracleUpdateResult) 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_OracleUpdateResult) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OracleUpdateResult) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.NewSharePrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewShares) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PositionValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.UpdatedNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*OracleUpdateResult) + 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 len(x.UpdatedNav) > 0 { + i -= len(x.UpdatedNav) + copy(dAtA[i:], x.UpdatedNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UpdatedNav))) + i-- + dAtA[i] = 0x2a + } + if len(x.PositionValue) > 0 { + i -= len(x.PositionValue) + copy(dAtA[i:], x.PositionValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PositionValue))) + i-- + dAtA[i] = 0x22 + } + if len(x.NewShares) > 0 { + i -= len(x.NewShares) + copy(dAtA[i:], x.NewShares) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewShares))) + i-- + dAtA[i] = 0x1a + } + if len(x.NewSharePrice) > 0 { + i -= len(x.NewSharePrice) + copy(dAtA[i:], x.NewSharePrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewSharePrice))) + i-- + dAtA[i] = 0x12 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*OracleUpdateResult) + 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: OracleUpdateResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OracleUpdateResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewSharePrice", 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.NewSharePrice = 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 NewShares", 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.NewShares = 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 PositionValue", 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.PositionValue = 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 UpdatedNav", 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.UpdatedNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRegisterOracle protoreflect.MessageDescriptor + fd_MsgRegisterOracle_authority protoreflect.FieldDescriptor + fd_MsgRegisterOracle_position_id protoreflect.FieldDescriptor + fd_MsgRegisterOracle_oracle_address protoreflect.FieldDescriptor + fd_MsgRegisterOracle_source_chain protoreflect.FieldDescriptor + fd_MsgRegisterOracle_max_staleness protoreflect.FieldDescriptor + fd_MsgRegisterOracle_provider_type protoreflect.FieldDescriptor + fd_MsgRegisterOracle_origin_identifier protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgRegisterOracle = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgRegisterOracle") + fd_MsgRegisterOracle_authority = md_MsgRegisterOracle.Fields().ByName("authority") + fd_MsgRegisterOracle_position_id = md_MsgRegisterOracle.Fields().ByName("position_id") + fd_MsgRegisterOracle_oracle_address = md_MsgRegisterOracle.Fields().ByName("oracle_address") + fd_MsgRegisterOracle_source_chain = md_MsgRegisterOracle.Fields().ByName("source_chain") + fd_MsgRegisterOracle_max_staleness = md_MsgRegisterOracle.Fields().ByName("max_staleness") + fd_MsgRegisterOracle_provider_type = md_MsgRegisterOracle.Fields().ByName("provider_type") + fd_MsgRegisterOracle_origin_identifier = md_MsgRegisterOracle.Fields().ByName("origin_identifier") +} + +var _ protoreflect.Message = (*fastReflection_MsgRegisterOracle)(nil) + +type fastReflection_MsgRegisterOracle MsgRegisterOracle + +func (x *MsgRegisterOracle) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRegisterOracle)(x) +} + +func (x *MsgRegisterOracle) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[12] + 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_MsgRegisterOracle_messageType fastReflection_MsgRegisterOracle_messageType +var _ protoreflect.MessageType = fastReflection_MsgRegisterOracle_messageType{} + +type fastReflection_MsgRegisterOracle_messageType struct{} + +func (x fastReflection_MsgRegisterOracle_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRegisterOracle)(nil) +} +func (x fastReflection_MsgRegisterOracle_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRegisterOracle) +} +func (x fastReflection_MsgRegisterOracle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterOracle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRegisterOracle) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterOracle +} + +// 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_MsgRegisterOracle) Type() protoreflect.MessageType { + return _fastReflection_MsgRegisterOracle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRegisterOracle) New() protoreflect.Message { + return new(fastReflection_MsgRegisterOracle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRegisterOracle) Interface() protoreflect.ProtoMessage { + return (*MsgRegisterOracle)(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_MsgRegisterOracle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgRegisterOracle_authority, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_MsgRegisterOracle_position_id, value) { + return + } + } + if x.OracleAddress != "" { + value := protoreflect.ValueOfString(x.OracleAddress) + if !f(fd_MsgRegisterOracle_oracle_address, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_MsgRegisterOracle_source_chain, value) { + return + } + } + if x.MaxStaleness != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxStaleness) + if !f(fd_MsgRegisterOracle_max_staleness, value) { + return + } + } + if x.ProviderType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.ProviderType)) + if !f(fd_MsgRegisterOracle_provider_type, value) { + return + } + } + if x.OriginIdentifier != "" { + value := protoreflect.ValueOfString(x.OriginIdentifier) + if !f(fd_MsgRegisterOracle_origin_identifier, 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_MsgRegisterOracle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracle.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgRegisterOracle.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.MsgRegisterOracle.oracle_address": + return x.OracleAddress != "" + case "noble.dollar.vaults.v2.MsgRegisterOracle.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.MsgRegisterOracle.max_staleness": + return x.MaxStaleness != int64(0) + case "noble.dollar.vaults.v2.MsgRegisterOracle.provider_type": + return x.ProviderType != 0 + case "noble.dollar.vaults.v2.MsgRegisterOracle.origin_identifier": + return x.OriginIdentifier != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracle 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_MsgRegisterOracle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracle.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgRegisterOracle.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.MsgRegisterOracle.oracle_address": + x.OracleAddress = "" + case "noble.dollar.vaults.v2.MsgRegisterOracle.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.MsgRegisterOracle.max_staleness": + x.MaxStaleness = int64(0) + case "noble.dollar.vaults.v2.MsgRegisterOracle.provider_type": + x.ProviderType = 0 + case "noble.dollar.vaults.v2.MsgRegisterOracle.origin_identifier": + x.OriginIdentifier = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracle 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_MsgRegisterOracle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracle.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRegisterOracle.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRegisterOracle.oracle_address": + value := x.OracleAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRegisterOracle.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRegisterOracle.max_staleness": + value := x.MaxStaleness + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.MsgRegisterOracle.provider_type": + value := x.ProviderType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.MsgRegisterOracle.origin_identifier": + value := x.OriginIdentifier + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracle 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_MsgRegisterOracle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracle.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRegisterOracle.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.MsgRegisterOracle.oracle_address": + x.OracleAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRegisterOracle.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRegisterOracle.max_staleness": + x.MaxStaleness = value.Int() + case "noble.dollar.vaults.v2.MsgRegisterOracle.provider_type": + x.ProviderType = (ProviderType)(value.Enum()) + case "noble.dollar.vaults.v2.MsgRegisterOracle.origin_identifier": + x.OriginIdentifier = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracle 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_MsgRegisterOracle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracle.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracle.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracle.oracle_address": + panic(fmt.Errorf("field oracle_address of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracle.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracle.max_staleness": + panic(fmt.Errorf("field max_staleness of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracle.provider_type": + panic(fmt.Errorf("field provider_type of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracle.origin_identifier": + panic(fmt.Errorf("field origin_identifier of message noble.dollar.vaults.v2.MsgRegisterOracle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracle 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_MsgRegisterOracle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracle.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRegisterOracle.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRegisterOracle.oracle_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRegisterOracle.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRegisterOracle.max_staleness": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.MsgRegisterOracle.provider_type": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.MsgRegisterOracle.origin_identifier": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracle 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_MsgRegisterOracle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRegisterOracle", 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_MsgRegisterOracle) 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_MsgRegisterOracle) 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_MsgRegisterOracle) 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_MsgRegisterOracle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRegisterOracle) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.OracleAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxStaleness != 0 { + n += 1 + runtime.Sov(uint64(x.MaxStaleness)) + } + if x.ProviderType != 0 { + n += 1 + runtime.Sov(uint64(x.ProviderType)) + } + l = len(x.OriginIdentifier) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRegisterOracle) + 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 len(x.OriginIdentifier) > 0 { + i -= len(x.OriginIdentifier) + copy(dAtA[i:], x.OriginIdentifier) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginIdentifier))) + i-- + dAtA[i] = 0x3a + } + if x.ProviderType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ProviderType)) + i-- + dAtA[i] = 0x30 + } + if x.MaxStaleness != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxStaleness)) + i-- + dAtA[i] = 0x28 + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x22 + } + if len(x.OracleAddress) > 0 { + i -= len(x.OracleAddress) + copy(dAtA[i:], x.OracleAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleAddress))) + i-- + dAtA[i] = 0x1a + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgRegisterOracle) + 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: MsgRegisterOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterOracle: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", 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.OracleAddress = 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 SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + x.MaxStaleness = 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.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderType", wireType) + } + x.ProviderType = 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.ProviderType |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginIdentifier", 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.OriginIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRegisterOracleResponse protoreflect.MessageDescriptor + fd_MsgRegisterOracleResponse_oracle_id protoreflect.FieldDescriptor + fd_MsgRegisterOracleResponse_position_id protoreflect.FieldDescriptor + fd_MsgRegisterOracleResponse_registered_at protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgRegisterOracleResponse = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgRegisterOracleResponse") + fd_MsgRegisterOracleResponse_oracle_id = md_MsgRegisterOracleResponse.Fields().ByName("oracle_id") + fd_MsgRegisterOracleResponse_position_id = md_MsgRegisterOracleResponse.Fields().ByName("position_id") + fd_MsgRegisterOracleResponse_registered_at = md_MsgRegisterOracleResponse.Fields().ByName("registered_at") +} + +var _ protoreflect.Message = (*fastReflection_MsgRegisterOracleResponse)(nil) + +type fastReflection_MsgRegisterOracleResponse MsgRegisterOracleResponse + +func (x *MsgRegisterOracleResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRegisterOracleResponse)(x) +} + +func (x *MsgRegisterOracleResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[13] + 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_MsgRegisterOracleResponse_messageType fastReflection_MsgRegisterOracleResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRegisterOracleResponse_messageType{} + +type fastReflection_MsgRegisterOracleResponse_messageType struct{} + +func (x fastReflection_MsgRegisterOracleResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRegisterOracleResponse)(nil) +} +func (x fastReflection_MsgRegisterOracleResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRegisterOracleResponse) +} +func (x fastReflection_MsgRegisterOracleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterOracleResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRegisterOracleResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterOracleResponse +} + +// 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_MsgRegisterOracleResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRegisterOracleResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRegisterOracleResponse) New() protoreflect.Message { + return new(fastReflection_MsgRegisterOracleResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRegisterOracleResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRegisterOracleResponse)(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_MsgRegisterOracleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OracleId != "" { + value := protoreflect.ValueOfString(x.OracleId) + if !f(fd_MsgRegisterOracleResponse_oracle_id, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_MsgRegisterOracleResponse_position_id, value) { + return + } + } + if x.RegisteredAt != nil { + value := protoreflect.ValueOfMessage(x.RegisteredAt.ProtoReflect()) + if !f(fd_MsgRegisterOracleResponse_registered_at, 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_MsgRegisterOracleResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.oracle_id": + return x.OracleId != "" + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at": + return x.RegisteredAt != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracleResponse 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_MsgRegisterOracleResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.oracle_id": + x.OracleId = "" + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at": + x.RegisteredAt = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracleResponse 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_MsgRegisterOracleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.oracle_id": + value := x.OracleId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at": + value := x.RegisteredAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracleResponse 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_MsgRegisterOracleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.oracle_id": + x.OracleId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at": + x.RegisteredAt = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracleResponse 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_MsgRegisterOracleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at": + if x.RegisteredAt == nil { + x.RegisteredAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.RegisteredAt.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.oracle_id": + panic(fmt.Errorf("field oracle_id of message noble.dollar.vaults.v2.MsgRegisterOracleResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.MsgRegisterOracleResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracleResponse 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_MsgRegisterOracleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.oracle_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRegisterOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRegisterOracleResponse 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_MsgRegisterOracleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRegisterOracleResponse", 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_MsgRegisterOracleResponse) 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_MsgRegisterOracleResponse) 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_MsgRegisterOracleResponse) 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_MsgRegisterOracleResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRegisterOracleResponse) + 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.OracleId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.RegisteredAt != nil { + l = options.Size(x.RegisteredAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRegisterOracleResponse) + 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.RegisteredAt != nil { + encoded, err := options.Marshal(x.RegisteredAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(x.OracleId) > 0 { + i -= len(x.OracleId) + copy(dAtA[i:], x.OracleId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleId))) + 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().(*MsgRegisterOracleResponse) + 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: MsgRegisterOracleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterOracleResponse: 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 OracleId", 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.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RegisteredAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.RegisteredAt == nil { + x.RegisteredAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RegisteredAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateOracleConfig protoreflect.MessageDescriptor + fd_MsgUpdateOracleConfig_authority protoreflect.FieldDescriptor + fd_MsgUpdateOracleConfig_oracle_id protoreflect.FieldDescriptor + fd_MsgUpdateOracleConfig_max_staleness protoreflect.FieldDescriptor + fd_MsgUpdateOracleConfig_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgUpdateOracleConfig = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgUpdateOracleConfig") + fd_MsgUpdateOracleConfig_authority = md_MsgUpdateOracleConfig.Fields().ByName("authority") + fd_MsgUpdateOracleConfig_oracle_id = md_MsgUpdateOracleConfig.Fields().ByName("oracle_id") + fd_MsgUpdateOracleConfig_max_staleness = md_MsgUpdateOracleConfig.Fields().ByName("max_staleness") + fd_MsgUpdateOracleConfig_active = md_MsgUpdateOracleConfig.Fields().ByName("active") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateOracleConfig)(nil) + +type fastReflection_MsgUpdateOracleConfig MsgUpdateOracleConfig + +func (x *MsgUpdateOracleConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleConfig)(x) +} + +func (x *MsgUpdateOracleConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[14] + 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_MsgUpdateOracleConfig_messageType fastReflection_MsgUpdateOracleConfig_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateOracleConfig_messageType{} + +type fastReflection_MsgUpdateOracleConfig_messageType struct{} + +func (x fastReflection_MsgUpdateOracleConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleConfig)(nil) +} +func (x fastReflection_MsgUpdateOracleConfig_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleConfig) +} +func (x fastReflection_MsgUpdateOracleConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateOracleConfig) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleConfig +} + +// 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_MsgUpdateOracleConfig) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateOracleConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateOracleConfig) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateOracleConfig) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateOracleConfig)(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_MsgUpdateOracleConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateOracleConfig_authority, value) { + return + } + } + if x.OracleId != "" { + value := protoreflect.ValueOfString(x.OracleId) + if !f(fd_MsgUpdateOracleConfig_oracle_id, value) { + return + } + } + if x.MaxStaleness != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxStaleness) + if !f(fd_MsgUpdateOracleConfig_max_staleness, value) { + return + } + } + if x.Active != false { + value := protoreflect.ValueOfBool(x.Active) + if !f(fd_MsgUpdateOracleConfig_active, 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_MsgUpdateOracleConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.oracle_id": + return x.OracleId != "" + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.max_staleness": + return x.MaxStaleness != int64(0) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.active": + return x.Active != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfig 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_MsgUpdateOracleConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.oracle_id": + x.OracleId = "" + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.max_staleness": + x.MaxStaleness = int64(0) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.active": + x.Active = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfig 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_MsgUpdateOracleConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.oracle_id": + value := x.OracleId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.max_staleness": + value := x.MaxStaleness + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.active": + value := x.Active + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfig 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_MsgUpdateOracleConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.oracle_id": + x.OracleId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.max_staleness": + x.MaxStaleness = value.Int() + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.active": + x.Active = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfig 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_MsgUpdateOracleConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.oracle_id": + panic(fmt.Errorf("field oracle_id of message noble.dollar.vaults.v2.MsgUpdateOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.max_staleness": + panic(fmt.Errorf("field max_staleness of message noble.dollar.vaults.v2.MsgUpdateOracleConfig is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.active": + panic(fmt.Errorf("field active of message noble.dollar.vaults.v2.MsgUpdateOracleConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfig 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_MsgUpdateOracleConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.oracle_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.max_staleness": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfig.active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfig 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_MsgUpdateOracleConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateOracleConfig", 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_MsgUpdateOracleConfig) 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_MsgUpdateOracleConfig) 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_MsgUpdateOracleConfig) 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_MsgUpdateOracleConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateOracleConfig) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OracleId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxStaleness != 0 { + n += 1 + runtime.Sov(uint64(x.MaxStaleness)) + } + if x.Active { + n += 2 + } + 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().(*MsgUpdateOracleConfig) + 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.Active { + i-- + if x.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if x.MaxStaleness != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxStaleness)) + i-- + dAtA[i] = 0x18 + } + if len(x.OracleId) > 0 { + i -= len(x.OracleId) + copy(dAtA[i:], x.OracleId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateOracleConfig) + 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: MsgUpdateOracleConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateOracleConfig: 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 Authority", 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.Authority = 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 OracleId", 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.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + x.MaxStaleness = 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.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Active = bool(v != 0) + 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, + } +} + +var ( + md_MsgUpdateOracleConfigResponse protoreflect.MessageDescriptor + fd_MsgUpdateOracleConfigResponse_oracle_id protoreflect.FieldDescriptor + fd_MsgUpdateOracleConfigResponse_updated_config protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgUpdateOracleConfigResponse = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgUpdateOracleConfigResponse") + fd_MsgUpdateOracleConfigResponse_oracle_id = md_MsgUpdateOracleConfigResponse.Fields().ByName("oracle_id") + fd_MsgUpdateOracleConfigResponse_updated_config = md_MsgUpdateOracleConfigResponse.Fields().ByName("updated_config") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateOracleConfigResponse)(nil) + +type fastReflection_MsgUpdateOracleConfigResponse MsgUpdateOracleConfigResponse + +func (x *MsgUpdateOracleConfigResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleConfigResponse)(x) +} + +func (x *MsgUpdateOracleConfigResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[15] + 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_MsgUpdateOracleConfigResponse_messageType fastReflection_MsgUpdateOracleConfigResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateOracleConfigResponse_messageType{} + +type fastReflection_MsgUpdateOracleConfigResponse_messageType struct{} + +func (x fastReflection_MsgUpdateOracleConfigResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleConfigResponse)(nil) +} +func (x fastReflection_MsgUpdateOracleConfigResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleConfigResponse) +} +func (x fastReflection_MsgUpdateOracleConfigResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleConfigResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateOracleConfigResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleConfigResponse +} + +// 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_MsgUpdateOracleConfigResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateOracleConfigResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateOracleConfigResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleConfigResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateOracleConfigResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateOracleConfigResponse)(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_MsgUpdateOracleConfigResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OracleId != "" { + value := protoreflect.ValueOfString(x.OracleId) + if !f(fd_MsgUpdateOracleConfigResponse_oracle_id, value) { + return + } + } + if x.UpdatedConfig != nil { + value := protoreflect.ValueOfMessage(x.UpdatedConfig.ProtoReflect()) + if !f(fd_MsgUpdateOracleConfigResponse_updated_config, 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_MsgUpdateOracleConfigResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.oracle_id": + return x.OracleId != "" + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config": + return x.UpdatedConfig != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse 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_MsgUpdateOracleConfigResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.oracle_id": + x.OracleId = "" + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config": + x.UpdatedConfig = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse 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_MsgUpdateOracleConfigResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.oracle_id": + value := x.OracleId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config": + value := x.UpdatedConfig + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse 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_MsgUpdateOracleConfigResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.oracle_id": + x.OracleId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config": + x.UpdatedConfig = value.Message().Interface().(*EnrolledOracle) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse 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_MsgUpdateOracleConfigResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config": + if x.UpdatedConfig == nil { + x.UpdatedConfig = new(EnrolledOracle) + } + return protoreflect.ValueOfMessage(x.UpdatedConfig.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.oracle_id": + panic(fmt.Errorf("field oracle_id of message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse 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_MsgUpdateOracleConfigResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.oracle_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config": + m := new(EnrolledOracle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse 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_MsgUpdateOracleConfigResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse", 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_MsgUpdateOracleConfigResponse) 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_MsgUpdateOracleConfigResponse) 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_MsgUpdateOracleConfigResponse) 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_MsgUpdateOracleConfigResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateOracleConfigResponse) + 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.OracleId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.UpdatedConfig != nil { + l = options.Size(x.UpdatedConfig) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateOracleConfigResponse) + 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.UpdatedConfig != nil { + encoded, err := options.Marshal(x.UpdatedConfig) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.OracleId) > 0 { + i -= len(x.OracleId) + copy(dAtA[i:], x.OracleId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleId))) + 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().(*MsgUpdateOracleConfigResponse) + 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: MsgUpdateOracleConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateOracleConfigResponse: 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 OracleId", 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.OracleId = 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 UpdatedConfig", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.UpdatedConfig == nil { + x.UpdatedConfig = &EnrolledOracle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdatedConfig); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRemoveOracle protoreflect.MessageDescriptor + fd_MsgRemoveOracle_authority protoreflect.FieldDescriptor + fd_MsgRemoveOracle_oracle_id protoreflect.FieldDescriptor + fd_MsgRemoveOracle_reason protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgRemoveOracle = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgRemoveOracle") + fd_MsgRemoveOracle_authority = md_MsgRemoveOracle.Fields().ByName("authority") + fd_MsgRemoveOracle_oracle_id = md_MsgRemoveOracle.Fields().ByName("oracle_id") + fd_MsgRemoveOracle_reason = md_MsgRemoveOracle.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveOracle)(nil) + +type fastReflection_MsgRemoveOracle MsgRemoveOracle + +func (x *MsgRemoveOracle) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveOracle)(x) +} + +func (x *MsgRemoveOracle) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[16] + 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_MsgRemoveOracle_messageType fastReflection_MsgRemoveOracle_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveOracle_messageType{} + +type fastReflection_MsgRemoveOracle_messageType struct{} + +func (x fastReflection_MsgRemoveOracle_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveOracle)(nil) +} +func (x fastReflection_MsgRemoveOracle_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveOracle) +} +func (x fastReflection_MsgRemoveOracle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveOracle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveOracle) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveOracle +} + +// 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_MsgRemoveOracle) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveOracle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveOracle) New() protoreflect.Message { + return new(fastReflection_MsgRemoveOracle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveOracle) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveOracle)(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_MsgRemoveOracle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgRemoveOracle_authority, value) { + return + } + } + if x.OracleId != "" { + value := protoreflect.ValueOfString(x.OracleId) + if !f(fd_MsgRemoveOracle_oracle_id, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgRemoveOracle_reason, 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_MsgRemoveOracle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracle.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgRemoveOracle.oracle_id": + return x.OracleId != "" + case "noble.dollar.vaults.v2.MsgRemoveOracle.reason": + return x.Reason != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracle 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_MsgRemoveOracle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracle.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgRemoveOracle.oracle_id": + x.OracleId = "" + case "noble.dollar.vaults.v2.MsgRemoveOracle.reason": + x.Reason = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracle 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_MsgRemoveOracle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracle.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoveOracle.oracle_id": + value := x.OracleId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoveOracle.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracle 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_MsgRemoveOracle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracle.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoveOracle.oracle_id": + x.OracleId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoveOracle.reason": + x.Reason = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracle 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_MsgRemoveOracle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracle.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgRemoveOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoveOracle.oracle_id": + panic(fmt.Errorf("field oracle_id of message noble.dollar.vaults.v2.MsgRemoveOracle is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoveOracle.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.MsgRemoveOracle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracle 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_MsgRemoveOracle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracle.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoveOracle.oracle_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoveOracle.reason": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracle")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracle 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_MsgRemoveOracle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRemoveOracle", 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_MsgRemoveOracle) 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_MsgRemoveOracle) 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_MsgRemoveOracle) 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_MsgRemoveOracle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveOracle) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OracleId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRemoveOracle) + 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 len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(x.OracleId) > 0 { + i -= len(x.OracleId) + copy(dAtA[i:], x.OracleId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgRemoveOracle) + 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: MsgRemoveOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveOracle: 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 Authority", 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.Authority = 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 OracleId", 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.OracleId = 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 Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRemoveOracleResponse protoreflect.MessageDescriptor + fd_MsgRemoveOracleResponse_oracle_id protoreflect.FieldDescriptor + fd_MsgRemoveOracleResponse_position_id protoreflect.FieldDescriptor + fd_MsgRemoveOracleResponse_removed_at protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgRemoveOracleResponse = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgRemoveOracleResponse") + fd_MsgRemoveOracleResponse_oracle_id = md_MsgRemoveOracleResponse.Fields().ByName("oracle_id") + fd_MsgRemoveOracleResponse_position_id = md_MsgRemoveOracleResponse.Fields().ByName("position_id") + fd_MsgRemoveOracleResponse_removed_at = md_MsgRemoveOracleResponse.Fields().ByName("removed_at") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoveOracleResponse)(nil) + +type fastReflection_MsgRemoveOracleResponse MsgRemoveOracleResponse + +func (x *MsgRemoveOracleResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoveOracleResponse)(x) +} + +func (x *MsgRemoveOracleResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[17] + 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_MsgRemoveOracleResponse_messageType fastReflection_MsgRemoveOracleResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoveOracleResponse_messageType{} + +type fastReflection_MsgRemoveOracleResponse_messageType struct{} + +func (x fastReflection_MsgRemoveOracleResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoveOracleResponse)(nil) +} +func (x fastReflection_MsgRemoveOracleResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoveOracleResponse) +} +func (x fastReflection_MsgRemoveOracleResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveOracleResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoveOracleResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoveOracleResponse +} + +// 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_MsgRemoveOracleResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoveOracleResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoveOracleResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoveOracleResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoveOracleResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoveOracleResponse)(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_MsgRemoveOracleResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OracleId != "" { + value := protoreflect.ValueOfString(x.OracleId) + if !f(fd_MsgRemoveOracleResponse_oracle_id, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_MsgRemoveOracleResponse_position_id, value) { + return + } + } + if x.RemovedAt != nil { + value := protoreflect.ValueOfMessage(x.RemovedAt.ProtoReflect()) + if !f(fd_MsgRemoveOracleResponse_removed_at, 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_MsgRemoveOracleResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.oracle_id": + return x.OracleId != "" + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at": + return x.RemovedAt != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracleResponse 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_MsgRemoveOracleResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.oracle_id": + x.OracleId = "" + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at": + x.RemovedAt = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracleResponse 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_MsgRemoveOracleResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.oracle_id": + value := x.OracleId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at": + value := x.RemovedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracleResponse 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_MsgRemoveOracleResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.oracle_id": + x.OracleId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at": + x.RemovedAt = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracleResponse 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_MsgRemoveOracleResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at": + if x.RemovedAt == nil { + x.RemovedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.RemovedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.oracle_id": + panic(fmt.Errorf("field oracle_id of message noble.dollar.vaults.v2.MsgRemoveOracleResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.MsgRemoveOracleResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracleResponse 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_MsgRemoveOracleResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.oracle_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoveOracleResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoveOracleResponse 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_MsgRemoveOracleResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRemoveOracleResponse", 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_MsgRemoveOracleResponse) 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_MsgRemoveOracleResponse) 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_MsgRemoveOracleResponse) 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_MsgRemoveOracleResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoveOracleResponse) + 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.OracleId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.RemovedAt != nil { + l = options.Size(x.RemovedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRemoveOracleResponse) + 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.RemovedAt != nil { + encoded, err := options.Marshal(x.RemovedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(x.OracleId) > 0 { + i -= len(x.OracleId) + copy(dAtA[i:], x.OracleId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OracleId))) + 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().(*MsgRemoveOracleResponse) + 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: MsgRemoveOracleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveOracleResponse: 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 OracleId", 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.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemovedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.RemovedAt == nil { + x.RemovedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RemovedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateOracleParams protoreflect.MessageDescriptor + fd_MsgUpdateOracleParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateOracleParams_params protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgUpdateOracleParams = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgUpdateOracleParams") + fd_MsgUpdateOracleParams_authority = md_MsgUpdateOracleParams.Fields().ByName("authority") + fd_MsgUpdateOracleParams_params = md_MsgUpdateOracleParams.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateOracleParams)(nil) + +type fastReflection_MsgUpdateOracleParams MsgUpdateOracleParams + +func (x *MsgUpdateOracleParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleParams)(x) +} + +func (x *MsgUpdateOracleParams) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[18] + 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_MsgUpdateOracleParams_messageType fastReflection_MsgUpdateOracleParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateOracleParams_messageType{} + +type fastReflection_MsgUpdateOracleParams_messageType struct{} + +func (x fastReflection_MsgUpdateOracleParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleParams)(nil) +} +func (x fastReflection_MsgUpdateOracleParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleParams) +} +func (x fastReflection_MsgUpdateOracleParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateOracleParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleParams +} + +// 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_MsgUpdateOracleParams) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateOracleParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateOracleParams) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateOracleParams) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateOracleParams)(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_MsgUpdateOracleParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateOracleParams_authority, value) { + return + } + } + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_MsgUpdateOracleParams_params, 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_MsgUpdateOracleParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParams 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_MsgUpdateOracleParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParams 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_MsgUpdateOracleParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParams 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_MsgUpdateOracleParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.params": + x.Params = value.Message().Interface().(*OracleGovernanceParams) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParams 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_MsgUpdateOracleParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.params": + if x.Params == nil { + x.Params = new(OracleGovernanceParams) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateOracleParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParams 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_MsgUpdateOracleParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateOracleParams.params": + m := new(OracleGovernanceParams) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParams 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_MsgUpdateOracleParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateOracleParams", 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_MsgUpdateOracleParams) 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_MsgUpdateOracleParams) 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_MsgUpdateOracleParams) 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_MsgUpdateOracleParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateOracleParams) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateOracleParams) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateOracleParams) + 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: MsgUpdateOracleParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateOracleParams: 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 Authority", 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.Authority = 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 Params", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Params == nil { + x.Params = &OracleGovernanceParams{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateOracleParamsResponse protoreflect.MessageDescriptor + fd_MsgUpdateOracleParamsResponse_previous_params protoreflect.FieldDescriptor + fd_MsgUpdateOracleParamsResponse_new_params protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_oracle_proto_init() + md_MsgUpdateOracleParamsResponse = File_noble_dollar_vaults_v2_oracle_proto.Messages().ByName("MsgUpdateOracleParamsResponse") + fd_MsgUpdateOracleParamsResponse_previous_params = md_MsgUpdateOracleParamsResponse.Fields().ByName("previous_params") + fd_MsgUpdateOracleParamsResponse_new_params = md_MsgUpdateOracleParamsResponse.Fields().ByName("new_params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateOracleParamsResponse)(nil) + +type fastReflection_MsgUpdateOracleParamsResponse MsgUpdateOracleParamsResponse + +func (x *MsgUpdateOracleParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleParamsResponse)(x) +} + +func (x *MsgUpdateOracleParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[19] + 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_MsgUpdateOracleParamsResponse_messageType fastReflection_MsgUpdateOracleParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateOracleParamsResponse_messageType{} + +type fastReflection_MsgUpdateOracleParamsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateOracleParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateOracleParamsResponse)(nil) +} +func (x fastReflection_MsgUpdateOracleParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleParamsResponse) +} +func (x fastReflection_MsgUpdateOracleParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateOracleParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateOracleParamsResponse +} + +// 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_MsgUpdateOracleParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateOracleParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateOracleParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateOracleParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateOracleParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateOracleParamsResponse)(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_MsgUpdateOracleParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousParams != nil { + value := protoreflect.ValueOfMessage(x.PreviousParams.ProtoReflect()) + if !f(fd_MsgUpdateOracleParamsResponse_previous_params, value) { + return + } + } + if x.NewParams != nil { + value := protoreflect.ValueOfMessage(x.NewParams.ProtoReflect()) + if !f(fd_MsgUpdateOracleParamsResponse_new_params, 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_MsgUpdateOracleParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params": + return x.PreviousParams != nil + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params": + return x.NewParams != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse 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_MsgUpdateOracleParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params": + x.PreviousParams = nil + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params": + x.NewParams = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse 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_MsgUpdateOracleParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params": + value := x.PreviousParams + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params": + value := x.NewParams + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse 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_MsgUpdateOracleParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params": + x.PreviousParams = value.Message().Interface().(*OracleGovernanceParams) + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params": + x.NewParams = value.Message().Interface().(*OracleGovernanceParams) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse 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_MsgUpdateOracleParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params": + if x.PreviousParams == nil { + x.PreviousParams = new(OracleGovernanceParams) + } + return protoreflect.ValueOfMessage(x.PreviousParams.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params": + if x.NewParams == nil { + x.NewParams = new(OracleGovernanceParams) + } + return protoreflect.ValueOfMessage(x.NewParams.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse 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_MsgUpdateOracleParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params": + m := new(OracleGovernanceParams) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params": + m := new(OracleGovernanceParams) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse 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_MsgUpdateOracleParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse", 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_MsgUpdateOracleParamsResponse) 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_MsgUpdateOracleParamsResponse) 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_MsgUpdateOracleParamsResponse) 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_MsgUpdateOracleParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateOracleParamsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PreviousParams != nil { + l = options.Size(x.PreviousParams) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NewParams != nil { + l = options.Size(x.NewParams) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateOracleParamsResponse) + 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.NewParams != nil { + encoded, err := options.Marshal(x.NewParams) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.PreviousParams != nil { + encoded, err := options.Marshal(x.PreviousParams) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*MsgUpdateOracleParamsResponse) + 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: MsgUpdateOracleParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateOracleParamsResponse: 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 PreviousParams", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.PreviousParams == nil { + x.PreviousParams = &OracleGovernanceParams{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreviousParams); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewParams", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.NewParams == nil { + x.NewParams = &OracleGovernanceParams{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NewParams); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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: noble/dollar/vaults/v2/oracle.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) +) + +// StalenessLevel represents the freshness of oracle data +type StalenessLevel int32 + +const ( + // Data is fresh + StalenessLevel_STALENESS_LEVEL_FRESH StalenessLevel = 0 + // Data is stale + StalenessLevel_STALENESS_LEVEL_STALE StalenessLevel = 1 + // Data is in warning threshold + StalenessLevel_STALENESS_LEVEL_WARNING StalenessLevel = 2 + // Data is in critical threshold + StalenessLevel_STALENESS_LEVEL_CRITICAL StalenessLevel = 3 +) + +// Enum value maps for StalenessLevel. +var ( + StalenessLevel_name = map[int32]string{ + 0: "STALENESS_LEVEL_FRESH", + 1: "STALENESS_LEVEL_STALE", + 2: "STALENESS_LEVEL_WARNING", + 3: "STALENESS_LEVEL_CRITICAL", + } + StalenessLevel_value = map[string]int32{ + "STALENESS_LEVEL_FRESH": 0, + "STALENESS_LEVEL_STALE": 1, + "STALENESS_LEVEL_WARNING": 2, + "STALENESS_LEVEL_CRITICAL": 3, + } +) + +func (x StalenessLevel) Enum() *StalenessLevel { + p := new(StalenessLevel) + *p = x + return p +} + +func (x StalenessLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StalenessLevel) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_oracle_proto_enumTypes[0].Descriptor() +} + +func (StalenessLevel) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_oracle_proto_enumTypes[0] +} + +func (x StalenessLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StalenessLevel.Descriptor instead. +func (StalenessLevel) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{0} +} + +// RemotePosition represents a position tracked by an oracle +type RemotePositionOracle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Chain ID where the position exists + ChainId uint32 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Oracle contract address on the remote chain + OracleAddress string `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` + // Vault address holding this position + VaultAddress string `protobuf:"bytes,4,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + // Number of shares held + SharesHeld string `protobuf:"bytes,5,opt,name=shares_held,json=sharesHeld,proto3" json:"shares_held,omitempty"` + // Current share price + SharePrice string `protobuf:"bytes,6,opt,name=share_price,json=sharePrice,proto3" json:"share_price,omitempty"` + // Last update timestamp + LastUpdate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` +} + +func (x *RemotePositionOracle) Reset() { + *x = RemotePositionOracle{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemotePositionOracle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemotePositionOracle) ProtoMessage() {} + +// Deprecated: Use RemotePositionOracle.ProtoReflect.Descriptor instead. +func (*RemotePositionOracle) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{0} +} + +func (x *RemotePositionOracle) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *RemotePositionOracle) GetChainId() uint32 { + if x != nil { + return x.ChainId + } + return 0 +} + +func (x *RemotePositionOracle) GetOracleAddress() string { + if x != nil { + return x.OracleAddress + } + return "" +} + +func (x *RemotePositionOracle) GetVaultAddress() string { + if x != nil { + return x.VaultAddress + } + return "" +} + +func (x *RemotePositionOracle) GetSharesHeld() string { + if x != nil { + return x.SharesHeld + } + return "" +} + +func (x *RemotePositionOracle) GetSharePrice() string { + if x != nil { + return x.SharePrice + } + return "" +} + +func (x *RemotePositionOracle) GetLastUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdate + } + return nil +} + +// OracleMapping defines the mapping between an oracle and its position +type OracleMapping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Oracle contract address + OracleAddress string `protobuf:"bytes,1,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` + // Source chain ID + ChainId uint32 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Position identifier this oracle reports for + PositionId uint64 `protobuf:"varint,3,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` +} + +func (x *OracleMapping) Reset() { + *x = OracleMapping{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OracleMapping) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OracleMapping) ProtoMessage() {} + +// Deprecated: Use OracleMapping.ProtoReflect.Descriptor instead. +func (*OracleMapping) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{1} +} + +func (x *OracleMapping) GetOracleAddress() string { + if x != nil { + return x.OracleAddress + } + return "" +} + +func (x *OracleMapping) GetChainId() uint32 { + if x != nil { + return x.ChainId + } + return 0 +} + +func (x *OracleMapping) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +// EnrolledOracleRouter represents an enrolled oracle router +type EnrolledOracleRouter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,2,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Oracle contract address + OracleAddress string `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` +} + +func (x *EnrolledOracleRouter) Reset() { + *x = EnrolledOracleRouter{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnrolledOracleRouter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnrolledOracleRouter) ProtoMessage() {} + +// Deprecated: Use EnrolledOracleRouter.ProtoReflect.Descriptor instead. +func (*EnrolledOracleRouter) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{2} +} + +func (x *EnrolledOracleRouter) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *EnrolledOracleRouter) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *EnrolledOracleRouter) GetOracleAddress() string { + if x != nil { + return x.OracleAddress + } + return "" +} + +// EnrolledOracle represents a registered oracle +type EnrolledOracle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,2,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Oracle address on remote chain + OracleAddress string `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` + // Maximum staleness (seconds) + MaxStaleness int64 `protobuf:"varint,4,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Registration timestamp + RegisteredAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=registered_at,json=registeredAt,proto3" json:"registered_at,omitempty"` + // Whether the oracle is active + Active bool `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty"` +} + +func (x *EnrolledOracle) Reset() { + *x = EnrolledOracle{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnrolledOracle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnrolledOracle) ProtoMessage() {} + +// Deprecated: Use EnrolledOracle.ProtoReflect.Descriptor instead. +func (*EnrolledOracle) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{3} +} + +func (x *EnrolledOracle) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *EnrolledOracle) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *EnrolledOracle) GetOracleAddress() string { + if x != nil { + return x.OracleAddress + } + return "" +} + +func (x *EnrolledOracle) GetMaxStaleness() int64 { + if x != nil { + return x.MaxStaleness + } + return 0 +} + +func (x *EnrolledOracle) GetRegisteredAt() *timestamppb.Timestamp { + if x != nil { + return x.RegisteredAt + } + return nil +} + +func (x *EnrolledOracle) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +// StalenessConfig defines staleness thresholds +type StalenessConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Warning threshold in seconds + WarningThreshold int64 `protobuf:"varint,1,opt,name=warning_threshold,json=warningThreshold,proto3" json:"warning_threshold,omitempty"` + // Critical threshold in seconds + CriticalThreshold int64 `protobuf:"varint,2,opt,name=critical_threshold,json=criticalThreshold,proto3" json:"critical_threshold,omitempty"` + // Maximum allowed staleness before fallback + MaxStaleness int64 `protobuf:"varint,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` +} + +func (x *StalenessConfig) Reset() { + *x = StalenessConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StalenessConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StalenessConfig) ProtoMessage() {} + +// Deprecated: Use StalenessConfig.ProtoReflect.Descriptor instead. +func (*StalenessConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{4} +} + +func (x *StalenessConfig) GetWarningThreshold() int64 { + if x != nil { + return x.WarningThreshold + } + return 0 +} + +func (x *StalenessConfig) GetCriticalThreshold() int64 { + if x != nil { + return x.CriticalThreshold + } + return 0 +} + +func (x *StalenessConfig) GetMaxStaleness() int64 { + if x != nil { + return x.MaxStaleness + } + return 0 +} + +// NAVPayload represents the oracle update payload (105 bytes when encoded) +type NAVPayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Message type (0x01 for NAV update) + MessageType uint32 `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` + // Position identifier (32 bytes) + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Share price (32 bytes, 1e18 precision) + SharePrice string `protobuf:"bytes,3,opt,name=share_price,json=sharePrice,proto3" json:"share_price,omitempty"` + // Shares held (32 bytes, 1e18 precision) + SharesHeld string `protobuf:"bytes,4,opt,name=shares_held,json=sharesHeld,proto3" json:"shares_held,omitempty"` + // Unix timestamp (8 bytes) + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *NAVPayload) Reset() { + *x = NAVPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVPayload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVPayload) ProtoMessage() {} + +// Deprecated: Use NAVPayload.ProtoReflect.Descriptor instead. +func (*NAVPayload) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{5} +} + +func (x *NAVPayload) GetMessageType() uint32 { + if x != nil { + return x.MessageType + } + return 0 +} + +func (x *NAVPayload) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *NAVPayload) GetSharePrice() string { + if x != nil { + return x.SharePrice + } + return "" +} + +func (x *NAVPayload) GetSharesHeld() string { + if x != nil { + return x.SharesHeld + } + return "" +} + +func (x *NAVPayload) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +// FallbackStrategy defines the fallback strategy for stale data +type FallbackStrategy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Whether to use last known good value + UseLastKnownGood bool `protobuf:"varint,1,opt,name=use_last_known_good,json=useLastKnownGood,proto3" json:"use_last_known_good,omitempty"` + // Maximum cache age allowed (seconds) + MaxCacheAge int64 `protobuf:"varint,2,opt,name=max_cache_age,json=maxCacheAge,proto3" json:"max_cache_age,omitempty"` + // Alert threshold for notifications (seconds) + AlertThreshold int64 `protobuf:"varint,3,opt,name=alert_threshold,json=alertThreshold,proto3" json:"alert_threshold,omitempty"` +} + +func (x *FallbackStrategy) Reset() { + *x = FallbackStrategy{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FallbackStrategy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FallbackStrategy) ProtoMessage() {} + +// Deprecated: Use FallbackStrategy.ProtoReflect.Descriptor instead. +func (*FallbackStrategy) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{6} +} + +func (x *FallbackStrategy) GetUseLastKnownGood() bool { + if x != nil { + return x.UseLastKnownGood + } + return false +} + +func (x *FallbackStrategy) GetMaxCacheAge() int64 { + if x != nil { + return x.MaxCacheAge + } + return 0 +} + +func (x *FallbackStrategy) GetAlertThreshold() int64 { + if x != nil { + return x.AlertThreshold + } + return 0 +} + +// OracleGovernanceParams defines governance parameters for oracles +type OracleGovernanceParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maximum update interval allowed (seconds) + MaxUpdateInterval int64 `protobuf:"varint,1,opt,name=max_update_interval,json=maxUpdateInterval,proto3" json:"max_update_interval,omitempty"` + // Minimum update interval to prevent spam (seconds) + MinUpdateInterval int64 `protobuf:"varint,2,opt,name=min_update_interval,json=minUpdateInterval,proto3" json:"min_update_interval,omitempty"` + // Maximum price deviation per update (basis points) + MaxPriceDeviationBps int32 `protobuf:"varint,3,opt,name=max_price_deviation_bps,json=maxPriceDeviationBps,proto3" json:"max_price_deviation_bps,omitempty"` + // Default staleness config + DefaultStaleness *StalenessConfig `protobuf:"bytes,4,opt,name=default_staleness,json=defaultStaleness,proto3" json:"default_staleness,omitempty"` + // Default fallback strategy + DefaultFallback *FallbackStrategy `protobuf:"bytes,5,opt,name=default_fallback,json=defaultFallback,proto3" json:"default_fallback,omitempty"` +} + +func (x *OracleGovernanceParams) Reset() { + *x = OracleGovernanceParams{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OracleGovernanceParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OracleGovernanceParams) ProtoMessage() {} + +// Deprecated: Use OracleGovernanceParams.ProtoReflect.Descriptor instead. +func (*OracleGovernanceParams) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{7} +} + +func (x *OracleGovernanceParams) GetMaxUpdateInterval() int64 { + if x != nil { + return x.MaxUpdateInterval + } + return 0 +} + +func (x *OracleGovernanceParams) GetMinUpdateInterval() int64 { + if x != nil { + return x.MinUpdateInterval + } + return 0 +} + +func (x *OracleGovernanceParams) GetMaxPriceDeviationBps() int32 { + if x != nil { + return x.MaxPriceDeviationBps + } + return 0 +} + +func (x *OracleGovernanceParams) GetDefaultStaleness() *StalenessConfig { + if x != nil { + return x.DefaultStaleness + } + return nil +} + +func (x *OracleGovernanceParams) GetDefaultFallback() *FallbackStrategy { + if x != nil { + return x.DefaultFallback + } + return nil +} + +// AlertConfig defines alert configuration +type AlertConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Stale data threshold (seconds) + StaleDataThreshold int64 `protobuf:"varint,1,opt,name=stale_data_threshold,json=staleDataThreshold,proto3" json:"stale_data_threshold,omitempty"` + // Price deviation threshold (basis points) + PriceDeviationThreshold int32 `protobuf:"varint,2,opt,name=price_deviation_threshold,json=priceDeviationThreshold,proto3" json:"price_deviation_threshold,omitempty"` + // Failed update threshold (count) + FailedUpdateThreshold int32 `protobuf:"varint,3,opt,name=failed_update_threshold,json=failedUpdateThreshold,proto3" json:"failed_update_threshold,omitempty"` +} + +func (x *AlertConfig) Reset() { + *x = AlertConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AlertConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AlertConfig) ProtoMessage() {} + +// Deprecated: Use AlertConfig.ProtoReflect.Descriptor instead. +func (*AlertConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{8} +} + +func (x *AlertConfig) GetStaleDataThreshold() int64 { + if x != nil { + return x.StaleDataThreshold + } + return 0 +} + +func (x *AlertConfig) GetPriceDeviationThreshold() int32 { + if x != nil { + return x.PriceDeviationThreshold + } + return 0 +} + +func (x *AlertConfig) GetFailedUpdateThreshold() int32 { + if x != nil { + return x.FailedUpdateThreshold + } + return 0 +} + +// OracleStatus represents the current status of an oracle +type OracleStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Oracle identifier + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Position ID + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Last successful update + LastSuccess *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_success,json=lastSuccess,proto3" json:"last_success,omitempty"` + // Number of consecutive failures + ConsecutiveFailures int32 `protobuf:"varint,4,opt,name=consecutive_failures,json=consecutiveFailures,proto3" json:"consecutive_failures,omitempty"` + // Whether oracle is healthy + IsHealthy bool `protobuf:"varint,5,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` + // Current staleness level + StalenessLevel StalenessLevel `protobuf:"varint,6,opt,name=staleness_level,json=stalenessLevel,proto3,enum=noble.dollar.vaults.v2.StalenessLevel" json:"staleness_level,omitempty"` + // Last error message if any + LastError string `protobuf:"bytes,7,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` +} + +func (x *OracleStatus) Reset() { + *x = OracleStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OracleStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OracleStatus) ProtoMessage() {} + +// Deprecated: Use OracleStatus.ProtoReflect.Descriptor instead. +func (*OracleStatus) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{9} +} + +func (x *OracleStatus) GetOracleId() string { + if x != nil { + return x.OracleId + } + return "" +} + +func (x *OracleStatus) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *OracleStatus) GetLastSuccess() *timestamppb.Timestamp { + if x != nil { + return x.LastSuccess + } + return nil +} + +func (x *OracleStatus) GetConsecutiveFailures() int32 { + if x != nil { + return x.ConsecutiveFailures + } + return 0 +} + +func (x *OracleStatus) GetIsHealthy() bool { + if x != nil { + return x.IsHealthy + } + return false +} + +func (x *OracleStatus) GetStalenessLevel() StalenessLevel { + if x != nil { + return x.StalenessLevel + } + return StalenessLevel_STALENESS_LEVEL_FRESH +} + +func (x *OracleStatus) GetLastError() string { + if x != nil { + return x.LastError + } + return "" +} + +// CrossChainOracleMessage represents an oracle update delivered by cross-chain messaging +// This is not a Msg type as it's handled internally when messages are delivered +type CrossChainOracleMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Mailbox/channel identifier + MailboxId []byte `protobuf:"bytes,1,opt,name=mailbox_id,json=mailboxId,proto3" json:"mailbox_id,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,2,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Sender address on origin chain + Sender []byte `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` + // Hyperlane metadata for verification + Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // NAV oracle update payload (105 bytes) + Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` + // Timestamp when received + ReceivedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"` + // Provider type (HYPERLANE, IBC) + ProviderType ProviderType `protobuf:"varint,7,opt,name=provider_type,json=providerType,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"provider_type,omitempty"` +} + +func (x *CrossChainOracleMessage) Reset() { + *x = CrossChainOracleMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CrossChainOracleMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CrossChainOracleMessage) ProtoMessage() {} + +// Deprecated: Use CrossChainOracleMessage.ProtoReflect.Descriptor instead. +func (*CrossChainOracleMessage) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{10} +} + +func (x *CrossChainOracleMessage) GetMailboxId() []byte { + if x != nil { + return x.MailboxId + } + return nil +} + +func (x *CrossChainOracleMessage) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *CrossChainOracleMessage) GetSender() []byte { + if x != nil { + return x.Sender + } + return nil +} + +func (x *CrossChainOracleMessage) GetMetadata() []byte { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *CrossChainOracleMessage) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +func (x *CrossChainOracleMessage) GetReceivedAt() *timestamppb.Timestamp { + if x != nil { + return x.ReceivedAt + } + return nil +} + +func (x *CrossChainOracleMessage) GetProviderType() ProviderType { + if x != nil { + return x.ProviderType + } + return ProviderType_PROVIDER_TYPE_HYPERLANE +} + +// OracleUpdateResult represents the result of processing an oracle update +type OracleUpdateResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Position ID that was updated + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // New share price + NewSharePrice string `protobuf:"bytes,2,opt,name=new_share_price,json=newSharePrice,proto3" json:"new_share_price,omitempty"` + // New shares held + NewShares string `protobuf:"bytes,3,opt,name=new_shares,json=newShares,proto3" json:"new_shares,omitempty"` + // Calculated position value + PositionValue string `protobuf:"bytes,4,opt,name=position_value,json=positionValue,proto3" json:"position_value,omitempty"` + // Updated total NAV + UpdatedNav string `protobuf:"bytes,5,opt,name=updated_nav,json=updatedNav,proto3" json:"updated_nav,omitempty"` +} + +func (x *OracleUpdateResult) Reset() { + *x = OracleUpdateResult{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OracleUpdateResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OracleUpdateResult) ProtoMessage() {} + +// Deprecated: Use OracleUpdateResult.ProtoReflect.Descriptor instead. +func (*OracleUpdateResult) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{11} +} + +func (x *OracleUpdateResult) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *OracleUpdateResult) GetNewSharePrice() string { + if x != nil { + return x.NewSharePrice + } + return "" +} + +func (x *OracleUpdateResult) GetNewShares() string { + if x != nil { + return x.NewShares + } + return "" +} + +func (x *OracleUpdateResult) GetPositionValue() string { + if x != nil { + return x.PositionValue + } + return "" +} + +func (x *OracleUpdateResult) GetUpdatedNav() string { + if x != nil { + return x.UpdatedNav + } + return "" +} + +// MsgRegisterOracle registers a new oracle for a position +type MsgRegisterOracle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Position identifier to track + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Oracle contract address on remote chain + OracleAddress string `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,4,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Maximum staleness allowed (seconds) + MaxStaleness int64 `protobuf:"varint,5,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Provider type (HYPERLANE, IBC) + ProviderType ProviderType `protobuf:"varint,6,opt,name=provider_type,json=providerType,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"provider_type,omitempty"` + // Origin identifier (mailbox for Hyperlane, channel for IBC) + OriginIdentifier string `protobuf:"bytes,7,opt,name=origin_identifier,json=originIdentifier,proto3" json:"origin_identifier,omitempty"` +} + +func (x *MsgRegisterOracle) Reset() { + *x = MsgRegisterOracle{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRegisterOracle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRegisterOracle) ProtoMessage() {} + +// Deprecated: Use MsgRegisterOracle.ProtoReflect.Descriptor instead. +func (*MsgRegisterOracle) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{12} +} + +func (x *MsgRegisterOracle) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgRegisterOracle) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *MsgRegisterOracle) GetOracleAddress() string { + if x != nil { + return x.OracleAddress + } + return "" +} + +func (x *MsgRegisterOracle) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *MsgRegisterOracle) GetMaxStaleness() int64 { + if x != nil { + return x.MaxStaleness + } + return 0 +} + +func (x *MsgRegisterOracle) GetProviderType() ProviderType { + if x != nil { + return x.ProviderType + } + return ProviderType_PROVIDER_TYPE_HYPERLANE +} + +func (x *MsgRegisterOracle) GetOriginIdentifier() string { + if x != nil { + return x.OriginIdentifier + } + return "" +} + +// MsgRegisterOracleResponse confirms oracle registration +type MsgRegisterOracleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Oracle ID assigned + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Position ID + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Registration timestamp + RegisteredAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=registered_at,json=registeredAt,proto3" json:"registered_at,omitempty"` +} + +func (x *MsgRegisterOracleResponse) Reset() { + *x = MsgRegisterOracleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRegisterOracleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRegisterOracleResponse) ProtoMessage() {} + +// Deprecated: Use MsgRegisterOracleResponse.ProtoReflect.Descriptor instead. +func (*MsgRegisterOracleResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{13} +} + +func (x *MsgRegisterOracleResponse) GetOracleId() string { + if x != nil { + return x.OracleId + } + return "" +} + +func (x *MsgRegisterOracleResponse) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *MsgRegisterOracleResponse) GetRegisteredAt() *timestamppb.Timestamp { + if x != nil { + return x.RegisteredAt + } + return nil +} + +// MsgUpdateOracleConfig updates an oracle's configuration +type MsgUpdateOracleConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Oracle ID to update + OracleId string `protobuf:"bytes,2,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // New maximum staleness (0 to keep current) + MaxStaleness int64 `protobuf:"varint,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Whether to activate/deactivate + Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` +} + +func (x *MsgUpdateOracleConfig) Reset() { + *x = MsgUpdateOracleConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateOracleConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateOracleConfig) ProtoMessage() {} + +// Deprecated: Use MsgUpdateOracleConfig.ProtoReflect.Descriptor instead. +func (*MsgUpdateOracleConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{14} +} + +func (x *MsgUpdateOracleConfig) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateOracleConfig) GetOracleId() string { + if x != nil { + return x.OracleId + } + return "" +} + +func (x *MsgUpdateOracleConfig) GetMaxStaleness() int64 { + if x != nil { + return x.MaxStaleness + } + return 0 +} + +func (x *MsgUpdateOracleConfig) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +// MsgUpdateOracleConfigResponse confirms configuration update +type MsgUpdateOracleConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Oracle ID + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Updated configuration + UpdatedConfig *EnrolledOracle `protobuf:"bytes,2,opt,name=updated_config,json=updatedConfig,proto3" json:"updated_config,omitempty"` +} + +func (x *MsgUpdateOracleConfigResponse) Reset() { + *x = MsgUpdateOracleConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateOracleConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateOracleConfigResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateOracleConfigResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateOracleConfigResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{15} +} + +func (x *MsgUpdateOracleConfigResponse) GetOracleId() string { + if x != nil { + return x.OracleId + } + return "" +} + +func (x *MsgUpdateOracleConfigResponse) GetUpdatedConfig() *EnrolledOracle { + if x != nil { + return x.UpdatedConfig + } + return nil +} + +// MsgRemoveOracle removes an oracle from the system +type MsgRemoveOracle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Oracle ID to remove + OracleId string `protobuf:"bytes,2,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Reason for removal + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *MsgRemoveOracle) Reset() { + *x = MsgRemoveOracle{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveOracle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveOracle) ProtoMessage() {} + +// Deprecated: Use MsgRemoveOracle.ProtoReflect.Descriptor instead. +func (*MsgRemoveOracle) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{16} +} + +func (x *MsgRemoveOracle) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgRemoveOracle) GetOracleId() string { + if x != nil { + return x.OracleId + } + return "" +} + +func (x *MsgRemoveOracle) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +// MsgRemoveOracleResponse confirms oracle removal +type MsgRemoveOracleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Oracle ID removed + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Position ID affected + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Removal timestamp + RemovedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=removed_at,json=removedAt,proto3" json:"removed_at,omitempty"` +} + +func (x *MsgRemoveOracleResponse) Reset() { + *x = MsgRemoveOracleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoveOracleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoveOracleResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoveOracleResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoveOracleResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{17} +} + +func (x *MsgRemoveOracleResponse) GetOracleId() string { + if x != nil { + return x.OracleId + } + return "" +} + +func (x *MsgRemoveOracleResponse) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *MsgRemoveOracleResponse) GetRemovedAt() *timestamppb.Timestamp { + if x != nil { + return x.RemovedAt + } + return nil +} + +// MsgUpdateOracleParams updates global oracle parameters +type MsgUpdateOracleParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Updated governance parameters + Params *OracleGovernanceParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *MsgUpdateOracleParams) Reset() { + *x = MsgUpdateOracleParams{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateOracleParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateOracleParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateOracleParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateOracleParams) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{18} +} + +func (x *MsgUpdateOracleParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateOracleParams) GetParams() *OracleGovernanceParams { + if x != nil { + return x.Params + } + return nil +} + +// MsgUpdateOracleParamsResponse confirms parameter update +type MsgUpdateOracleParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Previous parameters + PreviousParams *OracleGovernanceParams `protobuf:"bytes,1,opt,name=previous_params,json=previousParams,proto3" json:"previous_params,omitempty"` + // New parameters + NewParams *OracleGovernanceParams `protobuf:"bytes,2,opt,name=new_params,json=newParams,proto3" json:"new_params,omitempty"` +} + +func (x *MsgUpdateOracleParamsResponse) Reset() { + *x = MsgUpdateOracleParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_oracle_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateOracleParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateOracleParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateOracleParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateOracleParamsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP(), []int{19} +} + +func (x *MsgUpdateOracleParamsResponse) GetPreviousParams() *OracleGovernanceParams { + if x != nil { + return x.PreviousParams + } + return nil +} + +func (x *MsgUpdateOracleParamsResponse) GetNewParams() *OracleGovernanceParams { + if x != nil { + return x.NewParams + } + return nil +} + +var File_noble_dollar_vaults_v2_oracle_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_oracle_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, + 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x03, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x6a, 0x0a, 0x0e, 0x6f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, + 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x48, 0x65, 0x6c, 0x64, 0x12, 0x57, + 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, + 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, + 0x1f, 0x01, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0xb7, + 0x01, 0x0a, 0x0d, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x12, 0x6a, 0x0a, 0x0e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, + 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, + 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, + 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xc6, 0x01, 0x0a, 0x14, 0x45, 0x6e, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x6a, 0x0a, 0x0e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x0d, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0xc8, 0x02, 0x0a, 0x0e, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x4f, 0x72, + 0x61, 0x63, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x6a, 0x0a, 0x0e, 0x6f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x6c, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, + 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x92, 0x01, 0x0a, + 0x0f, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x2b, 0x0a, 0x11, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x68, 0x72, 0x65, + 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x77, 0x61, 0x72, + 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x2d, 0x0a, + 0x12, 0x63, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x63, 0x72, 0x69, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, + 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, + 0x73, 0x22, 0x9a, 0x02, 0x0a, 0x0a, 0x4e, 0x41, 0x56, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x57, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, + 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x48, 0x65, 0x6c, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x8e, + 0x01, 0x0a, 0x10, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, + 0x65, 0x67, 0x79, 0x12, 0x2d, 0x0a, 0x13, 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x67, 0x6f, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x10, 0x75, 0x73, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x47, 0x6f, + 0x6f, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x43, 0x61, + 0x63, 0x68, 0x65, 0x41, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, + 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, + 0xda, 0x02, 0x0a, 0x16, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, + 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, + 0x78, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x69, + 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x61, + 0x78, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x62, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x6d, 0x61, 0x78, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x70, + 0x73, 0x12, 0x54, 0x0a, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x61, + 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, + 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x53, 0x0a, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, + 0x61, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0f, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x22, 0xb3, 0x01, 0x0a, + 0x0b, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x0a, 0x14, + 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, 0x74, 0x61, 0x6c, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x3a, + 0x0a, 0x19, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x17, 0x70, 0x72, 0x69, 0x63, 0x65, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x66, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, + 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x66, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, + 0x6c, 0x64, 0x22, 0xd7, 0x02, 0x0a, 0x0c, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x47, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x6c, + 0x61, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x63, 0x6f, + 0x6e, 0x73, 0x65, 0x63, 0x75, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x76, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x73, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x69, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x12, 0x4f, 0x0a, 0x0f, + 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, + 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0e, 0x73, + 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, + 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xbb, 0x02, 0x0a, + 0x17, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6c, + 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x61, + 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x45, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x49, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x22, 0x92, 0x03, 0x0a, 0x12, 0x4f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x5e, 0x0a, 0x0f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6e, 0x65, 0x77, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x51, 0x0a, 0x0b, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x76, 0x22, + 0xd4, 0x03, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x6a, + 0x0a, 0x0e, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x3b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x63, 0x70, 0x2d, 0x69, + 0x6e, 0x6e, 0x6f, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72, + 0x6c, 0x61, 0x6e, 0x65, 0x2d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x75, 0x74, 0x69, 0x6c, + 0x2e, 0x48, 0x65, 0x78, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x6f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x23, 0x0a, + 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, + 0x73, 0x73, 0x12, 0x49, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, + 0x11, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x3a, 0x3a, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x49, + 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x49, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, + 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x41, 0x74, 0x22, 0xe9, 0x01, + 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, + 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, + 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x65, 0x73, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x3a, 0x3e, 0x88, 0xa0, 0x1f, 0x00, 0xe8, + 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x8b, 0x01, 0x0a, 0x1d, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, + 0x65, 0x64, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xb8, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x38, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0a, + 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x41, + 0x74, 0x22, 0xdd, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x72, 0x61, + 0x63, 0x6c, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x3a, 0x3e, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x22, 0xd3, 0x01, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x72, 0x61, 0x63, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x47, 0x6f, 0x76, 0x65, + 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x53, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x6e, 0x65, + 0x77, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2a, 0x87, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x6c, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x54, + 0x41, 0x4c, 0x45, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x46, 0x52, + 0x45, 0x53, 0x48, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x4e, 0x45, + 0x53, 0x53, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x10, 0x01, + 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x4c, 0x45, + 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1c, 0x0a, + 0x18, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, + 0x5f, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x1a, 0x04, 0x88, 0xa3, 0x1e, + 0x00, 0x42, 0xdd, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x42, 0x0b, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x37, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x78, 0x79, + 0x7a, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x3b, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, 0x56, 0xaa, 0x02, + 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, + 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, + 0xe2, 0x02, 0x22, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x44, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x3a, 0x3a, 0x56, + 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_oracle_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_oracle_proto_rawDescData = file_noble_dollar_vaults_v2_oracle_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_oracle_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_oracle_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_oracle_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_oracle_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_oracle_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_oracle_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_noble_dollar_vaults_v2_oracle_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_noble_dollar_vaults_v2_oracle_proto_goTypes = []interface{}{ + (StalenessLevel)(0), // 0: noble.dollar.vaults.v2.StalenessLevel + (*RemotePositionOracle)(nil), // 1: noble.dollar.vaults.v2.RemotePositionOracle + (*OracleMapping)(nil), // 2: noble.dollar.vaults.v2.OracleMapping + (*EnrolledOracleRouter)(nil), // 3: noble.dollar.vaults.v2.EnrolledOracleRouter + (*EnrolledOracle)(nil), // 4: noble.dollar.vaults.v2.EnrolledOracle + (*StalenessConfig)(nil), // 5: noble.dollar.vaults.v2.StalenessConfig + (*NAVPayload)(nil), // 6: noble.dollar.vaults.v2.NAVPayload + (*FallbackStrategy)(nil), // 7: noble.dollar.vaults.v2.FallbackStrategy + (*OracleGovernanceParams)(nil), // 8: noble.dollar.vaults.v2.OracleGovernanceParams + (*AlertConfig)(nil), // 9: noble.dollar.vaults.v2.AlertConfig + (*OracleStatus)(nil), // 10: noble.dollar.vaults.v2.OracleStatus + (*CrossChainOracleMessage)(nil), // 11: noble.dollar.vaults.v2.CrossChainOracleMessage + (*OracleUpdateResult)(nil), // 12: noble.dollar.vaults.v2.OracleUpdateResult + (*MsgRegisterOracle)(nil), // 13: noble.dollar.vaults.v2.MsgRegisterOracle + (*MsgRegisterOracleResponse)(nil), // 14: noble.dollar.vaults.v2.MsgRegisterOracleResponse + (*MsgUpdateOracleConfig)(nil), // 15: noble.dollar.vaults.v2.MsgUpdateOracleConfig + (*MsgUpdateOracleConfigResponse)(nil), // 16: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse + (*MsgRemoveOracle)(nil), // 17: noble.dollar.vaults.v2.MsgRemoveOracle + (*MsgRemoveOracleResponse)(nil), // 18: noble.dollar.vaults.v2.MsgRemoveOracleResponse + (*MsgUpdateOracleParams)(nil), // 19: noble.dollar.vaults.v2.MsgUpdateOracleParams + (*MsgUpdateOracleParamsResponse)(nil), // 20: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse + (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp + (ProviderType)(0), // 22: noble.dollar.vaults.v2.ProviderType +} +var file_noble_dollar_vaults_v2_oracle_proto_depIdxs = []int32{ + 21, // 0: noble.dollar.vaults.v2.RemotePositionOracle.last_update:type_name -> google.protobuf.Timestamp + 21, // 1: noble.dollar.vaults.v2.EnrolledOracle.registered_at:type_name -> google.protobuf.Timestamp + 5, // 2: noble.dollar.vaults.v2.OracleGovernanceParams.default_staleness:type_name -> noble.dollar.vaults.v2.StalenessConfig + 7, // 3: noble.dollar.vaults.v2.OracleGovernanceParams.default_fallback:type_name -> noble.dollar.vaults.v2.FallbackStrategy + 21, // 4: noble.dollar.vaults.v2.OracleStatus.last_success:type_name -> google.protobuf.Timestamp + 0, // 5: noble.dollar.vaults.v2.OracleStatus.staleness_level:type_name -> noble.dollar.vaults.v2.StalenessLevel + 21, // 6: noble.dollar.vaults.v2.CrossChainOracleMessage.received_at:type_name -> google.protobuf.Timestamp + 22, // 7: noble.dollar.vaults.v2.CrossChainOracleMessage.provider_type:type_name -> noble.dollar.vaults.v2.ProviderType + 22, // 8: noble.dollar.vaults.v2.MsgRegisterOracle.provider_type:type_name -> noble.dollar.vaults.v2.ProviderType + 21, // 9: noble.dollar.vaults.v2.MsgRegisterOracleResponse.registered_at:type_name -> google.protobuf.Timestamp + 4, // 10: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse.updated_config:type_name -> noble.dollar.vaults.v2.EnrolledOracle + 21, // 11: noble.dollar.vaults.v2.MsgRemoveOracleResponse.removed_at:type_name -> google.protobuf.Timestamp + 8, // 12: noble.dollar.vaults.v2.MsgUpdateOracleParams.params:type_name -> noble.dollar.vaults.v2.OracleGovernanceParams + 8, // 13: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.previous_params:type_name -> noble.dollar.vaults.v2.OracleGovernanceParams + 8, // 14: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse.new_params:type_name -> noble.dollar.vaults.v2.OracleGovernanceParams + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_oracle_proto_init() } +func file_noble_dollar_vaults_v2_oracle_proto_init() { + if File_noble_dollar_vaults_v2_oracle_proto != nil { + return + } + file_noble_dollar_vaults_v2_cross_chain_proto_init() + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemotePositionOracle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OracleMapping); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnrolledOracleRouter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnrolledOracle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StalenessConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FallbackStrategy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OracleGovernanceParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AlertConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OracleStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CrossChainOracleMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OracleUpdateResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRegisterOracle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRegisterOracleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateOracleConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateOracleConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveOracle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoveOracleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateOracleParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_oracle_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateOracleParamsResponse); 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_noble_dollar_vaults_v2_oracle_proto_rawDesc, + NumEnums: 1, + NumMessages: 20, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_oracle_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_oracle_proto_depIdxs, + EnumInfos: file_noble_dollar_vaults_v2_oracle_proto_enumTypes, + MessageInfos: file_noble_dollar_vaults_v2_oracle_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_oracle_proto = out.File + file_noble_dollar_vaults_v2_oracle_proto_rawDesc = nil + file_noble_dollar_vaults_v2_oracle_proto_goTypes = nil + file_noble_dollar_vaults_v2_oracle_proto_depIdxs = nil +} diff --git a/api/vaults/v2/query.pulsar.go b/api/vaults/v2/query.pulsar.go new file mode 100644 index 00000000..97549720 --- /dev/null +++ b/api/vaults/v2/query.pulsar.go @@ -0,0 +1,42817 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sort "sort" + sync "sync" +) + +var ( + md_QueryVaultInfoRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultInfoRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultInfoRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultInfoRequest)(nil) + +type fastReflection_QueryVaultInfoRequest QueryVaultInfoRequest + +func (x *QueryVaultInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultInfoRequest)(x) +} + +func (x *QueryVaultInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_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_QueryVaultInfoRequest_messageType fastReflection_QueryVaultInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultInfoRequest_messageType{} + +type fastReflection_QueryVaultInfoRequest_messageType struct{} + +func (x fastReflection_QueryVaultInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultInfoRequest)(nil) +} +func (x fastReflection_QueryVaultInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultInfoRequest) +} +func (x fastReflection_QueryVaultInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultInfoRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultInfoRequest +} + +// 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_QueryVaultInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultInfoRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryVaultInfoRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryVaultInfoRequest)(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_QueryVaultInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryVaultInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoRequest 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_QueryVaultInfoRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoRequest 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_QueryVaultInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoRequest 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_QueryVaultInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoRequest 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_QueryVaultInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoRequest 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_QueryVaultInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoRequest 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_QueryVaultInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultInfoRequest", 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_QueryVaultInfoRequest) 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_QueryVaultInfoRequest) 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_QueryVaultInfoRequest) 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_QueryVaultInfoRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultInfoRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryVaultInfoRequest) + 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 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().(*QueryVaultInfoRequest) + 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: QueryVaultInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_QueryVaultInfoResponse protoreflect.MessageDescriptor + fd_QueryVaultInfoResponse_config protoreflect.FieldDescriptor + fd_QueryVaultInfoResponse_total_deposits protoreflect.FieldDescriptor + fd_QueryVaultInfoResponse_total_accrued_yield protoreflect.FieldDescriptor + fd_QueryVaultInfoResponse_total_nav protoreflect.FieldDescriptor + fd_QueryVaultInfoResponse_total_depositors protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultInfoResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultInfoResponse") + fd_QueryVaultInfoResponse_config = md_QueryVaultInfoResponse.Fields().ByName("config") + fd_QueryVaultInfoResponse_total_deposits = md_QueryVaultInfoResponse.Fields().ByName("total_deposits") + fd_QueryVaultInfoResponse_total_accrued_yield = md_QueryVaultInfoResponse.Fields().ByName("total_accrued_yield") + fd_QueryVaultInfoResponse_total_nav = md_QueryVaultInfoResponse.Fields().ByName("total_nav") + fd_QueryVaultInfoResponse_total_depositors = md_QueryVaultInfoResponse.Fields().ByName("total_depositors") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultInfoResponse)(nil) + +type fastReflection_QueryVaultInfoResponse QueryVaultInfoResponse + +func (x *QueryVaultInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultInfoResponse)(x) +} + +func (x *QueryVaultInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[1] + 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_QueryVaultInfoResponse_messageType fastReflection_QueryVaultInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultInfoResponse_messageType{} + +type fastReflection_QueryVaultInfoResponse_messageType struct{} + +func (x fastReflection_QueryVaultInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultInfoResponse)(nil) +} +func (x fastReflection_QueryVaultInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultInfoResponse) +} +func (x fastReflection_QueryVaultInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultInfoResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultInfoResponse +} + +// 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_QueryVaultInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultInfoResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryVaultInfoResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryVaultInfoResponse)(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_QueryVaultInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Config != nil { + value := protoreflect.ValueOfMessage(x.Config.ProtoReflect()) + if !f(fd_QueryVaultInfoResponse_config, value) { + return + } + } + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_QueryVaultInfoResponse_total_deposits, value) { + return + } + } + if x.TotalAccruedYield != "" { + value := protoreflect.ValueOfString(x.TotalAccruedYield) + if !f(fd_QueryVaultInfoResponse_total_accrued_yield, value) { + return + } + } + if x.TotalNav != "" { + value := protoreflect.ValueOfString(x.TotalNav) + if !f(fd_QueryVaultInfoResponse_total_nav, value) { + return + } + } + if x.TotalDepositors != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalDepositors) + if !f(fd_QueryVaultInfoResponse_total_depositors, 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_QueryVaultInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.config": + return x.Config != nil + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_accrued_yield": + return x.TotalAccruedYield != "" + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_nav": + return x.TotalNav != "" + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_depositors": + return x.TotalDepositors != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoResponse 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_QueryVaultInfoResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.config": + x.Config = nil + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_accrued_yield": + x.TotalAccruedYield = "" + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_nav": + x.TotalNav = "" + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_depositors": + x.TotalDepositors = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoResponse 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_QueryVaultInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.config": + value := x.Config + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_accrued_yield": + value := x.TotalAccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_nav": + value := x.TotalNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_depositors": + value := x.TotalDepositors + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoResponse 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_QueryVaultInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.config": + x.Config = value.Message().Interface().(*VaultConfig) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_accrued_yield": + x.TotalAccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_nav": + x.TotalNav = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_depositors": + x.TotalDepositors = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoResponse 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_QueryVaultInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.config": + if x.Config == nil { + x.Config = new(VaultConfig) + } + return protoreflect.ValueOfMessage(x.Config.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.QueryVaultInfoResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_accrued_yield": + panic(fmt.Errorf("field total_accrued_yield of message noble.dollar.vaults.v2.QueryVaultInfoResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_nav": + panic(fmt.Errorf("field total_nav of message noble.dollar.vaults.v2.QueryVaultInfoResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_depositors": + panic(fmt.Errorf("field total_depositors of message noble.dollar.vaults.v2.QueryVaultInfoResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoResponse 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_QueryVaultInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.config": + m := new(VaultConfig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryVaultInfoResponse.total_depositors": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultInfoResponse 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_QueryVaultInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultInfoResponse", 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_QueryVaultInfoResponse) 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_QueryVaultInfoResponse) 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_QueryVaultInfoResponse) 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_QueryVaultInfoResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultInfoResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Config != nil { + l = options.Size(x.Config) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TotalDepositors != 0 { + n += 1 + runtime.Sov(uint64(x.TotalDepositors)) + } + 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().(*QueryVaultInfoResponse) + 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.TotalDepositors != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalDepositors)) + i-- + dAtA[i] = 0x28 + } + if len(x.TotalNav) > 0 { + i -= len(x.TotalNav) + copy(dAtA[i:], x.TotalNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalNav))) + i-- + dAtA[i] = 0x22 + } + if len(x.TotalAccruedYield) > 0 { + i -= len(x.TotalAccruedYield) + copy(dAtA[i:], x.TotalAccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAccruedYield))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + i-- + dAtA[i] = 0x12 + } + if x.Config != nil { + encoded, err := options.Marshal(x.Config) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryVaultInfoResponse) + 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: QueryVaultInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultInfoResponse: 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 Config", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Config == nil { + x.Config = &VaultConfig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Config); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits = 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 TotalAccruedYield", 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.TotalAccruedYield = 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 TotalNav", 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.TotalNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDepositors", wireType) + } + x.TotalDepositors = 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.TotalDepositors |= 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, + } +} + +var ( + md_QueryAllVaultsRequest protoreflect.MessageDescriptor + fd_QueryAllVaultsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryAllVaultsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryAllVaultsRequest") + fd_QueryAllVaultsRequest_pagination = md_QueryAllVaultsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllVaultsRequest)(nil) + +type fastReflection_QueryAllVaultsRequest QueryAllVaultsRequest + +func (x *QueryAllVaultsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllVaultsRequest)(x) +} + +func (x *QueryAllVaultsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[2] + 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_QueryAllVaultsRequest_messageType fastReflection_QueryAllVaultsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllVaultsRequest_messageType{} + +type fastReflection_QueryAllVaultsRequest_messageType struct{} + +func (x fastReflection_QueryAllVaultsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllVaultsRequest)(nil) +} +func (x fastReflection_QueryAllVaultsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllVaultsRequest) +} +func (x fastReflection_QueryAllVaultsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllVaultsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllVaultsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllVaultsRequest +} + +// 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_QueryAllVaultsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllVaultsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllVaultsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllVaultsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllVaultsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllVaultsRequest)(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_QueryAllVaultsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllVaultsRequest_pagination, 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_QueryAllVaultsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsRequest 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_QueryAllVaultsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsRequest 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_QueryAllVaultsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsRequest 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_QueryAllVaultsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsRequest 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_QueryAllVaultsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsRequest 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_QueryAllVaultsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsRequest 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_QueryAllVaultsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryAllVaultsRequest", 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_QueryAllVaultsRequest) 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_QueryAllVaultsRequest) 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_QueryAllVaultsRequest) 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_QueryAllVaultsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllVaultsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryAllVaultsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryAllVaultsRequest) + 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: QueryAllVaultsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllVaultsRequest: 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryAllVaultsResponse_1_list)(nil) + +type _QueryAllVaultsResponse_1_list struct { + list *[]*QueryVaultInfoResponse +} + +func (x *_QueryAllVaultsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAllVaultsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryAllVaultsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryVaultInfoResponse) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAllVaultsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryVaultInfoResponse) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAllVaultsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryVaultInfoResponse) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllVaultsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryAllVaultsResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryVaultInfoResponse) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryAllVaultsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAllVaultsResponse protoreflect.MessageDescriptor + fd_QueryAllVaultsResponse_vaults protoreflect.FieldDescriptor + fd_QueryAllVaultsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryAllVaultsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryAllVaultsResponse") + fd_QueryAllVaultsResponse_vaults = md_QueryAllVaultsResponse.Fields().ByName("vaults") + fd_QueryAllVaultsResponse_pagination = md_QueryAllVaultsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllVaultsResponse)(nil) + +type fastReflection_QueryAllVaultsResponse QueryAllVaultsResponse + +func (x *QueryAllVaultsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllVaultsResponse)(x) +} + +func (x *QueryAllVaultsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[3] + 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_QueryAllVaultsResponse_messageType fastReflection_QueryAllVaultsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllVaultsResponse_messageType{} + +type fastReflection_QueryAllVaultsResponse_messageType struct{} + +func (x fastReflection_QueryAllVaultsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllVaultsResponse)(nil) +} +func (x fastReflection_QueryAllVaultsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllVaultsResponse) +} +func (x fastReflection_QueryAllVaultsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllVaultsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllVaultsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllVaultsResponse +} + +// 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_QueryAllVaultsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllVaultsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllVaultsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllVaultsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllVaultsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllVaultsResponse)(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_QueryAllVaultsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Vaults) != 0 { + value := protoreflect.ValueOfList(&_QueryAllVaultsResponse_1_list{list: &x.Vaults}) + if !f(fd_QueryAllVaultsResponse_vaults, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllVaultsResponse_pagination, 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_QueryAllVaultsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults": + return len(x.Vaults) != 0 + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsResponse 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_QueryAllVaultsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults": + x.Vaults = nil + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsResponse 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_QueryAllVaultsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults": + if len(x.Vaults) == 0 { + return protoreflect.ValueOfList(&_QueryAllVaultsResponse_1_list{}) + } + listValue := &_QueryAllVaultsResponse_1_list{list: &x.Vaults} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsResponse 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_QueryAllVaultsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults": + lv := value.List() + clv := lv.(*_QueryAllVaultsResponse_1_list) + x.Vaults = *clv.list + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsResponse 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_QueryAllVaultsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults": + if x.Vaults == nil { + x.Vaults = []*QueryVaultInfoResponse{} + } + value := &_QueryAllVaultsResponse_1_list{list: &x.Vaults} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsResponse 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_QueryAllVaultsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults": + list := []*QueryVaultInfoResponse{} + return protoreflect.ValueOfList(&_QueryAllVaultsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllVaultsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllVaultsResponse 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_QueryAllVaultsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryAllVaultsResponse", 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_QueryAllVaultsResponse) 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_QueryAllVaultsResponse) 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_QueryAllVaultsResponse) 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_QueryAllVaultsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllVaultsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Vaults) > 0 { + for _, e := range x.Vaults { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryAllVaultsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Vaults) > 0 { + for iNdEx := len(x.Vaults) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Vaults[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryAllVaultsResponse) + 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: QueryAllVaultsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllVaultsResponse: 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 Vaults", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Vaults = append(x.Vaults, &QueryVaultInfoResponse{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Vaults[len(x.Vaults)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryVaultRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultRequest)(nil) + +type fastReflection_QueryVaultRequest QueryVaultRequest + +func (x *QueryVaultRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultRequest)(x) +} + +func (x *QueryVaultRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[4] + 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_QueryVaultRequest_messageType fastReflection_QueryVaultRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultRequest_messageType{} + +type fastReflection_QueryVaultRequest_messageType struct{} + +func (x fastReflection_QueryVaultRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultRequest)(nil) +} +func (x fastReflection_QueryVaultRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultRequest) +} +func (x fastReflection_QueryVaultRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultRequest +} + +// 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_QueryVaultRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultRequest) New() protoreflect.Message { + return new(fastReflection_QueryVaultRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultRequest) Interface() protoreflect.ProtoMessage { + return (*QueryVaultRequest)(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_QueryVaultRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryVaultRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRequest 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_QueryVaultRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRequest 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_QueryVaultRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRequest 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_QueryVaultRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRequest 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_QueryVaultRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRequest 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_QueryVaultRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRequest 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_QueryVaultRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultRequest", 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_QueryVaultRequest) 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_QueryVaultRequest) 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_QueryVaultRequest) 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_QueryVaultRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryVaultRequest) + 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 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().(*QueryVaultRequest) + 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: QueryVaultRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var _ protoreflect.List = (*_QueryVaultResponse_1_list)(nil) + +type _QueryVaultResponse_1_list struct { + list *[]*QueryVaultInfoResponse +} + +func (x *_QueryVaultResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryVaultResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryVaultResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryVaultInfoResponse) + (*x.list)[i] = concreteValue +} + +func (x *_QueryVaultResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryVaultInfoResponse) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryVaultResponse_1_list) AppendMutable() protoreflect.Value { + v := new(QueryVaultInfoResponse) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryVaultResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryVaultResponse_1_list) NewElement() protoreflect.Value { + v := new(QueryVaultInfoResponse) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryVaultResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryVaultResponse protoreflect.MessageDescriptor + fd_QueryVaultResponse_vaults protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultResponse") + fd_QueryVaultResponse_vaults = md_QueryVaultResponse.Fields().ByName("vaults") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultResponse)(nil) + +type fastReflection_QueryVaultResponse QueryVaultResponse + +func (x *QueryVaultResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultResponse)(x) +} + +func (x *QueryVaultResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[5] + 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_QueryVaultResponse_messageType fastReflection_QueryVaultResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultResponse_messageType{} + +type fastReflection_QueryVaultResponse_messageType struct{} + +func (x fastReflection_QueryVaultResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultResponse)(nil) +} +func (x fastReflection_QueryVaultResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultResponse) +} +func (x fastReflection_QueryVaultResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultResponse +} + +// 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_QueryVaultResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultResponse) New() protoreflect.Message { + return new(fastReflection_QueryVaultResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultResponse) Interface() protoreflect.ProtoMessage { + return (*QueryVaultResponse)(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_QueryVaultResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Vaults) != 0 { + value := protoreflect.ValueOfList(&_QueryVaultResponse_1_list{list: &x.Vaults}) + if !f(fd_QueryVaultResponse_vaults, 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_QueryVaultResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultResponse.vaults": + return len(x.Vaults) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultResponse 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_QueryVaultResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultResponse.vaults": + x.Vaults = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultResponse 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_QueryVaultResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryVaultResponse.vaults": + if len(x.Vaults) == 0 { + return protoreflect.ValueOfList(&_QueryVaultResponse_1_list{}) + } + listValue := &_QueryVaultResponse_1_list{list: &x.Vaults} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultResponse 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_QueryVaultResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultResponse.vaults": + lv := value.List() + clv := lv.(*_QueryVaultResponse_1_list) + x.Vaults = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultResponse 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_QueryVaultResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultResponse.vaults": + if x.Vaults == nil { + x.Vaults = []*QueryVaultInfoResponse{} + } + value := &_QueryVaultResponse_1_list{list: &x.Vaults} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultResponse 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_QueryVaultResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultResponse.vaults": + list := []*QueryVaultInfoResponse{} + return protoreflect.ValueOfList(&_QueryVaultResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultResponse 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_QueryVaultResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultResponse", 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_QueryVaultResponse) 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_QueryVaultResponse) 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_QueryVaultResponse) 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_QueryVaultResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Vaults) > 0 { + for _, e := range x.Vaults { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + 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().(*QueryVaultResponse) + 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 len(x.Vaults) > 0 { + for iNdEx := len(x.Vaults) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Vaults[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryVaultResponse) + 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: QueryVaultResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultResponse: 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 Vaults", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Vaults = append(x.Vaults, &QueryVaultInfoResponse{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Vaults[len(x.Vaults)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryUserPositionRequest protoreflect.MessageDescriptor + fd_QueryUserPositionRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserPositionRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserPositionRequest") + fd_QueryUserPositionRequest_address = md_QueryUserPositionRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserPositionRequest)(nil) + +type fastReflection_QueryUserPositionRequest QueryUserPositionRequest + +func (x *QueryUserPositionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserPositionRequest)(x) +} + +func (x *QueryUserPositionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[6] + 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_QueryUserPositionRequest_messageType fastReflection_QueryUserPositionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserPositionRequest_messageType{} + +type fastReflection_QueryUserPositionRequest_messageType struct{} + +func (x fastReflection_QueryUserPositionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserPositionRequest)(nil) +} +func (x fastReflection_QueryUserPositionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionRequest) +} +func (x fastReflection_QueryUserPositionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserPositionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionRequest +} + +// 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_QueryUserPositionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryUserPositionRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserPositionRequest) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserPositionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryUserPositionRequest)(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_QueryUserPositionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryUserPositionRequest_address, 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_QueryUserPositionRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionRequest 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_QueryUserPositionRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionRequest 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_QueryUserPositionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionRequest 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_QueryUserPositionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionRequest 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_QueryUserPositionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryUserPositionRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionRequest 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_QueryUserPositionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionRequest 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_QueryUserPositionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserPositionRequest", 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_QueryUserPositionRequest) 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_QueryUserPositionRequest) 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_QueryUserPositionRequest) 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_QueryUserPositionRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserPositionRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserPositionRequest) + 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 len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryUserPositionRequest) + 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: QueryUserPositionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserPositionRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryUserPositionResponse protoreflect.MessageDescriptor + fd_QueryUserPositionResponse_position protoreflect.FieldDescriptor + fd_QueryUserPositionResponse_current_value protoreflect.FieldDescriptor + fd_QueryUserPositionResponse_unrealized_yield protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserPositionResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserPositionResponse") + fd_QueryUserPositionResponse_position = md_QueryUserPositionResponse.Fields().ByName("position") + fd_QueryUserPositionResponse_current_value = md_QueryUserPositionResponse.Fields().ByName("current_value") + fd_QueryUserPositionResponse_unrealized_yield = md_QueryUserPositionResponse.Fields().ByName("unrealized_yield") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserPositionResponse)(nil) + +type fastReflection_QueryUserPositionResponse QueryUserPositionResponse + +func (x *QueryUserPositionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserPositionResponse)(x) +} + +func (x *QueryUserPositionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[7] + 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_QueryUserPositionResponse_messageType fastReflection_QueryUserPositionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserPositionResponse_messageType{} + +type fastReflection_QueryUserPositionResponse_messageType struct{} + +func (x fastReflection_QueryUserPositionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserPositionResponse)(nil) +} +func (x fastReflection_QueryUserPositionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionResponse) +} +func (x fastReflection_QueryUserPositionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserPositionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionResponse +} + +// 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_QueryUserPositionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryUserPositionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserPositionResponse) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserPositionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryUserPositionResponse)(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_QueryUserPositionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Position != nil { + value := protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + if !f(fd_QueryUserPositionResponse_position, value) { + return + } + } + if x.CurrentValue != "" { + value := protoreflect.ValueOfString(x.CurrentValue) + if !f(fd_QueryUserPositionResponse_current_value, value) { + return + } + } + if x.UnrealizedYield != "" { + value := protoreflect.ValueOfString(x.UnrealizedYield) + if !f(fd_QueryUserPositionResponse_unrealized_yield, 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_QueryUserPositionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionResponse.position": + return x.Position != nil + case "noble.dollar.vaults.v2.QueryUserPositionResponse.current_value": + return x.CurrentValue != "" + case "noble.dollar.vaults.v2.QueryUserPositionResponse.unrealized_yield": + return x.UnrealizedYield != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionResponse 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_QueryUserPositionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionResponse.position": + x.Position = nil + case "noble.dollar.vaults.v2.QueryUserPositionResponse.current_value": + x.CurrentValue = "" + case "noble.dollar.vaults.v2.QueryUserPositionResponse.unrealized_yield": + x.UnrealizedYield = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionResponse 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_QueryUserPositionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionResponse.position": + value := x.Position + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.current_value": + value := x.CurrentValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.unrealized_yield": + value := x.UnrealizedYield + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionResponse 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_QueryUserPositionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionResponse.position": + x.Position = value.Message().Interface().(*UserPosition) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.current_value": + x.CurrentValue = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.unrealized_yield": + x.UnrealizedYield = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionResponse 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_QueryUserPositionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionResponse.position": + if x.Position == nil { + x.Position = new(UserPosition) + } + return protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.current_value": + panic(fmt.Errorf("field current_value of message noble.dollar.vaults.v2.QueryUserPositionResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.unrealized_yield": + panic(fmt.Errorf("field unrealized_yield of message noble.dollar.vaults.v2.QueryUserPositionResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionResponse 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_QueryUserPositionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionResponse.position": + m := new(UserPosition) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryUserPositionResponse.current_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserPositionResponse.unrealized_yield": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionResponse 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_QueryUserPositionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserPositionResponse", 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_QueryUserPositionResponse) 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_QueryUserPositionResponse) 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_QueryUserPositionResponse) 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_QueryUserPositionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserPositionResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Position != nil { + l = options.Size(x.Position) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CurrentValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.UnrealizedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserPositionResponse) + 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 len(x.UnrealizedYield) > 0 { + i -= len(x.UnrealizedYield) + copy(dAtA[i:], x.UnrealizedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UnrealizedYield))) + i-- + dAtA[i] = 0x1a + } + if len(x.CurrentValue) > 0 { + i -= len(x.CurrentValue) + copy(dAtA[i:], x.CurrentValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentValue))) + i-- + dAtA[i] = 0x12 + } + if x.Position != nil { + encoded, err := options.Marshal(x.Position) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryUserPositionResponse) + 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: QueryUserPositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserPositionResponse: 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 Position", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Position == nil { + x.Position = &UserPosition{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Position); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = 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 UnrealizedYield", 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.UnrealizedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryUserPositionsRequest protoreflect.MessageDescriptor + fd_QueryUserPositionsRequest_address protoreflect.FieldDescriptor + fd_QueryUserPositionsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserPositionsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserPositionsRequest") + fd_QueryUserPositionsRequest_address = md_QueryUserPositionsRequest.Fields().ByName("address") + fd_QueryUserPositionsRequest_pagination = md_QueryUserPositionsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserPositionsRequest)(nil) + +type fastReflection_QueryUserPositionsRequest QueryUserPositionsRequest + +func (x *QueryUserPositionsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserPositionsRequest)(x) +} + +func (x *QueryUserPositionsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[8] + 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_QueryUserPositionsRequest_messageType fastReflection_QueryUserPositionsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserPositionsRequest_messageType{} + +type fastReflection_QueryUserPositionsRequest_messageType struct{} + +func (x fastReflection_QueryUserPositionsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserPositionsRequest)(nil) +} +func (x fastReflection_QueryUserPositionsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionsRequest) +} +func (x fastReflection_QueryUserPositionsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserPositionsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionsRequest +} + +// 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_QueryUserPositionsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryUserPositionsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserPositionsRequest) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserPositionsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryUserPositionsRequest)(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_QueryUserPositionsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryUserPositionsRequest_address, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryUserPositionsRequest_pagination, 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_QueryUserPositionsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.address": + return x.Address != "" + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsRequest 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_QueryUserPositionsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.address": + x.Address = "" + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsRequest 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_QueryUserPositionsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsRequest 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_QueryUserPositionsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.address": + x.Address = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsRequest 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_QueryUserPositionsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryUserPositionsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsRequest 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_QueryUserPositionsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsRequest 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_QueryUserPositionsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserPositionsRequest", 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_QueryUserPositionsRequest) 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_QueryUserPositionsRequest) 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_QueryUserPositionsRequest) 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_QueryUserPositionsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserPositionsRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserPositionsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryUserPositionsRequest) + 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: QueryUserPositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserPositionsRequest: 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 Address", 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.Address = 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryUserPositionsResponse_1_list)(nil) + +type _QueryUserPositionsResponse_1_list struct { + list *[]*UserPositionWithVault +} + +func (x *_QueryUserPositionsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryUserPositionsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryUserPositionsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*UserPositionWithVault) + (*x.list)[i] = concreteValue +} + +func (x *_QueryUserPositionsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*UserPositionWithVault) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryUserPositionsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(UserPositionWithVault) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryUserPositionsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryUserPositionsResponse_1_list) NewElement() protoreflect.Value { + v := new(UserPositionWithVault) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryUserPositionsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryUserPositionsResponse protoreflect.MessageDescriptor + fd_QueryUserPositionsResponse_positions protoreflect.FieldDescriptor + fd_QueryUserPositionsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserPositionsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserPositionsResponse") + fd_QueryUserPositionsResponse_positions = md_QueryUserPositionsResponse.Fields().ByName("positions") + fd_QueryUserPositionsResponse_pagination = md_QueryUserPositionsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserPositionsResponse)(nil) + +type fastReflection_QueryUserPositionsResponse QueryUserPositionsResponse + +func (x *QueryUserPositionsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserPositionsResponse)(x) +} + +func (x *QueryUserPositionsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[9] + 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_QueryUserPositionsResponse_messageType fastReflection_QueryUserPositionsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserPositionsResponse_messageType{} + +type fastReflection_QueryUserPositionsResponse_messageType struct{} + +func (x fastReflection_QueryUserPositionsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserPositionsResponse)(nil) +} +func (x fastReflection_QueryUserPositionsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionsResponse) +} +func (x fastReflection_QueryUserPositionsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserPositionsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserPositionsResponse +} + +// 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_QueryUserPositionsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryUserPositionsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserPositionsResponse) New() protoreflect.Message { + return new(fastReflection_QueryUserPositionsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserPositionsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryUserPositionsResponse)(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_QueryUserPositionsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Positions) != 0 { + value := protoreflect.ValueOfList(&_QueryUserPositionsResponse_1_list{list: &x.Positions}) + if !f(fd_QueryUserPositionsResponse_positions, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryUserPositionsResponse_pagination, 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_QueryUserPositionsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.positions": + return len(x.Positions) != 0 + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsResponse 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_QueryUserPositionsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.positions": + x.Positions = nil + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsResponse 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_QueryUserPositionsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.positions": + if len(x.Positions) == 0 { + return protoreflect.ValueOfList(&_QueryUserPositionsResponse_1_list{}) + } + listValue := &_QueryUserPositionsResponse_1_list{list: &x.Positions} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsResponse 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_QueryUserPositionsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.positions": + lv := value.List() + clv := lv.(*_QueryUserPositionsResponse_1_list) + x.Positions = *clv.list + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsResponse 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_QueryUserPositionsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.positions": + if x.Positions == nil { + x.Positions = []*UserPositionWithVault{} + } + value := &_QueryUserPositionsResponse_1_list{list: &x.Positions} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsResponse 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_QueryUserPositionsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.positions": + list := []*UserPositionWithVault{} + return protoreflect.ValueOfList(&_QueryUserPositionsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserPositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserPositionsResponse 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_QueryUserPositionsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserPositionsResponse", 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_QueryUserPositionsResponse) 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_QueryUserPositionsResponse) 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_QueryUserPositionsResponse) 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_QueryUserPositionsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserPositionsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Positions) > 0 { + for _, e := range x.Positions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserPositionsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Positions) > 0 { + for iNdEx := len(x.Positions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Positions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryUserPositionsResponse) + 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: QueryUserPositionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserPositionsResponse: 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 Positions", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Positions = append(x.Positions, &UserPositionWithVault{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Positions[len(x.Positions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_UserPositionWithVault protoreflect.MessageDescriptor + fd_UserPositionWithVault_position protoreflect.FieldDescriptor + fd_UserPositionWithVault_current_value protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_UserPositionWithVault = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("UserPositionWithVault") + fd_UserPositionWithVault_position = md_UserPositionWithVault.Fields().ByName("position") + fd_UserPositionWithVault_current_value = md_UserPositionWithVault.Fields().ByName("current_value") +} + +var _ protoreflect.Message = (*fastReflection_UserPositionWithVault)(nil) + +type fastReflection_UserPositionWithVault UserPositionWithVault + +func (x *UserPositionWithVault) ProtoReflect() protoreflect.Message { + return (*fastReflection_UserPositionWithVault)(x) +} + +func (x *UserPositionWithVault) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[10] + 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_UserPositionWithVault_messageType fastReflection_UserPositionWithVault_messageType +var _ protoreflect.MessageType = fastReflection_UserPositionWithVault_messageType{} + +type fastReflection_UserPositionWithVault_messageType struct{} + +func (x fastReflection_UserPositionWithVault_messageType) Zero() protoreflect.Message { + return (*fastReflection_UserPositionWithVault)(nil) +} +func (x fastReflection_UserPositionWithVault_messageType) New() protoreflect.Message { + return new(fastReflection_UserPositionWithVault) +} +func (x fastReflection_UserPositionWithVault_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_UserPositionWithVault +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_UserPositionWithVault) Descriptor() protoreflect.MessageDescriptor { + return md_UserPositionWithVault +} + +// 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_UserPositionWithVault) Type() protoreflect.MessageType { + return _fastReflection_UserPositionWithVault_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_UserPositionWithVault) New() protoreflect.Message { + return new(fastReflection_UserPositionWithVault) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_UserPositionWithVault) Interface() protoreflect.ProtoMessage { + return (*UserPositionWithVault)(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_UserPositionWithVault) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Position != nil { + value := protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + if !f(fd_UserPositionWithVault_position, value) { + return + } + } + if x.CurrentValue != "" { + value := protoreflect.ValueOfString(x.CurrentValue) + if !f(fd_UserPositionWithVault_current_value, 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_UserPositionWithVault) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionWithVault.position": + return x.Position != nil + case "noble.dollar.vaults.v2.UserPositionWithVault.current_value": + return x.CurrentValue != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionWithVault")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionWithVault 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_UserPositionWithVault) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionWithVault.position": + x.Position = nil + case "noble.dollar.vaults.v2.UserPositionWithVault.current_value": + x.CurrentValue = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionWithVault")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionWithVault 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_UserPositionWithVault) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.UserPositionWithVault.position": + value := x.Position + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPositionWithVault.current_value": + value := x.CurrentValue + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionWithVault")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionWithVault 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_UserPositionWithVault) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionWithVault.position": + x.Position = value.Message().Interface().(*UserPosition) + case "noble.dollar.vaults.v2.UserPositionWithVault.current_value": + x.CurrentValue = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionWithVault")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionWithVault 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_UserPositionWithVault) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionWithVault.position": + if x.Position == nil { + x.Position = new(UserPosition) + } + return protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPositionWithVault.current_value": + panic(fmt.Errorf("field current_value of message noble.dollar.vaults.v2.UserPositionWithVault is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionWithVault")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionWithVault 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_UserPositionWithVault) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPositionWithVault.position": + m := new(UserPosition) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPositionWithVault.current_value": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPositionWithVault")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPositionWithVault 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_UserPositionWithVault) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.UserPositionWithVault", 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_UserPositionWithVault) 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_UserPositionWithVault) 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_UserPositionWithVault) 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_UserPositionWithVault) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*UserPositionWithVault) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Position != nil { + l = options.Size(x.Position) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CurrentValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*UserPositionWithVault) + 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 len(x.CurrentValue) > 0 { + i -= len(x.CurrentValue) + copy(dAtA[i:], x.CurrentValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentValue))) + i-- + dAtA[i] = 0x12 + } + if x.Position != nil { + encoded, err := options.Marshal(x.Position) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*UserPositionWithVault) + 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: UserPositionWithVault: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UserPositionWithVault: 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 Position", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Position == nil { + x.Position = &UserPosition{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Position); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryYieldInfoRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryYieldInfoRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryYieldInfoRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryYieldInfoRequest)(nil) + +type fastReflection_QueryYieldInfoRequest QueryYieldInfoRequest + +func (x *QueryYieldInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryYieldInfoRequest)(x) +} + +func (x *QueryYieldInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[11] + 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_QueryYieldInfoRequest_messageType fastReflection_QueryYieldInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryYieldInfoRequest_messageType{} + +type fastReflection_QueryYieldInfoRequest_messageType struct{} + +func (x fastReflection_QueryYieldInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryYieldInfoRequest)(nil) +} +func (x fastReflection_QueryYieldInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryYieldInfoRequest) +} +func (x fastReflection_QueryYieldInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryYieldInfoRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryYieldInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryYieldInfoRequest +} + +// 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_QueryYieldInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryYieldInfoRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryYieldInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryYieldInfoRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryYieldInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryYieldInfoRequest)(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_QueryYieldInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryYieldInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoRequest 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_QueryYieldInfoRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoRequest 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_QueryYieldInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoRequest 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_QueryYieldInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoRequest 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_QueryYieldInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoRequest 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_QueryYieldInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoRequest 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_QueryYieldInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryYieldInfoRequest", 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_QueryYieldInfoRequest) 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_QueryYieldInfoRequest) 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_QueryYieldInfoRequest) 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_QueryYieldInfoRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryYieldInfoRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryYieldInfoRequest) + 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 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().(*QueryYieldInfoRequest) + 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: QueryYieldInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryYieldInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_QueryYieldInfoResponse protoreflect.MessageDescriptor + fd_QueryYieldInfoResponse_yield_rate protoreflect.FieldDescriptor + fd_QueryYieldInfoResponse_total_deposits protoreflect.FieldDescriptor + fd_QueryYieldInfoResponse_total_accrued_yield protoreflect.FieldDescriptor + fd_QueryYieldInfoResponse_total_nav protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryYieldInfoResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryYieldInfoResponse") + fd_QueryYieldInfoResponse_yield_rate = md_QueryYieldInfoResponse.Fields().ByName("yield_rate") + fd_QueryYieldInfoResponse_total_deposits = md_QueryYieldInfoResponse.Fields().ByName("total_deposits") + fd_QueryYieldInfoResponse_total_accrued_yield = md_QueryYieldInfoResponse.Fields().ByName("total_accrued_yield") + fd_QueryYieldInfoResponse_total_nav = md_QueryYieldInfoResponse.Fields().ByName("total_nav") +} + +var _ protoreflect.Message = (*fastReflection_QueryYieldInfoResponse)(nil) + +type fastReflection_QueryYieldInfoResponse QueryYieldInfoResponse + +func (x *QueryYieldInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryYieldInfoResponse)(x) +} + +func (x *QueryYieldInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[12] + 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_QueryYieldInfoResponse_messageType fastReflection_QueryYieldInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryYieldInfoResponse_messageType{} + +type fastReflection_QueryYieldInfoResponse_messageType struct{} + +func (x fastReflection_QueryYieldInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryYieldInfoResponse)(nil) +} +func (x fastReflection_QueryYieldInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryYieldInfoResponse) +} +func (x fastReflection_QueryYieldInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryYieldInfoResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryYieldInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryYieldInfoResponse +} + +// 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_QueryYieldInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryYieldInfoResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryYieldInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryYieldInfoResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryYieldInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryYieldInfoResponse)(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_QueryYieldInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.YieldRate != "" { + value := protoreflect.ValueOfString(x.YieldRate) + if !f(fd_QueryYieldInfoResponse_yield_rate, value) { + return + } + } + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_QueryYieldInfoResponse_total_deposits, value) { + return + } + } + if x.TotalAccruedYield != "" { + value := protoreflect.ValueOfString(x.TotalAccruedYield) + if !f(fd_QueryYieldInfoResponse_total_accrued_yield, value) { + return + } + } + if x.TotalNav != "" { + value := protoreflect.ValueOfString(x.TotalNav) + if !f(fd_QueryYieldInfoResponse_total_nav, 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_QueryYieldInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.yield_rate": + return x.YieldRate != "" + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_accrued_yield": + return x.TotalAccruedYield != "" + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_nav": + return x.TotalNav != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoResponse 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_QueryYieldInfoResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.yield_rate": + x.YieldRate = "" + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_accrued_yield": + x.TotalAccruedYield = "" + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_nav": + x.TotalNav = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoResponse 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_QueryYieldInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.yield_rate": + value := x.YieldRate + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_accrued_yield": + value := x.TotalAccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_nav": + value := x.TotalNav + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoResponse 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_QueryYieldInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.yield_rate": + x.YieldRate = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_accrued_yield": + x.TotalAccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_nav": + x.TotalNav = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoResponse 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_QueryYieldInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.yield_rate": + panic(fmt.Errorf("field yield_rate of message noble.dollar.vaults.v2.QueryYieldInfoResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.QueryYieldInfoResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_accrued_yield": + panic(fmt.Errorf("field total_accrued_yield of message noble.dollar.vaults.v2.QueryYieldInfoResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_nav": + panic(fmt.Errorf("field total_nav of message noble.dollar.vaults.v2.QueryYieldInfoResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoResponse 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_QueryYieldInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.yield_rate": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryYieldInfoResponse.total_nav": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryYieldInfoResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryYieldInfoResponse 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_QueryYieldInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryYieldInfoResponse", 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_QueryYieldInfoResponse) 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_QueryYieldInfoResponse) 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_QueryYieldInfoResponse) 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_QueryYieldInfoResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryYieldInfoResponse) + 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.YieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryYieldInfoResponse) + 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 len(x.TotalNav) > 0 { + i -= len(x.TotalNav) + copy(dAtA[i:], x.TotalNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalNav))) + i-- + dAtA[i] = 0x22 + } + if len(x.TotalAccruedYield) > 0 { + i -= len(x.TotalAccruedYield) + copy(dAtA[i:], x.TotalAccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAccruedYield))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + i-- + dAtA[i] = 0x12 + } + if len(x.YieldRate) > 0 { + i -= len(x.YieldRate) + copy(dAtA[i:], x.YieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldRate))) + 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().(*QueryYieldInfoResponse) + 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: QueryYieldInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryYieldInfoResponse: 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 YieldRate", 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.YieldRate = 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 TotalDeposits", 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.TotalDeposits = 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 TotalAccruedYield", 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.TotalAccruedYield = 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 TotalNav", 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.TotalNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryVaultStatsRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultStatsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultStatsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultStatsRequest)(nil) + +type fastReflection_QueryVaultStatsRequest QueryVaultStatsRequest + +func (x *QueryVaultStatsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultStatsRequest)(x) +} + +func (x *QueryVaultStatsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[13] + 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_QueryVaultStatsRequest_messageType fastReflection_QueryVaultStatsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultStatsRequest_messageType{} + +type fastReflection_QueryVaultStatsRequest_messageType struct{} + +func (x fastReflection_QueryVaultStatsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultStatsRequest)(nil) +} +func (x fastReflection_QueryVaultStatsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultStatsRequest) +} +func (x fastReflection_QueryVaultStatsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultStatsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultStatsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultStatsRequest +} + +// 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_QueryVaultStatsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultStatsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultStatsRequest) New() protoreflect.Message { + return new(fastReflection_QueryVaultStatsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultStatsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryVaultStatsRequest)(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_QueryVaultStatsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryVaultStatsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsRequest 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_QueryVaultStatsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsRequest 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_QueryVaultStatsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsRequest 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_QueryVaultStatsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsRequest 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_QueryVaultStatsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsRequest 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_QueryVaultStatsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsRequest 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_QueryVaultStatsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultStatsRequest", 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_QueryVaultStatsRequest) 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_QueryVaultStatsRequest) 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_QueryVaultStatsRequest) 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_QueryVaultStatsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultStatsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryVaultStatsRequest) + 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 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().(*QueryVaultStatsRequest) + 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: QueryVaultStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_QueryVaultStatsResponse protoreflect.MessageDescriptor + fd_QueryVaultStatsResponse_stats protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultStatsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultStatsResponse") + fd_QueryVaultStatsResponse_stats = md_QueryVaultStatsResponse.Fields().ByName("stats") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultStatsResponse)(nil) + +type fastReflection_QueryVaultStatsResponse QueryVaultStatsResponse + +func (x *QueryVaultStatsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultStatsResponse)(x) +} + +func (x *QueryVaultStatsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[14] + 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_QueryVaultStatsResponse_messageType fastReflection_QueryVaultStatsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultStatsResponse_messageType{} + +type fastReflection_QueryVaultStatsResponse_messageType struct{} + +func (x fastReflection_QueryVaultStatsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultStatsResponse)(nil) +} +func (x fastReflection_QueryVaultStatsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultStatsResponse) +} +func (x fastReflection_QueryVaultStatsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultStatsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultStatsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultStatsResponse +} + +// 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_QueryVaultStatsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultStatsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultStatsResponse) New() protoreflect.Message { + return new(fastReflection_QueryVaultStatsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultStatsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryVaultStatsResponse)(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_QueryVaultStatsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Stats != nil { + value := protoreflect.ValueOfMessage(x.Stats.ProtoReflect()) + if !f(fd_QueryVaultStatsResponse_stats, 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_QueryVaultStatsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultStatsResponse.stats": + return x.Stats != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsResponse 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_QueryVaultStatsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultStatsResponse.stats": + x.Stats = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsResponse 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_QueryVaultStatsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryVaultStatsResponse.stats": + value := x.Stats + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsResponse 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_QueryVaultStatsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultStatsResponse.stats": + x.Stats = value.Message().Interface().(*VaultStatsEntry) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsResponse 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_QueryVaultStatsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultStatsResponse.stats": + if x.Stats == nil { + x.Stats = new(VaultStatsEntry) + } + return protoreflect.ValueOfMessage(x.Stats.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsResponse 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_QueryVaultStatsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultStatsResponse.stats": + m := new(VaultStatsEntry) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultStatsResponse 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_QueryVaultStatsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultStatsResponse", 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_QueryVaultStatsResponse) 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_QueryVaultStatsResponse) 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_QueryVaultStatsResponse) 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_QueryVaultStatsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultStatsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Stats != nil { + l = options.Size(x.Stats) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryVaultStatsResponse) + 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.Stats != nil { + encoded, err := options.Marshal(x.Stats) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryVaultStatsResponse) + 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: QueryVaultStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultStatsResponse: 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 Stats", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Stats == nil { + x.Stats = &VaultStatsEntry{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stats); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryStatsRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryStatsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryStatsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryStatsRequest)(nil) + +type fastReflection_QueryStatsRequest QueryStatsRequest + +func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStatsRequest)(x) +} + +func (x *QueryStatsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[15] + 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_QueryStatsRequest_messageType fastReflection_QueryStatsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStatsRequest_messageType{} + +type fastReflection_QueryStatsRequest_messageType struct{} + +func (x fastReflection_QueryStatsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStatsRequest)(nil) +} +func (x fastReflection_QueryStatsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStatsRequest) +} +func (x fastReflection_QueryStatsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStatsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryStatsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStatsRequest +} + +// 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_QueryStatsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStatsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryStatsRequest) New() protoreflect.Message { + return new(fastReflection_QueryStatsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryStatsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStatsRequest)(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_QueryStatsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryStatsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsRequest 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_QueryStatsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsRequest 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_QueryStatsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsRequest 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_QueryStatsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsRequest 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_QueryStatsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsRequest 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_QueryStatsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsRequest 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_QueryStatsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryStatsRequest", 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_QueryStatsRequest) 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_QueryStatsRequest) 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_QueryStatsRequest) 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_QueryStatsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryStatsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryStatsRequest) + 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 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().(*QueryStatsRequest) + 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: QueryStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_QueryStatsResponse protoreflect.MessageDescriptor + fd_QueryStatsResponse_stats protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryStatsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryStatsResponse") + fd_QueryStatsResponse_stats = md_QueryStatsResponse.Fields().ByName("stats") +} + +var _ protoreflect.Message = (*fastReflection_QueryStatsResponse)(nil) + +type fastReflection_QueryStatsResponse QueryStatsResponse + +func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStatsResponse)(x) +} + +func (x *QueryStatsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[16] + 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_QueryStatsResponse_messageType fastReflection_QueryStatsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStatsResponse_messageType{} + +type fastReflection_QueryStatsResponse_messageType struct{} + +func (x fastReflection_QueryStatsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStatsResponse)(nil) +} +func (x fastReflection_QueryStatsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStatsResponse) +} +func (x fastReflection_QueryStatsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStatsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryStatsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStatsResponse +} + +// 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_QueryStatsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStatsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryStatsResponse) New() protoreflect.Message { + return new(fastReflection_QueryStatsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryStatsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStatsResponse)(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_QueryStatsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Stats != nil { + value := protoreflect.ValueOfMessage(x.Stats.ProtoReflect()) + if !f(fd_QueryStatsResponse_stats, 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_QueryStatsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStatsResponse.stats": + return x.Stats != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsResponse 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_QueryStatsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStatsResponse.stats": + x.Stats = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsResponse 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_QueryStatsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryStatsResponse.stats": + value := x.Stats + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsResponse 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_QueryStatsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStatsResponse.stats": + x.Stats = value.Message().Interface().(*VaultStatsEntry) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsResponse 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_QueryStatsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStatsResponse.stats": + if x.Stats == nil { + x.Stats = new(VaultStatsEntry) + } + return protoreflect.ValueOfMessage(x.Stats.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsResponse 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_QueryStatsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStatsResponse.stats": + m := new(VaultStatsEntry) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStatsResponse 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_QueryStatsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryStatsResponse", 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_QueryStatsResponse) 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_QueryStatsResponse) 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_QueryStatsResponse) 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_QueryStatsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryStatsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Stats != nil { + l = options.Size(x.Stats) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryStatsResponse) + 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.Stats != nil { + encoded, err := options.Marshal(x.Stats) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryStatsResponse) + 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: QueryStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStatsResponse: 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 Stats", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Stats == nil { + x.Stats = &VaultStatsEntry{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stats); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryAllStatsRequest protoreflect.MessageDescriptor + fd_QueryAllStatsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryAllStatsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryAllStatsRequest") + fd_QueryAllStatsRequest_pagination = md_QueryAllStatsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllStatsRequest)(nil) + +type fastReflection_QueryAllStatsRequest QueryAllStatsRequest + +func (x *QueryAllStatsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllStatsRequest)(x) +} + +func (x *QueryAllStatsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[17] + 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_QueryAllStatsRequest_messageType fastReflection_QueryAllStatsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllStatsRequest_messageType{} + +type fastReflection_QueryAllStatsRequest_messageType struct{} + +func (x fastReflection_QueryAllStatsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllStatsRequest)(nil) +} +func (x fastReflection_QueryAllStatsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllStatsRequest) +} +func (x fastReflection_QueryAllStatsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllStatsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllStatsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllStatsRequest +} + +// 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_QueryAllStatsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllStatsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllStatsRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllStatsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllStatsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllStatsRequest)(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_QueryAllStatsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllStatsRequest_pagination, 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_QueryAllStatsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsRequest 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_QueryAllStatsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsRequest 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_QueryAllStatsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsRequest 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_QueryAllStatsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsRequest 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_QueryAllStatsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsRequest 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_QueryAllStatsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsRequest 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_QueryAllStatsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryAllStatsRequest", 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_QueryAllStatsRequest) 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_QueryAllStatsRequest) 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_QueryAllStatsRequest) 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_QueryAllStatsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllStatsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryAllStatsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryAllStatsRequest) + 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: QueryAllStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllStatsRequest: 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryAllStatsResponse protoreflect.MessageDescriptor + fd_QueryAllStatsResponse_stats protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryAllStatsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryAllStatsResponse") + fd_QueryAllStatsResponse_stats = md_QueryAllStatsResponse.Fields().ByName("stats") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllStatsResponse)(nil) + +type fastReflection_QueryAllStatsResponse QueryAllStatsResponse + +func (x *QueryAllStatsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllStatsResponse)(x) +} + +func (x *QueryAllStatsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[18] + 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_QueryAllStatsResponse_messageType fastReflection_QueryAllStatsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllStatsResponse_messageType{} + +type fastReflection_QueryAllStatsResponse_messageType struct{} + +func (x fastReflection_QueryAllStatsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllStatsResponse)(nil) +} +func (x fastReflection_QueryAllStatsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllStatsResponse) +} +func (x fastReflection_QueryAllStatsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllStatsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllStatsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllStatsResponse +} + +// 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_QueryAllStatsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAllStatsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllStatsResponse) New() protoreflect.Message { + return new(fastReflection_QueryAllStatsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllStatsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAllStatsResponse)(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_QueryAllStatsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Stats != nil { + value := protoreflect.ValueOfMessage(x.Stats.ProtoReflect()) + if !f(fd_QueryAllStatsResponse_stats, 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_QueryAllStatsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsResponse.stats": + return x.Stats != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsResponse 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_QueryAllStatsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsResponse.stats": + x.Stats = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsResponse 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_QueryAllStatsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsResponse.stats": + value := x.Stats + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsResponse 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_QueryAllStatsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsResponse.stats": + x.Stats = value.Message().Interface().(*VaultStatsEntry) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsResponse 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_QueryAllStatsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsResponse.stats": + if x.Stats == nil { + x.Stats = new(VaultStatsEntry) + } + return protoreflect.ValueOfMessage(x.Stats.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsResponse 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_QueryAllStatsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryAllStatsResponse.stats": + m := new(VaultStatsEntry) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryAllStatsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryAllStatsResponse 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_QueryAllStatsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryAllStatsResponse", 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_QueryAllStatsResponse) 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_QueryAllStatsResponse) 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_QueryAllStatsResponse) 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_QueryAllStatsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllStatsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Stats != nil { + l = options.Size(x.Stats) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryAllStatsResponse) + 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.Stats != nil { + encoded, err := options.Marshal(x.Stats) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryAllStatsResponse) + 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: QueryAllStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllStatsResponse: 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 Stats", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Stats == nil { + x.Stats = &VaultStatsEntry{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Stats); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryParamsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) + +type fastReflection_QueryParamsRequest QueryParamsRequest + +func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(x) +} + +func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[19] + 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_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} + +type fastReflection_QueryParamsRequest_messageType struct{} + +func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(nil) +} +func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} +func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// 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_QueryParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryParamsRequest) + 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 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().(*QueryParamsRequest) + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_QueryParamsResponse protoreflect.MessageDescriptor + fd_QueryParamsResponse_params protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryParamsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryParamsResponse") + fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) + +type fastReflection_QueryParamsResponse QueryParamsResponse + +func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(x) +} + +func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[20] + 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_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} + +type fastReflection_QueryParamsResponse_messageType struct{} + +func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(nil) +} +func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} +func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// 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_QueryParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_QueryParamsResponse_params, 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryParamsResponse.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryParamsResponse.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryParamsResponse.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryParamsResponse.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryParamsResponse.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryParamsResponse) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryParamsResponse) + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: 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 Params", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryCrossChainRoutesRequest protoreflect.MessageDescriptor + fd_QueryCrossChainRoutesRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryCrossChainRoutesRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryCrossChainRoutesRequest") + fd_QueryCrossChainRoutesRequest_pagination = md_QueryCrossChainRoutesRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryCrossChainRoutesRequest)(nil) + +type fastReflection_QueryCrossChainRoutesRequest QueryCrossChainRoutesRequest + +func (x *QueryCrossChainRoutesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCrossChainRoutesRequest)(x) +} + +func (x *QueryCrossChainRoutesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[21] + 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_QueryCrossChainRoutesRequest_messageType fastReflection_QueryCrossChainRoutesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCrossChainRoutesRequest_messageType{} + +type fastReflection_QueryCrossChainRoutesRequest_messageType struct{} + +func (x fastReflection_QueryCrossChainRoutesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCrossChainRoutesRequest)(nil) +} +func (x fastReflection_QueryCrossChainRoutesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRoutesRequest) +} +func (x fastReflection_QueryCrossChainRoutesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRoutesRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCrossChainRoutesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRoutesRequest +} + +// 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_QueryCrossChainRoutesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCrossChainRoutesRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCrossChainRoutesRequest) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRoutesRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCrossChainRoutesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCrossChainRoutesRequest)(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_QueryCrossChainRoutesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryCrossChainRoutesRequest_pagination, 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_QueryCrossChainRoutesRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesRequest 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_QueryCrossChainRoutesRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesRequest 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_QueryCrossChainRoutesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesRequest 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_QueryCrossChainRoutesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesRequest 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_QueryCrossChainRoutesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesRequest 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_QueryCrossChainRoutesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesRequest 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_QueryCrossChainRoutesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryCrossChainRoutesRequest", 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_QueryCrossChainRoutesRequest) 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_QueryCrossChainRoutesRequest) 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_QueryCrossChainRoutesRequest) 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_QueryCrossChainRoutesRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCrossChainRoutesRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryCrossChainRoutesRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryCrossChainRoutesRequest) + 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: QueryCrossChainRoutesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCrossChainRoutesRequest: 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryCrossChainRoutesResponse_1_list)(nil) + +type _QueryCrossChainRoutesResponse_1_list struct { + list *[]*CrossChainRoute +} + +func (x *_QueryCrossChainRoutesResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryCrossChainRoutesResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryCrossChainRoutesResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*CrossChainRoute) + (*x.list)[i] = concreteValue +} + +func (x *_QueryCrossChainRoutesResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*CrossChainRoute) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryCrossChainRoutesResponse_1_list) AppendMutable() protoreflect.Value { + v := new(CrossChainRoute) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryCrossChainRoutesResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryCrossChainRoutesResponse_1_list) NewElement() protoreflect.Value { + v := new(CrossChainRoute) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryCrossChainRoutesResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryCrossChainRoutesResponse protoreflect.MessageDescriptor + fd_QueryCrossChainRoutesResponse_routes protoreflect.FieldDescriptor + fd_QueryCrossChainRoutesResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryCrossChainRoutesResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryCrossChainRoutesResponse") + fd_QueryCrossChainRoutesResponse_routes = md_QueryCrossChainRoutesResponse.Fields().ByName("routes") + fd_QueryCrossChainRoutesResponse_pagination = md_QueryCrossChainRoutesResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryCrossChainRoutesResponse)(nil) + +type fastReflection_QueryCrossChainRoutesResponse QueryCrossChainRoutesResponse + +func (x *QueryCrossChainRoutesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCrossChainRoutesResponse)(x) +} + +func (x *QueryCrossChainRoutesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[22] + 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_QueryCrossChainRoutesResponse_messageType fastReflection_QueryCrossChainRoutesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCrossChainRoutesResponse_messageType{} + +type fastReflection_QueryCrossChainRoutesResponse_messageType struct{} + +func (x fastReflection_QueryCrossChainRoutesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCrossChainRoutesResponse)(nil) +} +func (x fastReflection_QueryCrossChainRoutesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRoutesResponse) +} +func (x fastReflection_QueryCrossChainRoutesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRoutesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCrossChainRoutesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRoutesResponse +} + +// 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_QueryCrossChainRoutesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCrossChainRoutesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCrossChainRoutesResponse) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRoutesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCrossChainRoutesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCrossChainRoutesResponse)(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_QueryCrossChainRoutesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Routes) != 0 { + value := protoreflect.ValueOfList(&_QueryCrossChainRoutesResponse_1_list{list: &x.Routes}) + if !f(fd_QueryCrossChainRoutesResponse_routes, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryCrossChainRoutesResponse_pagination, 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_QueryCrossChainRoutesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes": + return len(x.Routes) != 0 + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesResponse 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_QueryCrossChainRoutesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes": + x.Routes = nil + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesResponse 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_QueryCrossChainRoutesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes": + if len(x.Routes) == 0 { + return protoreflect.ValueOfList(&_QueryCrossChainRoutesResponse_1_list{}) + } + listValue := &_QueryCrossChainRoutesResponse_1_list{list: &x.Routes} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesResponse 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_QueryCrossChainRoutesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes": + lv := value.List() + clv := lv.(*_QueryCrossChainRoutesResponse_1_list) + x.Routes = *clv.list + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesResponse 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_QueryCrossChainRoutesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes": + if x.Routes == nil { + x.Routes = []*CrossChainRoute{} + } + value := &_QueryCrossChainRoutesResponse_1_list{list: &x.Routes} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesResponse 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_QueryCrossChainRoutesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes": + list := []*CrossChainRoute{} + return protoreflect.ValueOfList(&_QueryCrossChainRoutesResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRoutesResponse 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_QueryCrossChainRoutesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryCrossChainRoutesResponse", 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_QueryCrossChainRoutesResponse) 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_QueryCrossChainRoutesResponse) 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_QueryCrossChainRoutesResponse) 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_QueryCrossChainRoutesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCrossChainRoutesResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Routes) > 0 { + for _, e := range x.Routes { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryCrossChainRoutesResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Routes) > 0 { + for iNdEx := len(x.Routes) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Routes[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryCrossChainRoutesResponse) + 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: QueryCrossChainRoutesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCrossChainRoutesResponse: 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 Routes", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Routes = append(x.Routes, &CrossChainRoute{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Routes[len(x.Routes)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryCrossChainRouteRequest protoreflect.MessageDescriptor + fd_QueryCrossChainRouteRequest_route_id protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryCrossChainRouteRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryCrossChainRouteRequest") + fd_QueryCrossChainRouteRequest_route_id = md_QueryCrossChainRouteRequest.Fields().ByName("route_id") +} + +var _ protoreflect.Message = (*fastReflection_QueryCrossChainRouteRequest)(nil) + +type fastReflection_QueryCrossChainRouteRequest QueryCrossChainRouteRequest + +func (x *QueryCrossChainRouteRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCrossChainRouteRequest)(x) +} + +func (x *QueryCrossChainRouteRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[23] + 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_QueryCrossChainRouteRequest_messageType fastReflection_QueryCrossChainRouteRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCrossChainRouteRequest_messageType{} + +type fastReflection_QueryCrossChainRouteRequest_messageType struct{} + +func (x fastReflection_QueryCrossChainRouteRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCrossChainRouteRequest)(nil) +} +func (x fastReflection_QueryCrossChainRouteRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRouteRequest) +} +func (x fastReflection_QueryCrossChainRouteRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRouteRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCrossChainRouteRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRouteRequest +} + +// 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_QueryCrossChainRouteRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCrossChainRouteRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCrossChainRouteRequest) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRouteRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCrossChainRouteRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCrossChainRouteRequest)(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_QueryCrossChainRouteRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_QueryCrossChainRouteRequest_route_id, 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_QueryCrossChainRouteRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteRequest.route_id": + return x.RouteId != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteRequest 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_QueryCrossChainRouteRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteRequest.route_id": + x.RouteId = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteRequest 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_QueryCrossChainRouteRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteRequest.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteRequest 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_QueryCrossChainRouteRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteRequest.route_id": + x.RouteId = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteRequest 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_QueryCrossChainRouteRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteRequest.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.QueryCrossChainRouteRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteRequest 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_QueryCrossChainRouteRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteRequest.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteRequest 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_QueryCrossChainRouteRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryCrossChainRouteRequest", 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_QueryCrossChainRouteRequest) 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_QueryCrossChainRouteRequest) 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_QueryCrossChainRouteRequest) 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_QueryCrossChainRouteRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCrossChainRouteRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + 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().(*QueryCrossChainRouteRequest) + 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.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*QueryCrossChainRouteRequest) + 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: QueryCrossChainRouteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCrossChainRouteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(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, + } +} + +var ( + md_QueryCrossChainRouteResponse protoreflect.MessageDescriptor + fd_QueryCrossChainRouteResponse_route protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryCrossChainRouteResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryCrossChainRouteResponse") + fd_QueryCrossChainRouteResponse_route = md_QueryCrossChainRouteResponse.Fields().ByName("route") +} + +var _ protoreflect.Message = (*fastReflection_QueryCrossChainRouteResponse)(nil) + +type fastReflection_QueryCrossChainRouteResponse QueryCrossChainRouteResponse + +func (x *QueryCrossChainRouteResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCrossChainRouteResponse)(x) +} + +func (x *QueryCrossChainRouteResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[24] + 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_QueryCrossChainRouteResponse_messageType fastReflection_QueryCrossChainRouteResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCrossChainRouteResponse_messageType{} + +type fastReflection_QueryCrossChainRouteResponse_messageType struct{} + +func (x fastReflection_QueryCrossChainRouteResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCrossChainRouteResponse)(nil) +} +func (x fastReflection_QueryCrossChainRouteResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRouteResponse) +} +func (x fastReflection_QueryCrossChainRouteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRouteResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCrossChainRouteResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainRouteResponse +} + +// 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_QueryCrossChainRouteResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCrossChainRouteResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCrossChainRouteResponse) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainRouteResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCrossChainRouteResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCrossChainRouteResponse)(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_QueryCrossChainRouteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Route != nil { + value := protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + if !f(fd_QueryCrossChainRouteResponse_route, 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_QueryCrossChainRouteResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route": + return x.Route != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteResponse 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_QueryCrossChainRouteResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route": + x.Route = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteResponse 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_QueryCrossChainRouteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route": + value := x.Route + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteResponse 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_QueryCrossChainRouteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route": + x.Route = value.Message().Interface().(*CrossChainRoute) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteResponse 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_QueryCrossChainRouteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route": + if x.Route == nil { + x.Route = new(CrossChainRoute) + } + return protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteResponse 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_QueryCrossChainRouteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route": + m := new(CrossChainRoute) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainRouteResponse 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_QueryCrossChainRouteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryCrossChainRouteResponse", 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_QueryCrossChainRouteResponse) 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_QueryCrossChainRouteResponse) 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_QueryCrossChainRouteResponse) 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_QueryCrossChainRouteResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCrossChainRouteResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Route != nil { + l = options.Size(x.Route) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryCrossChainRouteResponse) + 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.Route != nil { + encoded, err := options.Marshal(x.Route) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryCrossChainRouteResponse) + 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: QueryCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCrossChainRouteResponse: 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 Route", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Route == nil { + x.Route = &CrossChainRoute{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Route); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryRemotePositionRequest protoreflect.MessageDescriptor + fd_QueryRemotePositionRequest_route_id protoreflect.FieldDescriptor + fd_QueryRemotePositionRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryRemotePositionRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryRemotePositionRequest") + fd_QueryRemotePositionRequest_route_id = md_QueryRemotePositionRequest.Fields().ByName("route_id") + fd_QueryRemotePositionRequest_address = md_QueryRemotePositionRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemotePositionRequest)(nil) + +type fastReflection_QueryRemotePositionRequest QueryRemotePositionRequest + +func (x *QueryRemotePositionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemotePositionRequest)(x) +} + +func (x *QueryRemotePositionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[25] + 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_QueryRemotePositionRequest_messageType fastReflection_QueryRemotePositionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemotePositionRequest_messageType{} + +type fastReflection_QueryRemotePositionRequest_messageType struct{} + +func (x fastReflection_QueryRemotePositionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemotePositionRequest)(nil) +} +func (x fastReflection_QueryRemotePositionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionRequest) +} +func (x fastReflection_QueryRemotePositionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemotePositionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionRequest +} + +// 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_QueryRemotePositionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRemotePositionRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemotePositionRequest) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemotePositionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRemotePositionRequest)(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_QueryRemotePositionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_QueryRemotePositionRequest_route_id, value) { + return + } + } + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryRemotePositionRequest_address, 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_QueryRemotePositionRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionRequest 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_QueryRemotePositionRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionRequest 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_QueryRemotePositionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionRequest 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_QueryRemotePositionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionRequest 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_QueryRemotePositionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.QueryRemotePositionRequest is not mutable")) + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryRemotePositionRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionRequest 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_QueryRemotePositionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.QueryRemotePositionRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionRequest 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_QueryRemotePositionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryRemotePositionRequest", 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_QueryRemotePositionRequest) 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_QueryRemotePositionRequest) 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_QueryRemotePositionRequest) 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_QueryRemotePositionRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemotePositionRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryRemotePositionRequest) + 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 len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*QueryRemotePositionRequest) + 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: QueryRemotePositionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemotePositionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryRemotePositionResponse protoreflect.MessageDescriptor + fd_QueryRemotePositionResponse_position protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryRemotePositionResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryRemotePositionResponse") + fd_QueryRemotePositionResponse_position = md_QueryRemotePositionResponse.Fields().ByName("position") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemotePositionResponse)(nil) + +type fastReflection_QueryRemotePositionResponse QueryRemotePositionResponse + +func (x *QueryRemotePositionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemotePositionResponse)(x) +} + +func (x *QueryRemotePositionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[26] + 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_QueryRemotePositionResponse_messageType fastReflection_QueryRemotePositionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemotePositionResponse_messageType{} + +type fastReflection_QueryRemotePositionResponse_messageType struct{} + +func (x fastReflection_QueryRemotePositionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemotePositionResponse)(nil) +} +func (x fastReflection_QueryRemotePositionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionResponse) +} +func (x fastReflection_QueryRemotePositionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemotePositionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionResponse +} + +// 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_QueryRemotePositionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRemotePositionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemotePositionResponse) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemotePositionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRemotePositionResponse)(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_QueryRemotePositionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Position != nil { + value := protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + if !f(fd_QueryRemotePositionResponse_position, 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_QueryRemotePositionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionResponse.position": + return x.Position != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionResponse 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_QueryRemotePositionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionResponse.position": + x.Position = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionResponse 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_QueryRemotePositionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionResponse.position": + value := x.Position + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionResponse 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_QueryRemotePositionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionResponse.position": + x.Position = value.Message().Interface().(*RemotePosition) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionResponse 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_QueryRemotePositionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionResponse.position": + if x.Position == nil { + x.Position = new(RemotePosition) + } + return protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionResponse 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_QueryRemotePositionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionResponse.position": + m := new(RemotePosition) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionResponse 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_QueryRemotePositionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryRemotePositionResponse", 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_QueryRemotePositionResponse) 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_QueryRemotePositionResponse) 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_QueryRemotePositionResponse) 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_QueryRemotePositionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemotePositionResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Position != nil { + l = options.Size(x.Position) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryRemotePositionResponse) + 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.Position != nil { + encoded, err := options.Marshal(x.Position) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryRemotePositionResponse) + 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: QueryRemotePositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemotePositionResponse: 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 Position", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Position == nil { + x.Position = &RemotePosition{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Position); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryRemotePositionsRequest protoreflect.MessageDescriptor + fd_QueryRemotePositionsRequest_address protoreflect.FieldDescriptor + fd_QueryRemotePositionsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryRemotePositionsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryRemotePositionsRequest") + fd_QueryRemotePositionsRequest_address = md_QueryRemotePositionsRequest.Fields().ByName("address") + fd_QueryRemotePositionsRequest_pagination = md_QueryRemotePositionsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemotePositionsRequest)(nil) + +type fastReflection_QueryRemotePositionsRequest QueryRemotePositionsRequest + +func (x *QueryRemotePositionsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemotePositionsRequest)(x) +} + +func (x *QueryRemotePositionsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[27] + 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_QueryRemotePositionsRequest_messageType fastReflection_QueryRemotePositionsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemotePositionsRequest_messageType{} + +type fastReflection_QueryRemotePositionsRequest_messageType struct{} + +func (x fastReflection_QueryRemotePositionsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemotePositionsRequest)(nil) +} +func (x fastReflection_QueryRemotePositionsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionsRequest) +} +func (x fastReflection_QueryRemotePositionsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemotePositionsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionsRequest +} + +// 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_QueryRemotePositionsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRemotePositionsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemotePositionsRequest) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemotePositionsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRemotePositionsRequest)(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_QueryRemotePositionsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryRemotePositionsRequest_address, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRemotePositionsRequest_pagination, 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_QueryRemotePositionsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.address": + return x.Address != "" + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsRequest 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_QueryRemotePositionsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.address": + x.Address = "" + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsRequest 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_QueryRemotePositionsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsRequest 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_QueryRemotePositionsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.address": + x.Address = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsRequest 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_QueryRemotePositionsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryRemotePositionsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsRequest 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_QueryRemotePositionsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsRequest 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_QueryRemotePositionsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryRemotePositionsRequest", 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_QueryRemotePositionsRequest) 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_QueryRemotePositionsRequest) 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_QueryRemotePositionsRequest) 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_QueryRemotePositionsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemotePositionsRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryRemotePositionsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryRemotePositionsRequest) + 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: QueryRemotePositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemotePositionsRequest: 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 Address", 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.Address = 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryRemotePositionsResponse_1_list)(nil) + +type _QueryRemotePositionsResponse_1_list struct { + list *[]*RemotePositionWithRoute +} + +func (x *_QueryRemotePositionsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryRemotePositionsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryRemotePositionsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RemotePositionWithRoute) + (*x.list)[i] = concreteValue +} + +func (x *_QueryRemotePositionsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RemotePositionWithRoute) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryRemotePositionsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(RemotePositionWithRoute) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRemotePositionsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryRemotePositionsResponse_1_list) NewElement() protoreflect.Value { + v := new(RemotePositionWithRoute) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryRemotePositionsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryRemotePositionsResponse protoreflect.MessageDescriptor + fd_QueryRemotePositionsResponse_positions protoreflect.FieldDescriptor + fd_QueryRemotePositionsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryRemotePositionsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryRemotePositionsResponse") + fd_QueryRemotePositionsResponse_positions = md_QueryRemotePositionsResponse.Fields().ByName("positions") + fd_QueryRemotePositionsResponse_pagination = md_QueryRemotePositionsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryRemotePositionsResponse)(nil) + +type fastReflection_QueryRemotePositionsResponse QueryRemotePositionsResponse + +func (x *QueryRemotePositionsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRemotePositionsResponse)(x) +} + +func (x *QueryRemotePositionsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[28] + 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_QueryRemotePositionsResponse_messageType fastReflection_QueryRemotePositionsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRemotePositionsResponse_messageType{} + +type fastReflection_QueryRemotePositionsResponse_messageType struct{} + +func (x fastReflection_QueryRemotePositionsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRemotePositionsResponse)(nil) +} +func (x fastReflection_QueryRemotePositionsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionsResponse) +} +func (x fastReflection_QueryRemotePositionsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryRemotePositionsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRemotePositionsResponse +} + +// 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_QueryRemotePositionsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRemotePositionsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryRemotePositionsResponse) New() protoreflect.Message { + return new(fastReflection_QueryRemotePositionsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryRemotePositionsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRemotePositionsResponse)(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_QueryRemotePositionsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Positions) != 0 { + value := protoreflect.ValueOfList(&_QueryRemotePositionsResponse_1_list{list: &x.Positions}) + if !f(fd_QueryRemotePositionsResponse_positions, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryRemotePositionsResponse_pagination, 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_QueryRemotePositionsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions": + return len(x.Positions) != 0 + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsResponse 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_QueryRemotePositionsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions": + x.Positions = nil + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsResponse 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_QueryRemotePositionsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions": + if len(x.Positions) == 0 { + return protoreflect.ValueOfList(&_QueryRemotePositionsResponse_1_list{}) + } + listValue := &_QueryRemotePositionsResponse_1_list{list: &x.Positions} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsResponse 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_QueryRemotePositionsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions": + lv := value.List() + clv := lv.(*_QueryRemotePositionsResponse_1_list) + x.Positions = *clv.list + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsResponse 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_QueryRemotePositionsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions": + if x.Positions == nil { + x.Positions = []*RemotePositionWithRoute{} + } + value := &_QueryRemotePositionsResponse_1_list{list: &x.Positions} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsResponse 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_QueryRemotePositionsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions": + list := []*RemotePositionWithRoute{} + return protoreflect.ValueOfList(&_QueryRemotePositionsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryRemotePositionsResponse 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_QueryRemotePositionsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryRemotePositionsResponse", 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_QueryRemotePositionsResponse) 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_QueryRemotePositionsResponse) 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_QueryRemotePositionsResponse) 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_QueryRemotePositionsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryRemotePositionsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Positions) > 0 { + for _, e := range x.Positions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryRemotePositionsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Positions) > 0 { + for iNdEx := len(x.Positions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Positions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryRemotePositionsResponse) + 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: QueryRemotePositionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRemotePositionsResponse: 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 Positions", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Positions = append(x.Positions, &RemotePositionWithRoute{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Positions[len(x.Positions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_RemotePositionWithRoute protoreflect.MessageDescriptor + fd_RemotePositionWithRoute_route_id protoreflect.FieldDescriptor + fd_RemotePositionWithRoute_position protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_RemotePositionWithRoute = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("RemotePositionWithRoute") + fd_RemotePositionWithRoute_route_id = md_RemotePositionWithRoute.Fields().ByName("route_id") + fd_RemotePositionWithRoute_position = md_RemotePositionWithRoute.Fields().ByName("position") +} + +var _ protoreflect.Message = (*fastReflection_RemotePositionWithRoute)(nil) + +type fastReflection_RemotePositionWithRoute RemotePositionWithRoute + +func (x *RemotePositionWithRoute) ProtoReflect() protoreflect.Message { + return (*fastReflection_RemotePositionWithRoute)(x) +} + +func (x *RemotePositionWithRoute) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[29] + 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_RemotePositionWithRoute_messageType fastReflection_RemotePositionWithRoute_messageType +var _ protoreflect.MessageType = fastReflection_RemotePositionWithRoute_messageType{} + +type fastReflection_RemotePositionWithRoute_messageType struct{} + +func (x fastReflection_RemotePositionWithRoute_messageType) Zero() protoreflect.Message { + return (*fastReflection_RemotePositionWithRoute)(nil) +} +func (x fastReflection_RemotePositionWithRoute_messageType) New() protoreflect.Message { + return new(fastReflection_RemotePositionWithRoute) +} +func (x fastReflection_RemotePositionWithRoute_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RemotePositionWithRoute +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_RemotePositionWithRoute) Descriptor() protoreflect.MessageDescriptor { + return md_RemotePositionWithRoute +} + +// 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_RemotePositionWithRoute) Type() protoreflect.MessageType { + return _fastReflection_RemotePositionWithRoute_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_RemotePositionWithRoute) New() protoreflect.Message { + return new(fastReflection_RemotePositionWithRoute) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_RemotePositionWithRoute) Interface() protoreflect.ProtoMessage { + return (*RemotePositionWithRoute)(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_RemotePositionWithRoute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_RemotePositionWithRoute_route_id, value) { + return + } + } + if x.Position != nil { + value := protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + if !f(fd_RemotePositionWithRoute_position, 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_RemotePositionWithRoute) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionWithRoute.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.RemotePositionWithRoute.position": + return x.Position != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionWithRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionWithRoute 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_RemotePositionWithRoute) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionWithRoute.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.RemotePositionWithRoute.position": + x.Position = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionWithRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionWithRoute 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_RemotePositionWithRoute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.RemotePositionWithRoute.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.RemotePositionWithRoute.position": + value := x.Position + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionWithRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionWithRoute 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_RemotePositionWithRoute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionWithRoute.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.RemotePositionWithRoute.position": + x.Position = value.Message().Interface().(*RemotePosition) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionWithRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionWithRoute 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_RemotePositionWithRoute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionWithRoute.position": + if x.Position == nil { + x.Position = new(RemotePosition) + } + return protoreflect.ValueOfMessage(x.Position.ProtoReflect()) + case "noble.dollar.vaults.v2.RemotePositionWithRoute.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.RemotePositionWithRoute is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionWithRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionWithRoute 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_RemotePositionWithRoute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.RemotePositionWithRoute.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.RemotePositionWithRoute.position": + m := new(RemotePosition) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.RemotePositionWithRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.RemotePositionWithRoute 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_RemotePositionWithRoute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.RemotePositionWithRoute", 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_RemotePositionWithRoute) 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_RemotePositionWithRoute) 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_RemotePositionWithRoute) 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_RemotePositionWithRoute) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*RemotePositionWithRoute) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + if x.Position != nil { + l = options.Size(x.Position) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*RemotePositionWithRoute) + 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.Position != nil { + encoded, err := options.Marshal(x.Position) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*RemotePositionWithRoute) + 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: RemotePositionWithRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RemotePositionWithRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Position == nil { + x.Position = &RemotePosition{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Position); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryInflightFundRequest protoreflect.MessageDescriptor + fd_QueryInflightFundRequest_route_id protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryInflightFundRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryInflightFundRequest") + fd_QueryInflightFundRequest_route_id = md_QueryInflightFundRequest.Fields().ByName("route_id") +} + +var _ protoreflect.Message = (*fastReflection_QueryInflightFundRequest)(nil) + +type fastReflection_QueryInflightFundRequest QueryInflightFundRequest + +func (x *QueryInflightFundRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInflightFundRequest)(x) +} + +func (x *QueryInflightFundRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[30] + 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_QueryInflightFundRequest_messageType fastReflection_QueryInflightFundRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryInflightFundRequest_messageType{} + +type fastReflection_QueryInflightFundRequest_messageType struct{} + +func (x fastReflection_QueryInflightFundRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInflightFundRequest)(nil) +} +func (x fastReflection_QueryInflightFundRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundRequest) +} +func (x fastReflection_QueryInflightFundRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryInflightFundRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundRequest +} + +// 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_QueryInflightFundRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryInflightFundRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryInflightFundRequest) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryInflightFundRequest) Interface() protoreflect.ProtoMessage { + return (*QueryInflightFundRequest)(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_QueryInflightFundRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_QueryInflightFundRequest_route_id, 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_QueryInflightFundRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundRequest.route_id": + return x.RouteId != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundRequest 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_QueryInflightFundRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundRequest.route_id": + x.RouteId = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundRequest 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_QueryInflightFundRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundRequest.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundRequest 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_QueryInflightFundRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundRequest.route_id": + x.RouteId = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundRequest 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_QueryInflightFundRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundRequest.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.QueryInflightFundRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundRequest 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_QueryInflightFundRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundRequest.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundRequest 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_QueryInflightFundRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryInflightFundRequest", 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_QueryInflightFundRequest) 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_QueryInflightFundRequest) 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_QueryInflightFundRequest) 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_QueryInflightFundRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryInflightFundRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + 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().(*QueryInflightFundRequest) + 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.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*QueryInflightFundRequest) + 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: QueryInflightFundRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInflightFundRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(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, + } +} + +var ( + md_QueryInflightFundResponse protoreflect.MessageDescriptor + fd_QueryInflightFundResponse_fund protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryInflightFundResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryInflightFundResponse") + fd_QueryInflightFundResponse_fund = md_QueryInflightFundResponse.Fields().ByName("fund") +} + +var _ protoreflect.Message = (*fastReflection_QueryInflightFundResponse)(nil) + +type fastReflection_QueryInflightFundResponse QueryInflightFundResponse + +func (x *QueryInflightFundResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInflightFundResponse)(x) +} + +func (x *QueryInflightFundResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[31] + 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_QueryInflightFundResponse_messageType fastReflection_QueryInflightFundResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryInflightFundResponse_messageType{} + +type fastReflection_QueryInflightFundResponse_messageType struct{} + +func (x fastReflection_QueryInflightFundResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInflightFundResponse)(nil) +} +func (x fastReflection_QueryInflightFundResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundResponse) +} +func (x fastReflection_QueryInflightFundResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryInflightFundResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundResponse +} + +// 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_QueryInflightFundResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryInflightFundResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryInflightFundResponse) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryInflightFundResponse) Interface() protoreflect.ProtoMessage { + return (*QueryInflightFundResponse)(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_QueryInflightFundResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Fund != nil { + value := protoreflect.ValueOfMessage(x.Fund.ProtoReflect()) + if !f(fd_QueryInflightFundResponse_fund, 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_QueryInflightFundResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundResponse.fund": + return x.Fund != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundResponse 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_QueryInflightFundResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundResponse.fund": + x.Fund = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundResponse 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_QueryInflightFundResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundResponse.fund": + value := x.Fund + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundResponse 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_QueryInflightFundResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundResponse.fund": + x.Fund = value.Message().Interface().(*InflightFund) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundResponse 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_QueryInflightFundResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundResponse.fund": + if x.Fund == nil { + x.Fund = new(InflightFund) + } + return protoreflect.ValueOfMessage(x.Fund.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundResponse 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_QueryInflightFundResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundResponse.fund": + m := new(InflightFund) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundResponse 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_QueryInflightFundResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryInflightFundResponse", 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_QueryInflightFundResponse) 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_QueryInflightFundResponse) 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_QueryInflightFundResponse) 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_QueryInflightFundResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryInflightFundResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Fund != nil { + l = options.Size(x.Fund) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryInflightFundResponse) + 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.Fund != nil { + encoded, err := options.Marshal(x.Fund) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryInflightFundResponse) + 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: QueryInflightFundResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInflightFundResponse: 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 Fund", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Fund == nil { + x.Fund = &InflightFund{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fund); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryInflightFundsUserRequest protoreflect.MessageDescriptor + fd_QueryInflightFundsUserRequest_address protoreflect.FieldDescriptor + fd_QueryInflightFundsUserRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryInflightFundsUserRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryInflightFundsUserRequest") + fd_QueryInflightFundsUserRequest_address = md_QueryInflightFundsUserRequest.Fields().ByName("address") + fd_QueryInflightFundsUserRequest_pagination = md_QueryInflightFundsUserRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryInflightFundsUserRequest)(nil) + +type fastReflection_QueryInflightFundsUserRequest QueryInflightFundsUserRequest + +func (x *QueryInflightFundsUserRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInflightFundsUserRequest)(x) +} + +func (x *QueryInflightFundsUserRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[32] + 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_QueryInflightFundsUserRequest_messageType fastReflection_QueryInflightFundsUserRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryInflightFundsUserRequest_messageType{} + +type fastReflection_QueryInflightFundsUserRequest_messageType struct{} + +func (x fastReflection_QueryInflightFundsUserRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInflightFundsUserRequest)(nil) +} +func (x fastReflection_QueryInflightFundsUserRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsUserRequest) +} +func (x fastReflection_QueryInflightFundsUserRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsUserRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryInflightFundsUserRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsUserRequest +} + +// 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_QueryInflightFundsUserRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryInflightFundsUserRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryInflightFundsUserRequest) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsUserRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryInflightFundsUserRequest) Interface() protoreflect.ProtoMessage { + return (*QueryInflightFundsUserRequest)(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_QueryInflightFundsUserRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryInflightFundsUserRequest_address, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryInflightFundsUserRequest_pagination, 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_QueryInflightFundsUserRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.address": + return x.Address != "" + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserRequest 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_QueryInflightFundsUserRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.address": + x.Address = "" + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserRequest 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_QueryInflightFundsUserRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserRequest 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_QueryInflightFundsUserRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.address": + x.Address = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserRequest 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_QueryInflightFundsUserRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryInflightFundsUserRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserRequest 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_QueryInflightFundsUserRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserRequest 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_QueryInflightFundsUserRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryInflightFundsUserRequest", 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_QueryInflightFundsUserRequest) 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_QueryInflightFundsUserRequest) 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_QueryInflightFundsUserRequest) 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_QueryInflightFundsUserRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryInflightFundsUserRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryInflightFundsUserRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryInflightFundsUserRequest) + 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: QueryInflightFundsUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInflightFundsUserRequest: 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 Address", 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.Address = 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryInflightFundsUserResponse_1_list)(nil) + +type _QueryInflightFundsUserResponse_1_list struct { + list *[]*InflightFund +} + +func (x *_QueryInflightFundsUserResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryInflightFundsUserResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryInflightFundsUserResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*InflightFund) + (*x.list)[i] = concreteValue +} + +func (x *_QueryInflightFundsUserResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*InflightFund) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryInflightFundsUserResponse_1_list) AppendMutable() protoreflect.Value { + v := new(InflightFund) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryInflightFundsUserResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryInflightFundsUserResponse_1_list) NewElement() protoreflect.Value { + v := new(InflightFund) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryInflightFundsUserResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryInflightFundsUserResponse protoreflect.MessageDescriptor + fd_QueryInflightFundsUserResponse_funds protoreflect.FieldDescriptor + fd_QueryInflightFundsUserResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryInflightFundsUserResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryInflightFundsUserResponse") + fd_QueryInflightFundsUserResponse_funds = md_QueryInflightFundsUserResponse.Fields().ByName("funds") + fd_QueryInflightFundsUserResponse_pagination = md_QueryInflightFundsUserResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryInflightFundsUserResponse)(nil) + +type fastReflection_QueryInflightFundsUserResponse QueryInflightFundsUserResponse + +func (x *QueryInflightFundsUserResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInflightFundsUserResponse)(x) +} + +func (x *QueryInflightFundsUserResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[33] + 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_QueryInflightFundsUserResponse_messageType fastReflection_QueryInflightFundsUserResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryInflightFundsUserResponse_messageType{} + +type fastReflection_QueryInflightFundsUserResponse_messageType struct{} + +func (x fastReflection_QueryInflightFundsUserResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInflightFundsUserResponse)(nil) +} +func (x fastReflection_QueryInflightFundsUserResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsUserResponse) +} +func (x fastReflection_QueryInflightFundsUserResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsUserResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryInflightFundsUserResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsUserResponse +} + +// 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_QueryInflightFundsUserResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryInflightFundsUserResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryInflightFundsUserResponse) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsUserResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryInflightFundsUserResponse) Interface() protoreflect.ProtoMessage { + return (*QueryInflightFundsUserResponse)(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_QueryInflightFundsUserResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Funds) != 0 { + value := protoreflect.ValueOfList(&_QueryInflightFundsUserResponse_1_list{list: &x.Funds}) + if !f(fd_QueryInflightFundsUserResponse_funds, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryInflightFundsUserResponse_pagination, 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_QueryInflightFundsUserResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds": + return len(x.Funds) != 0 + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserResponse 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_QueryInflightFundsUserResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds": + x.Funds = nil + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserResponse 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_QueryInflightFundsUserResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds": + if len(x.Funds) == 0 { + return protoreflect.ValueOfList(&_QueryInflightFundsUserResponse_1_list{}) + } + listValue := &_QueryInflightFundsUserResponse_1_list{list: &x.Funds} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserResponse 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_QueryInflightFundsUserResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds": + lv := value.List() + clv := lv.(*_QueryInflightFundsUserResponse_1_list) + x.Funds = *clv.list + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserResponse 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_QueryInflightFundsUserResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds": + if x.Funds == nil { + x.Funds = []*InflightFund{} + } + value := &_QueryInflightFundsUserResponse_1_list{list: &x.Funds} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserResponse 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_QueryInflightFundsUserResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds": + list := []*InflightFund{} + return protoreflect.ValueOfList(&_QueryInflightFundsUserResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsUserResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsUserResponse 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_QueryInflightFundsUserResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryInflightFundsUserResponse", 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_QueryInflightFundsUserResponse) 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_QueryInflightFundsUserResponse) 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_QueryInflightFundsUserResponse) 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_QueryInflightFundsUserResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryInflightFundsUserResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Funds) > 0 { + for _, e := range x.Funds { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryInflightFundsUserResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Funds) > 0 { + for iNdEx := len(x.Funds) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Funds[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryInflightFundsUserResponse) + 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: QueryInflightFundsUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInflightFundsUserResponse: 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 Funds", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Funds = append(x.Funds, &InflightFund{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Funds[len(x.Funds)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryCrossChainSnapshotRequest protoreflect.MessageDescriptor + fd_QueryCrossChainSnapshotRequest_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryCrossChainSnapshotRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryCrossChainSnapshotRequest") + fd_QueryCrossChainSnapshotRequest_timestamp = md_QueryCrossChainSnapshotRequest.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_QueryCrossChainSnapshotRequest)(nil) + +type fastReflection_QueryCrossChainSnapshotRequest QueryCrossChainSnapshotRequest + +func (x *QueryCrossChainSnapshotRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCrossChainSnapshotRequest)(x) +} + +func (x *QueryCrossChainSnapshotRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[34] + 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_QueryCrossChainSnapshotRequest_messageType fastReflection_QueryCrossChainSnapshotRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryCrossChainSnapshotRequest_messageType{} + +type fastReflection_QueryCrossChainSnapshotRequest_messageType struct{} + +func (x fastReflection_QueryCrossChainSnapshotRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCrossChainSnapshotRequest)(nil) +} +func (x fastReflection_QueryCrossChainSnapshotRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainSnapshotRequest) +} +func (x fastReflection_QueryCrossChainSnapshotRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainSnapshotRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCrossChainSnapshotRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainSnapshotRequest +} + +// 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_QueryCrossChainSnapshotRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryCrossChainSnapshotRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCrossChainSnapshotRequest) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainSnapshotRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCrossChainSnapshotRequest) Interface() protoreflect.ProtoMessage { + return (*QueryCrossChainSnapshotRequest)(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_QueryCrossChainSnapshotRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Timestamp != int64(0) { + value := protoreflect.ValueOfInt64(x.Timestamp) + if !f(fd_QueryCrossChainSnapshotRequest_timestamp, 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_QueryCrossChainSnapshotRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest.timestamp": + return x.Timestamp != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest 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_QueryCrossChainSnapshotRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest.timestamp": + x.Timestamp = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest 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_QueryCrossChainSnapshotRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest.timestamp": + value := x.Timestamp + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest 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_QueryCrossChainSnapshotRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest.timestamp": + x.Timestamp = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest 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_QueryCrossChainSnapshotRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest.timestamp": + panic(fmt.Errorf("field timestamp of message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest 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_QueryCrossChainSnapshotRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest.timestamp": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest 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_QueryCrossChainSnapshotRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest", 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_QueryCrossChainSnapshotRequest) 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_QueryCrossChainSnapshotRequest) 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_QueryCrossChainSnapshotRequest) 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_QueryCrossChainSnapshotRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCrossChainSnapshotRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Timestamp != 0 { + n += 1 + runtime.Sov(uint64(x.Timestamp)) + } + 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().(*QueryCrossChainSnapshotRequest) + 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.Timestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Timestamp)) + i-- + dAtA[i] = 0x8 + } + 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().(*QueryCrossChainSnapshotRequest) + 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: QueryCrossChainSnapshotRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCrossChainSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + x.Timestamp = 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.Timestamp |= int64(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, + } +} + +var ( + md_QueryCrossChainSnapshotResponse protoreflect.MessageDescriptor + fd_QueryCrossChainSnapshotResponse_snapshot protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryCrossChainSnapshotResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryCrossChainSnapshotResponse") + fd_QueryCrossChainSnapshotResponse_snapshot = md_QueryCrossChainSnapshotResponse.Fields().ByName("snapshot") +} + +var _ protoreflect.Message = (*fastReflection_QueryCrossChainSnapshotResponse)(nil) + +type fastReflection_QueryCrossChainSnapshotResponse QueryCrossChainSnapshotResponse + +func (x *QueryCrossChainSnapshotResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryCrossChainSnapshotResponse)(x) +} + +func (x *QueryCrossChainSnapshotResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[35] + 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_QueryCrossChainSnapshotResponse_messageType fastReflection_QueryCrossChainSnapshotResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryCrossChainSnapshotResponse_messageType{} + +type fastReflection_QueryCrossChainSnapshotResponse_messageType struct{} + +func (x fastReflection_QueryCrossChainSnapshotResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryCrossChainSnapshotResponse)(nil) +} +func (x fastReflection_QueryCrossChainSnapshotResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainSnapshotResponse) +} +func (x fastReflection_QueryCrossChainSnapshotResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainSnapshotResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryCrossChainSnapshotResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryCrossChainSnapshotResponse +} + +// 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_QueryCrossChainSnapshotResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryCrossChainSnapshotResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryCrossChainSnapshotResponse) New() protoreflect.Message { + return new(fastReflection_QueryCrossChainSnapshotResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryCrossChainSnapshotResponse) Interface() protoreflect.ProtoMessage { + return (*QueryCrossChainSnapshotResponse)(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_QueryCrossChainSnapshotResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Snapshot != nil { + value := protoreflect.ValueOfMessage(x.Snapshot.ProtoReflect()) + if !f(fd_QueryCrossChainSnapshotResponse_snapshot, 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_QueryCrossChainSnapshotResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot": + return x.Snapshot != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse 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_QueryCrossChainSnapshotResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot": + x.Snapshot = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse 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_QueryCrossChainSnapshotResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot": + value := x.Snapshot + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse 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_QueryCrossChainSnapshotResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot": + x.Snapshot = value.Message().Interface().(*CrossChainPositionSnapshot) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse 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_QueryCrossChainSnapshotResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot": + if x.Snapshot == nil { + x.Snapshot = new(CrossChainPositionSnapshot) + } + return protoreflect.ValueOfMessage(x.Snapshot.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse 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_QueryCrossChainSnapshotResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot": + m := new(CrossChainPositionSnapshot) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse 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_QueryCrossChainSnapshotResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse", 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_QueryCrossChainSnapshotResponse) 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_QueryCrossChainSnapshotResponse) 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_QueryCrossChainSnapshotResponse) 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_QueryCrossChainSnapshotResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryCrossChainSnapshotResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Snapshot != nil { + l = options.Size(x.Snapshot) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryCrossChainSnapshotResponse) + 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.Snapshot != nil { + encoded, err := options.Marshal(x.Snapshot) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryCrossChainSnapshotResponse) + 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: QueryCrossChainSnapshotResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryCrossChainSnapshotResponse: 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 Snapshot", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Snapshot == nil { + x.Snapshot = &CrossChainPositionSnapshot{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Snapshot); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryStaleInflightAlertsRequest protoreflect.MessageDescriptor + fd_QueryStaleInflightAlertsRequest_route_id protoreflect.FieldDescriptor + fd_QueryStaleInflightAlertsRequest_address protoreflect.FieldDescriptor + fd_QueryStaleInflightAlertsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryStaleInflightAlertsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryStaleInflightAlertsRequest") + fd_QueryStaleInflightAlertsRequest_route_id = md_QueryStaleInflightAlertsRequest.Fields().ByName("route_id") + fd_QueryStaleInflightAlertsRequest_address = md_QueryStaleInflightAlertsRequest.Fields().ByName("address") + fd_QueryStaleInflightAlertsRequest_pagination = md_QueryStaleInflightAlertsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryStaleInflightAlertsRequest)(nil) + +type fastReflection_QueryStaleInflightAlertsRequest QueryStaleInflightAlertsRequest + +func (x *QueryStaleInflightAlertsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStaleInflightAlertsRequest)(x) +} + +func (x *QueryStaleInflightAlertsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[36] + 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_QueryStaleInflightAlertsRequest_messageType fastReflection_QueryStaleInflightAlertsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStaleInflightAlertsRequest_messageType{} + +type fastReflection_QueryStaleInflightAlertsRequest_messageType struct{} + +func (x fastReflection_QueryStaleInflightAlertsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStaleInflightAlertsRequest)(nil) +} +func (x fastReflection_QueryStaleInflightAlertsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightAlertsRequest) +} +func (x fastReflection_QueryStaleInflightAlertsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightAlertsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryStaleInflightAlertsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightAlertsRequest +} + +// 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_QueryStaleInflightAlertsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStaleInflightAlertsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryStaleInflightAlertsRequest) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightAlertsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryStaleInflightAlertsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStaleInflightAlertsRequest)(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_QueryStaleInflightAlertsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_QueryStaleInflightAlertsRequest_route_id, value) { + return + } + } + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryStaleInflightAlertsRequest_address, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryStaleInflightAlertsRequest_pagination, 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_QueryStaleInflightAlertsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.address": + return x.Address != "" + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest 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_QueryStaleInflightAlertsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.address": + x.Address = "" + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest 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_QueryStaleInflightAlertsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest 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_QueryStaleInflightAlertsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.address": + x.Address = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest 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_QueryStaleInflightAlertsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest is not mutable")) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest 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_QueryStaleInflightAlertsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest 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_QueryStaleInflightAlertsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest", 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_QueryStaleInflightAlertsRequest) 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_QueryStaleInflightAlertsRequest) 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_QueryStaleInflightAlertsRequest) 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_QueryStaleInflightAlertsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryStaleInflightAlertsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryStaleInflightAlertsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*QueryStaleInflightAlertsRequest) + 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: QueryStaleInflightAlertsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStaleInflightAlertsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryStaleInflightAlertsResponse_1_list)(nil) + +type _QueryStaleInflightAlertsResponse_1_list struct { + list *[]*StaleInflightAlertWithDetails +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StaleInflightAlertWithDetails) + (*x.list)[i] = concreteValue +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StaleInflightAlertWithDetails) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(StaleInflightAlertWithDetails) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) NewElement() protoreflect.Value { + v := new(StaleInflightAlertWithDetails) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryStaleInflightAlertsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryStaleInflightAlertsResponse protoreflect.MessageDescriptor + fd_QueryStaleInflightAlertsResponse_alerts protoreflect.FieldDescriptor + fd_QueryStaleInflightAlertsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryStaleInflightAlertsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryStaleInflightAlertsResponse") + fd_QueryStaleInflightAlertsResponse_alerts = md_QueryStaleInflightAlertsResponse.Fields().ByName("alerts") + fd_QueryStaleInflightAlertsResponse_pagination = md_QueryStaleInflightAlertsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryStaleInflightAlertsResponse)(nil) + +type fastReflection_QueryStaleInflightAlertsResponse QueryStaleInflightAlertsResponse + +func (x *QueryStaleInflightAlertsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStaleInflightAlertsResponse)(x) +} + +func (x *QueryStaleInflightAlertsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[37] + 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_QueryStaleInflightAlertsResponse_messageType fastReflection_QueryStaleInflightAlertsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStaleInflightAlertsResponse_messageType{} + +type fastReflection_QueryStaleInflightAlertsResponse_messageType struct{} + +func (x fastReflection_QueryStaleInflightAlertsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStaleInflightAlertsResponse)(nil) +} +func (x fastReflection_QueryStaleInflightAlertsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightAlertsResponse) +} +func (x fastReflection_QueryStaleInflightAlertsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightAlertsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryStaleInflightAlertsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightAlertsResponse +} + +// 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_QueryStaleInflightAlertsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStaleInflightAlertsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryStaleInflightAlertsResponse) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightAlertsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryStaleInflightAlertsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStaleInflightAlertsResponse)(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_QueryStaleInflightAlertsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Alerts) != 0 { + value := protoreflect.ValueOfList(&_QueryStaleInflightAlertsResponse_1_list{list: &x.Alerts}) + if !f(fd_QueryStaleInflightAlertsResponse_alerts, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryStaleInflightAlertsResponse_pagination, 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_QueryStaleInflightAlertsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts": + return len(x.Alerts) != 0 + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse 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_QueryStaleInflightAlertsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts": + x.Alerts = nil + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse 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_QueryStaleInflightAlertsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts": + if len(x.Alerts) == 0 { + return protoreflect.ValueOfList(&_QueryStaleInflightAlertsResponse_1_list{}) + } + listValue := &_QueryStaleInflightAlertsResponse_1_list{list: &x.Alerts} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse 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_QueryStaleInflightAlertsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts": + lv := value.List() + clv := lv.(*_QueryStaleInflightAlertsResponse_1_list) + x.Alerts = *clv.list + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse 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_QueryStaleInflightAlertsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts": + if x.Alerts == nil { + x.Alerts = []*StaleInflightAlertWithDetails{} + } + value := &_QueryStaleInflightAlertsResponse_1_list{list: &x.Alerts} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse 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_QueryStaleInflightAlertsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts": + list := []*StaleInflightAlertWithDetails{} + return protoreflect.ValueOfList(&_QueryStaleInflightAlertsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse 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_QueryStaleInflightAlertsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse", 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_QueryStaleInflightAlertsResponse) 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_QueryStaleInflightAlertsResponse) 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_QueryStaleInflightAlertsResponse) 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_QueryStaleInflightAlertsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryStaleInflightAlertsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Alerts) > 0 { + for _, e := range x.Alerts { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryStaleInflightAlertsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Alerts) > 0 { + for iNdEx := len(x.Alerts) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Alerts[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryStaleInflightAlertsResponse) + 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: QueryStaleInflightAlertsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStaleInflightAlertsResponse: 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 Alerts", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Alerts = append(x.Alerts, &StaleInflightAlertWithDetails{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Alerts[len(x.Alerts)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_StaleInflightAlertWithDetails protoreflect.MessageDescriptor + fd_StaleInflightAlertWithDetails_alert protoreflect.FieldDescriptor + fd_StaleInflightAlertWithDetails_route protoreflect.FieldDescriptor + fd_StaleInflightAlertWithDetails_fund protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_StaleInflightAlertWithDetails = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("StaleInflightAlertWithDetails") + fd_StaleInflightAlertWithDetails_alert = md_StaleInflightAlertWithDetails.Fields().ByName("alert") + fd_StaleInflightAlertWithDetails_route = md_StaleInflightAlertWithDetails.Fields().ByName("route") + fd_StaleInflightAlertWithDetails_fund = md_StaleInflightAlertWithDetails.Fields().ByName("fund") +} + +var _ protoreflect.Message = (*fastReflection_StaleInflightAlertWithDetails)(nil) + +type fastReflection_StaleInflightAlertWithDetails StaleInflightAlertWithDetails + +func (x *StaleInflightAlertWithDetails) ProtoReflect() protoreflect.Message { + return (*fastReflection_StaleInflightAlertWithDetails)(x) +} + +func (x *StaleInflightAlertWithDetails) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[38] + 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_StaleInflightAlertWithDetails_messageType fastReflection_StaleInflightAlertWithDetails_messageType +var _ protoreflect.MessageType = fastReflection_StaleInflightAlertWithDetails_messageType{} + +type fastReflection_StaleInflightAlertWithDetails_messageType struct{} + +func (x fastReflection_StaleInflightAlertWithDetails_messageType) Zero() protoreflect.Message { + return (*fastReflection_StaleInflightAlertWithDetails)(nil) +} +func (x fastReflection_StaleInflightAlertWithDetails_messageType) New() protoreflect.Message { + return new(fastReflection_StaleInflightAlertWithDetails) +} +func (x fastReflection_StaleInflightAlertWithDetails_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StaleInflightAlertWithDetails +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StaleInflightAlertWithDetails) Descriptor() protoreflect.MessageDescriptor { + return md_StaleInflightAlertWithDetails +} + +// 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_StaleInflightAlertWithDetails) Type() protoreflect.MessageType { + return _fastReflection_StaleInflightAlertWithDetails_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StaleInflightAlertWithDetails) New() protoreflect.Message { + return new(fastReflection_StaleInflightAlertWithDetails) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StaleInflightAlertWithDetails) Interface() protoreflect.ProtoMessage { + return (*StaleInflightAlertWithDetails)(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_StaleInflightAlertWithDetails) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Alert != nil { + value := protoreflect.ValueOfMessage(x.Alert.ProtoReflect()) + if !f(fd_StaleInflightAlertWithDetails_alert, value) { + return + } + } + if x.Route != nil { + value := protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + if !f(fd_StaleInflightAlertWithDetails_route, value) { + return + } + } + if x.Fund != nil { + value := protoreflect.ValueOfMessage(x.Fund.ProtoReflect()) + if !f(fd_StaleInflightAlertWithDetails_fund, 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_StaleInflightAlertWithDetails) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert": + return x.Alert != nil + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route": + return x.Route != nil + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund": + return x.Fund != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlertWithDetails")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlertWithDetails 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_StaleInflightAlertWithDetails) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert": + x.Alert = nil + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route": + x.Route = nil + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund": + x.Fund = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlertWithDetails")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlertWithDetails 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_StaleInflightAlertWithDetails) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert": + value := x.Alert + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route": + value := x.Route + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund": + value := x.Fund + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlertWithDetails")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlertWithDetails 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_StaleInflightAlertWithDetails) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert": + x.Alert = value.Message().Interface().(*StaleInflightAlert) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route": + x.Route = value.Message().Interface().(*CrossChainRoute) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund": + x.Fund = value.Message().Interface().(*InflightFund) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlertWithDetails")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlertWithDetails 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_StaleInflightAlertWithDetails) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert": + if x.Alert == nil { + x.Alert = new(StaleInflightAlert) + } + return protoreflect.ValueOfMessage(x.Alert.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route": + if x.Route == nil { + x.Route = new(CrossChainRoute) + } + return protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund": + if x.Fund == nil { + x.Fund = new(InflightFund) + } + return protoreflect.ValueOfMessage(x.Fund.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlertWithDetails")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlertWithDetails 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_StaleInflightAlertWithDetails) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert": + m := new(StaleInflightAlert) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route": + m := new(CrossChainRoute) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund": + m := new(InflightFund) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightAlertWithDetails")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightAlertWithDetails 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_StaleInflightAlertWithDetails) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.StaleInflightAlertWithDetails", 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_StaleInflightAlertWithDetails) 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_StaleInflightAlertWithDetails) 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_StaleInflightAlertWithDetails) 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_StaleInflightAlertWithDetails) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StaleInflightAlertWithDetails) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Alert != nil { + l = options.Size(x.Alert) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Route != nil { + l = options.Size(x.Route) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Fund != nil { + l = options.Size(x.Fund) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*StaleInflightAlertWithDetails) + 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.Fund != nil { + encoded, err := options.Marshal(x.Fund) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.Route != nil { + encoded, err := options.Marshal(x.Route) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.Alert != nil { + encoded, err := options.Marshal(x.Alert) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*StaleInflightAlertWithDetails) + 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: StaleInflightAlertWithDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StaleInflightAlertWithDetails: 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 Alert", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Alert == nil { + x.Alert = &StaleInflightAlert{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Alert); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Route == nil { + x.Route = &CrossChainRoute{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Route); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Fund", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Fund == nil { + x.Fund = &InflightFund{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Fund); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryNAVRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryNAVRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryNAVRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryNAVRequest)(nil) + +type fastReflection_QueryNAVRequest QueryNAVRequest + +func (x *QueryNAVRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNAVRequest)(x) +} + +func (x *QueryNAVRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[39] + 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_QueryNAVRequest_messageType fastReflection_QueryNAVRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNAVRequest_messageType{} + +type fastReflection_QueryNAVRequest_messageType struct{} + +func (x fastReflection_QueryNAVRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNAVRequest)(nil) +} +func (x fastReflection_QueryNAVRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNAVRequest) +} +func (x fastReflection_QueryNAVRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNAVRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryNAVRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNAVRequest +} + +// 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_QueryNAVRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNAVRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryNAVRequest) New() protoreflect.Message { + return new(fastReflection_QueryNAVRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryNAVRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNAVRequest)(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_QueryNAVRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryNAVRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVRequest 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_QueryNAVRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVRequest 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_QueryNAVRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVRequest 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_QueryNAVRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVRequest 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_QueryNAVRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVRequest 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_QueryNAVRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVRequest 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_QueryNAVRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryNAVRequest", 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_QueryNAVRequest) 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_QueryNAVRequest) 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_QueryNAVRequest) 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_QueryNAVRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryNAVRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryNAVRequest) + 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 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().(*QueryNAVRequest) + 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: QueryNAVRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNAVRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_NAVBreakdownView protoreflect.MessageDescriptor + fd_NAVBreakdownView_local protoreflect.FieldDescriptor + fd_NAVBreakdownView_remote_positions protoreflect.FieldDescriptor + fd_NAVBreakdownView_inflight protoreflect.FieldDescriptor + fd_NAVBreakdownView_liabilities protoreflect.FieldDescriptor + fd_NAVBreakdownView_total protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_NAVBreakdownView = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("NAVBreakdownView") + fd_NAVBreakdownView_local = md_NAVBreakdownView.Fields().ByName("local") + fd_NAVBreakdownView_remote_positions = md_NAVBreakdownView.Fields().ByName("remote_positions") + fd_NAVBreakdownView_inflight = md_NAVBreakdownView.Fields().ByName("inflight") + fd_NAVBreakdownView_liabilities = md_NAVBreakdownView.Fields().ByName("liabilities") + fd_NAVBreakdownView_total = md_NAVBreakdownView.Fields().ByName("total") +} + +var _ protoreflect.Message = (*fastReflection_NAVBreakdownView)(nil) + +type fastReflection_NAVBreakdownView NAVBreakdownView + +func (x *NAVBreakdownView) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVBreakdownView)(x) +} + +func (x *NAVBreakdownView) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[40] + 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_NAVBreakdownView_messageType fastReflection_NAVBreakdownView_messageType +var _ protoreflect.MessageType = fastReflection_NAVBreakdownView_messageType{} + +type fastReflection_NAVBreakdownView_messageType struct{} + +func (x fastReflection_NAVBreakdownView_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVBreakdownView)(nil) +} +func (x fastReflection_NAVBreakdownView_messageType) New() protoreflect.Message { + return new(fastReflection_NAVBreakdownView) +} +func (x fastReflection_NAVBreakdownView_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVBreakdownView +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVBreakdownView) Descriptor() protoreflect.MessageDescriptor { + return md_NAVBreakdownView +} + +// 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_NAVBreakdownView) Type() protoreflect.MessageType { + return _fastReflection_NAVBreakdownView_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVBreakdownView) New() protoreflect.Message { + return new(fastReflection_NAVBreakdownView) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVBreakdownView) Interface() protoreflect.ProtoMessage { + return (*NAVBreakdownView)(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_NAVBreakdownView) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Local != "" { + value := protoreflect.ValueOfString(x.Local) + if !f(fd_NAVBreakdownView_local, value) { + return + } + } + if x.RemotePositions != "" { + value := protoreflect.ValueOfString(x.RemotePositions) + if !f(fd_NAVBreakdownView_remote_positions, value) { + return + } + } + if x.Inflight != "" { + value := protoreflect.ValueOfString(x.Inflight) + if !f(fd_NAVBreakdownView_inflight, value) { + return + } + } + if x.Liabilities != "" { + value := protoreflect.ValueOfString(x.Liabilities) + if !f(fd_NAVBreakdownView_liabilities, value) { + return + } + } + if x.Total != "" { + value := protoreflect.ValueOfString(x.Total) + if !f(fd_NAVBreakdownView_total, 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_NAVBreakdownView) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBreakdownView.local": + return x.Local != "" + case "noble.dollar.vaults.v2.NAVBreakdownView.remote_positions": + return x.RemotePositions != "" + case "noble.dollar.vaults.v2.NAVBreakdownView.inflight": + return x.Inflight != "" + case "noble.dollar.vaults.v2.NAVBreakdownView.liabilities": + return x.Liabilities != "" + case "noble.dollar.vaults.v2.NAVBreakdownView.total": + return x.Total != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBreakdownView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBreakdownView 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_NAVBreakdownView) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBreakdownView.local": + x.Local = "" + case "noble.dollar.vaults.v2.NAVBreakdownView.remote_positions": + x.RemotePositions = "" + case "noble.dollar.vaults.v2.NAVBreakdownView.inflight": + x.Inflight = "" + case "noble.dollar.vaults.v2.NAVBreakdownView.liabilities": + x.Liabilities = "" + case "noble.dollar.vaults.v2.NAVBreakdownView.total": + x.Total = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBreakdownView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBreakdownView 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_NAVBreakdownView) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVBreakdownView.local": + value := x.Local + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVBreakdownView.remote_positions": + value := x.RemotePositions + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVBreakdownView.inflight": + value := x.Inflight + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVBreakdownView.liabilities": + value := x.Liabilities + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVBreakdownView.total": + value := x.Total + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBreakdownView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBreakdownView 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_NAVBreakdownView) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBreakdownView.local": + x.Local = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVBreakdownView.remote_positions": + x.RemotePositions = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVBreakdownView.inflight": + x.Inflight = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVBreakdownView.liabilities": + x.Liabilities = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVBreakdownView.total": + x.Total = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBreakdownView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBreakdownView 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_NAVBreakdownView) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBreakdownView.local": + panic(fmt.Errorf("field local of message noble.dollar.vaults.v2.NAVBreakdownView is not mutable")) + case "noble.dollar.vaults.v2.NAVBreakdownView.remote_positions": + panic(fmt.Errorf("field remote_positions of message noble.dollar.vaults.v2.NAVBreakdownView is not mutable")) + case "noble.dollar.vaults.v2.NAVBreakdownView.inflight": + panic(fmt.Errorf("field inflight of message noble.dollar.vaults.v2.NAVBreakdownView is not mutable")) + case "noble.dollar.vaults.v2.NAVBreakdownView.liabilities": + panic(fmt.Errorf("field liabilities of message noble.dollar.vaults.v2.NAVBreakdownView is not mutable")) + case "noble.dollar.vaults.v2.NAVBreakdownView.total": + panic(fmt.Errorf("field total of message noble.dollar.vaults.v2.NAVBreakdownView is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBreakdownView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBreakdownView 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_NAVBreakdownView) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVBreakdownView.local": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVBreakdownView.remote_positions": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVBreakdownView.inflight": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVBreakdownView.liabilities": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVBreakdownView.total": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVBreakdownView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVBreakdownView 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_NAVBreakdownView) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVBreakdownView", 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_NAVBreakdownView) 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_NAVBreakdownView) 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_NAVBreakdownView) 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_NAVBreakdownView) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVBreakdownView) + 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.Local) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RemotePositions) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Inflight) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Liabilities) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Total) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*NAVBreakdownView) + 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 len(x.Total) > 0 { + i -= len(x.Total) + copy(dAtA[i:], x.Total) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Total))) + i-- + dAtA[i] = 0x2a + } + if len(x.Liabilities) > 0 { + i -= len(x.Liabilities) + copy(dAtA[i:], x.Liabilities) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Liabilities))) + i-- + dAtA[i] = 0x22 + } + if len(x.Inflight) > 0 { + i -= len(x.Inflight) + copy(dAtA[i:], x.Inflight) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inflight))) + i-- + dAtA[i] = 0x1a + } + if len(x.RemotePositions) > 0 { + i -= len(x.RemotePositions) + copy(dAtA[i:], x.RemotePositions) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemotePositions))) + i-- + dAtA[i] = 0x12 + } + if len(x.Local) > 0 { + i -= len(x.Local) + copy(dAtA[i:], x.Local) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Local))) + 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().(*NAVBreakdownView) + 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: NAVBreakdownView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVBreakdownView: 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 Local", 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.Local = 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 RemotePositions", 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.RemotePositions = 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 Inflight", 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.Inflight = 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 Liabilities", 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.Liabilities = 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 Total", 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.Total = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryNAVResponse protoreflect.MessageDescriptor + fd_QueryNAVResponse_nav protoreflect.FieldDescriptor + fd_QueryNAVResponse_yield_rate protoreflect.FieldDescriptor + fd_QueryNAVResponse_last_update protoreflect.FieldDescriptor + fd_QueryNAVResponse_total_deposits protoreflect.FieldDescriptor + fd_QueryNAVResponse_total_accrued_yield protoreflect.FieldDescriptor + fd_QueryNAVResponse_local_assets protoreflect.FieldDescriptor + fd_QueryNAVResponse_remote_positions_value protoreflect.FieldDescriptor + fd_QueryNAVResponse_inflight_funds_value protoreflect.FieldDescriptor + fd_QueryNAVResponse_pending_withdrawals protoreflect.FieldDescriptor + fd_QueryNAVResponse_nav_breakdown protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryNAVResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryNAVResponse") + fd_QueryNAVResponse_nav = md_QueryNAVResponse.Fields().ByName("nav") + fd_QueryNAVResponse_yield_rate = md_QueryNAVResponse.Fields().ByName("yield_rate") + fd_QueryNAVResponse_last_update = md_QueryNAVResponse.Fields().ByName("last_update") + fd_QueryNAVResponse_total_deposits = md_QueryNAVResponse.Fields().ByName("total_deposits") + fd_QueryNAVResponse_total_accrued_yield = md_QueryNAVResponse.Fields().ByName("total_accrued_yield") + fd_QueryNAVResponse_local_assets = md_QueryNAVResponse.Fields().ByName("local_assets") + fd_QueryNAVResponse_remote_positions_value = md_QueryNAVResponse.Fields().ByName("remote_positions_value") + fd_QueryNAVResponse_inflight_funds_value = md_QueryNAVResponse.Fields().ByName("inflight_funds_value") + fd_QueryNAVResponse_pending_withdrawals = md_QueryNAVResponse.Fields().ByName("pending_withdrawals") + fd_QueryNAVResponse_nav_breakdown = md_QueryNAVResponse.Fields().ByName("nav_breakdown") +} + +var _ protoreflect.Message = (*fastReflection_QueryNAVResponse)(nil) + +type fastReflection_QueryNAVResponse QueryNAVResponse + +func (x *QueryNAVResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNAVResponse)(x) +} + +func (x *QueryNAVResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[41] + 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_QueryNAVResponse_messageType fastReflection_QueryNAVResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNAVResponse_messageType{} + +type fastReflection_QueryNAVResponse_messageType struct{} + +func (x fastReflection_QueryNAVResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNAVResponse)(nil) +} +func (x fastReflection_QueryNAVResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNAVResponse) +} +func (x fastReflection_QueryNAVResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNAVResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryNAVResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNAVResponse +} + +// 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_QueryNAVResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNAVResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryNAVResponse) New() protoreflect.Message { + return new(fastReflection_QueryNAVResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryNAVResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNAVResponse)(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_QueryNAVResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nav != "" { + value := protoreflect.ValueOfString(x.Nav) + if !f(fd_QueryNAVResponse_nav, value) { + return + } + } + if x.YieldRate != "" { + value := protoreflect.ValueOfString(x.YieldRate) + if !f(fd_QueryNAVResponse_yield_rate, value) { + return + } + } + if x.LastUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + if !f(fd_QueryNAVResponse_last_update, value) { + return + } + } + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_QueryNAVResponse_total_deposits, value) { + return + } + } + if x.TotalAccruedYield != "" { + value := protoreflect.ValueOfString(x.TotalAccruedYield) + if !f(fd_QueryNAVResponse_total_accrued_yield, value) { + return + } + } + if x.LocalAssets != "" { + value := protoreflect.ValueOfString(x.LocalAssets) + if !f(fd_QueryNAVResponse_local_assets, value) { + return + } + } + if x.RemotePositionsValue != "" { + value := protoreflect.ValueOfString(x.RemotePositionsValue) + if !f(fd_QueryNAVResponse_remote_positions_value, value) { + return + } + } + if x.InflightFundsValue != "" { + value := protoreflect.ValueOfString(x.InflightFundsValue) + if !f(fd_QueryNAVResponse_inflight_funds_value, value) { + return + } + } + if x.PendingWithdrawals != "" { + value := protoreflect.ValueOfString(x.PendingWithdrawals) + if !f(fd_QueryNAVResponse_pending_withdrawals, value) { + return + } + } + if x.NavBreakdown != nil { + value := protoreflect.ValueOfMessage(x.NavBreakdown.ProtoReflect()) + if !f(fd_QueryNAVResponse_nav_breakdown, 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_QueryNAVResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryNAVResponse.nav": + return x.Nav != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.yield_rate": + return x.YieldRate != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.last_update": + return x.LastUpdate != nil + case "noble.dollar.vaults.v2.QueryNAVResponse.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.total_accrued_yield": + return x.TotalAccruedYield != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.local_assets": + return x.LocalAssets != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.remote_positions_value": + return x.RemotePositionsValue != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.inflight_funds_value": + return x.InflightFundsValue != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.pending_withdrawals": + return x.PendingWithdrawals != "" + case "noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown": + return x.NavBreakdown != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVResponse 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_QueryNAVResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryNAVResponse.nav": + x.Nav = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.yield_rate": + x.YieldRate = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.last_update": + x.LastUpdate = nil + case "noble.dollar.vaults.v2.QueryNAVResponse.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.total_accrued_yield": + x.TotalAccruedYield = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.local_assets": + x.LocalAssets = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.remote_positions_value": + x.RemotePositionsValue = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.inflight_funds_value": + x.InflightFundsValue = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.pending_withdrawals": + x.PendingWithdrawals = "" + case "noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown": + x.NavBreakdown = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVResponse 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_QueryNAVResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryNAVResponse.nav": + value := x.Nav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.yield_rate": + value := x.YieldRate + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.last_update": + value := x.LastUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_accrued_yield": + value := x.TotalAccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.local_assets": + value := x.LocalAssets + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.remote_positions_value": + value := x.RemotePositionsValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.inflight_funds_value": + value := x.InflightFundsValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.pending_withdrawals": + value := x.PendingWithdrawals + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown": + value := x.NavBreakdown + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVResponse 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_QueryNAVResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryNAVResponse.nav": + x.Nav = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.yield_rate": + x.YieldRate = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.last_update": + x.LastUpdate = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_accrued_yield": + x.TotalAccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.local_assets": + x.LocalAssets = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.remote_positions_value": + x.RemotePositionsValue = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.inflight_funds_value": + x.InflightFundsValue = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.pending_withdrawals": + x.PendingWithdrawals = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown": + x.NavBreakdown = value.Message().Interface().(*NAVBreakdownView) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVResponse 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_QueryNAVResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryNAVResponse.last_update": + if x.LastUpdate == nil { + x.LastUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown": + if x.NavBreakdown == nil { + x.NavBreakdown = new(NAVBreakdownView) + } + return protoreflect.ValueOfMessage(x.NavBreakdown.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryNAVResponse.nav": + panic(fmt.Errorf("field nav of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.yield_rate": + panic(fmt.Errorf("field yield_rate of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_accrued_yield": + panic(fmt.Errorf("field total_accrued_yield of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.local_assets": + panic(fmt.Errorf("field local_assets of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.remote_positions_value": + panic(fmt.Errorf("field remote_positions_value of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.inflight_funds_value": + panic(fmt.Errorf("field inflight_funds_value of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryNAVResponse.pending_withdrawals": + panic(fmt.Errorf("field pending_withdrawals of message noble.dollar.vaults.v2.QueryNAVResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVResponse 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_QueryNAVResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryNAVResponse.nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.yield_rate": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.last_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryNAVResponse.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.total_accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.local_assets": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.remote_positions_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.inflight_funds_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.pending_withdrawals": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown": + m := new(NAVBreakdownView) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryNAVResponse 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_QueryNAVResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryNAVResponse", 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_QueryNAVResponse) 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_QueryNAVResponse) 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_QueryNAVResponse) 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_QueryNAVResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryNAVResponse) + 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.Nav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdate != nil { + l = options.Size(x.LastUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LocalAssets) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RemotePositionsValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.InflightFundsValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PendingWithdrawals) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NavBreakdown != nil { + l = options.Size(x.NavBreakdown) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryNAVResponse) + 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.NavBreakdown != nil { + encoded, err := options.Marshal(x.NavBreakdown) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x52 + } + if len(x.PendingWithdrawals) > 0 { + i -= len(x.PendingWithdrawals) + copy(dAtA[i:], x.PendingWithdrawals) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingWithdrawals))) + i-- + dAtA[i] = 0x4a + } + if len(x.InflightFundsValue) > 0 { + i -= len(x.InflightFundsValue) + copy(dAtA[i:], x.InflightFundsValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InflightFundsValue))) + i-- + dAtA[i] = 0x42 + } + if len(x.RemotePositionsValue) > 0 { + i -= len(x.RemotePositionsValue) + copy(dAtA[i:], x.RemotePositionsValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemotePositionsValue))) + i-- + dAtA[i] = 0x3a + } + if len(x.LocalAssets) > 0 { + i -= len(x.LocalAssets) + copy(dAtA[i:], x.LocalAssets) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocalAssets))) + i-- + dAtA[i] = 0x32 + } + if len(x.TotalAccruedYield) > 0 { + i -= len(x.TotalAccruedYield) + copy(dAtA[i:], x.TotalAccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAccruedYield))) + i-- + dAtA[i] = 0x2a + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + i-- + dAtA[i] = 0x22 + } + if x.LastUpdate != nil { + encoded, err := options.Marshal(x.LastUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.YieldRate) > 0 { + i -= len(x.YieldRate) + copy(dAtA[i:], x.YieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldRate))) + i-- + dAtA[i] = 0x12 + } + if len(x.Nav) > 0 { + i -= len(x.Nav) + copy(dAtA[i:], x.Nav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Nav))) + 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().(*QueryNAVResponse) + 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: QueryNAVResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNAVResponse: 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 Nav", 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.Nav = 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 YieldRate", 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.YieldRate = 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 LastUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastUpdate == nil { + x.LastUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits = 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 TotalAccruedYield", 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.TotalAccruedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LocalAssets", 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.LocalAssets = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemotePositionsValue", 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.RemotePositionsValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InflightFundsValue", 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.InflightFundsValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PendingWithdrawals", 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.PendingWithdrawals = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NavBreakdown", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.NavBreakdown == nil { + x.NavBreakdown = &NAVBreakdownView{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NavBreakdown); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryWithdrawalQueueRequest protoreflect.MessageDescriptor + fd_QueryWithdrawalQueueRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryWithdrawalQueueRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryWithdrawalQueueRequest") + fd_QueryWithdrawalQueueRequest_pagination = md_QueryWithdrawalQueueRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryWithdrawalQueueRequest)(nil) + +type fastReflection_QueryWithdrawalQueueRequest QueryWithdrawalQueueRequest + +func (x *QueryWithdrawalQueueRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWithdrawalQueueRequest)(x) +} + +func (x *QueryWithdrawalQueueRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[42] + 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_QueryWithdrawalQueueRequest_messageType fastReflection_QueryWithdrawalQueueRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryWithdrawalQueueRequest_messageType{} + +type fastReflection_QueryWithdrawalQueueRequest_messageType struct{} + +func (x fastReflection_QueryWithdrawalQueueRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWithdrawalQueueRequest)(nil) +} +func (x fastReflection_QueryWithdrawalQueueRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWithdrawalQueueRequest) +} +func (x fastReflection_QueryWithdrawalQueueRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWithdrawalQueueRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryWithdrawalQueueRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWithdrawalQueueRequest +} + +// 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_QueryWithdrawalQueueRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryWithdrawalQueueRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryWithdrawalQueueRequest) New() protoreflect.Message { + return new(fastReflection_QueryWithdrawalQueueRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryWithdrawalQueueRequest) Interface() protoreflect.ProtoMessage { + return (*QueryWithdrawalQueueRequest)(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_QueryWithdrawalQueueRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryWithdrawalQueueRequest_pagination, 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_QueryWithdrawalQueueRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueRequest 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_QueryWithdrawalQueueRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueRequest 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_QueryWithdrawalQueueRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueRequest 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_QueryWithdrawalQueueRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueRequest 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_QueryWithdrawalQueueRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueRequest 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_QueryWithdrawalQueueRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueRequest 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_QueryWithdrawalQueueRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryWithdrawalQueueRequest", 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_QueryWithdrawalQueueRequest) 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_QueryWithdrawalQueueRequest) 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_QueryWithdrawalQueueRequest) 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_QueryWithdrawalQueueRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryWithdrawalQueueRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryWithdrawalQueueRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryWithdrawalQueueRequest) + 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: QueryWithdrawalQueueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWithdrawalQueueRequest: 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_WithdrawalQueueItem protoreflect.MessageDescriptor + fd_WithdrawalQueueItem_request_id protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_user protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_amount protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_principal_amount protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_yield_amount protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_timestamp protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_status protoreflect.FieldDescriptor + fd_WithdrawalQueueItem_position protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_WithdrawalQueueItem = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("WithdrawalQueueItem") + fd_WithdrawalQueueItem_request_id = md_WithdrawalQueueItem.Fields().ByName("request_id") + fd_WithdrawalQueueItem_user = md_WithdrawalQueueItem.Fields().ByName("user") + fd_WithdrawalQueueItem_amount = md_WithdrawalQueueItem.Fields().ByName("amount") + fd_WithdrawalQueueItem_principal_amount = md_WithdrawalQueueItem.Fields().ByName("principal_amount") + fd_WithdrawalQueueItem_yield_amount = md_WithdrawalQueueItem.Fields().ByName("yield_amount") + fd_WithdrawalQueueItem_timestamp = md_WithdrawalQueueItem.Fields().ByName("timestamp") + fd_WithdrawalQueueItem_status = md_WithdrawalQueueItem.Fields().ByName("status") + fd_WithdrawalQueueItem_position = md_WithdrawalQueueItem.Fields().ByName("position") +} + +var _ protoreflect.Message = (*fastReflection_WithdrawalQueueItem)(nil) + +type fastReflection_WithdrawalQueueItem WithdrawalQueueItem + +func (x *WithdrawalQueueItem) ProtoReflect() protoreflect.Message { + return (*fastReflection_WithdrawalQueueItem)(x) +} + +func (x *WithdrawalQueueItem) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[43] + 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_WithdrawalQueueItem_messageType fastReflection_WithdrawalQueueItem_messageType +var _ protoreflect.MessageType = fastReflection_WithdrawalQueueItem_messageType{} + +type fastReflection_WithdrawalQueueItem_messageType struct{} + +func (x fastReflection_WithdrawalQueueItem_messageType) Zero() protoreflect.Message { + return (*fastReflection_WithdrawalQueueItem)(nil) +} +func (x fastReflection_WithdrawalQueueItem_messageType) New() protoreflect.Message { + return new(fastReflection_WithdrawalQueueItem) +} +func (x fastReflection_WithdrawalQueueItem_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalQueueItem +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WithdrawalQueueItem) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalQueueItem +} + +// 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_WithdrawalQueueItem) Type() protoreflect.MessageType { + return _fastReflection_WithdrawalQueueItem_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WithdrawalQueueItem) New() protoreflect.Message { + return new(fastReflection_WithdrawalQueueItem) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WithdrawalQueueItem) Interface() protoreflect.ProtoMessage { + return (*WithdrawalQueueItem)(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_WithdrawalQueueItem) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestId != "" { + value := protoreflect.ValueOfString(x.RequestId) + if !f(fd_WithdrawalQueueItem_request_id, value) { + return + } + } + if x.User != "" { + value := protoreflect.ValueOfString(x.User) + if !f(fd_WithdrawalQueueItem_user, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_WithdrawalQueueItem_amount, value) { + return + } + } + if x.PrincipalAmount != "" { + value := protoreflect.ValueOfString(x.PrincipalAmount) + if !f(fd_WithdrawalQueueItem_principal_amount, value) { + return + } + } + if x.YieldAmount != "" { + value := protoreflect.ValueOfString(x.YieldAmount) + if !f(fd_WithdrawalQueueItem_yield_amount, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_WithdrawalQueueItem_timestamp, value) { + return + } + } + if x.Status != "" { + value := protoreflect.ValueOfString(x.Status) + if !f(fd_WithdrawalQueueItem_status, value) { + return + } + } + if x.Position != uint64(0) { + value := protoreflect.ValueOfUint64(x.Position) + if !f(fd_WithdrawalQueueItem_position, 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_WithdrawalQueueItem) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalQueueItem.request_id": + return x.RequestId != "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.user": + return x.User != "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.principal_amount": + return x.PrincipalAmount != "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.yield_amount": + return x.YieldAmount != "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.WithdrawalQueueItem.status": + return x.Status != "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.position": + return x.Position != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalQueueItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalQueueItem 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_WithdrawalQueueItem) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalQueueItem.request_id": + x.RequestId = "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.user": + x.User = "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.principal_amount": + x.PrincipalAmount = "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.yield_amount": + x.YieldAmount = "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.WithdrawalQueueItem.status": + x.Status = "" + case "noble.dollar.vaults.v2.WithdrawalQueueItem.position": + x.Position = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalQueueItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalQueueItem 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_WithdrawalQueueItem) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.WithdrawalQueueItem.request_id": + value := x.RequestId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.user": + value := x.User + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.principal_amount": + value := x.PrincipalAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.yield_amount": + value := x.YieldAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.status": + value := x.Status + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.position": + value := x.Position + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalQueueItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalQueueItem 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_WithdrawalQueueItem) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalQueueItem.request_id": + x.RequestId = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.user": + x.User = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.principal_amount": + x.PrincipalAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.yield_amount": + x.YieldAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.status": + x.Status = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.position": + x.Position = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalQueueItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalQueueItem 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_WithdrawalQueueItem) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.request_id": + panic(fmt.Errorf("field request_id of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.user": + panic(fmt.Errorf("field user of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.principal_amount": + panic(fmt.Errorf("field principal_amount of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.yield_amount": + panic(fmt.Errorf("field yield_amount of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.position": + panic(fmt.Errorf("field position of message noble.dollar.vaults.v2.WithdrawalQueueItem is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalQueueItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalQueueItem 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_WithdrawalQueueItem) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalQueueItem.request_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalQueueItem.user": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalQueueItem.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalQueueItem.principal_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalQueueItem.yield_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalQueueItem.status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalQueueItem.position": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalQueueItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalQueueItem 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_WithdrawalQueueItem) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.WithdrawalQueueItem", 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_WithdrawalQueueItem) 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_WithdrawalQueueItem) 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_WithdrawalQueueItem) 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_WithdrawalQueueItem) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WithdrawalQueueItem) + 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.RequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.User) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PrincipalAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Status) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Position != 0 { + n += 1 + runtime.Sov(uint64(x.Position)) + } + 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().(*WithdrawalQueueItem) + 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.Position != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Position)) + i-- + dAtA[i] = 0x40 + } + if len(x.Status) > 0 { + i -= len(x.Status) + copy(dAtA[i:], x.Status) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) + i-- + dAtA[i] = 0x3a + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.YieldAmount) > 0 { + i -= len(x.YieldAmount) + copy(dAtA[i:], x.YieldAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldAmount))) + i-- + dAtA[i] = 0x2a + } + if len(x.PrincipalAmount) > 0 { + i -= len(x.PrincipalAmount) + copy(dAtA[i:], x.PrincipalAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PrincipalAmount))) + i-- + dAtA[i] = 0x22 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(x.User) > 0 { + i -= len(x.User) + copy(dAtA[i:], x.User) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) + i-- + dAtA[i] = 0x12 + } + if len(x.RequestId) > 0 { + i -= len(x.RequestId) + copy(dAtA[i:], x.RequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) + 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().(*WithdrawalQueueItem) + 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: WithdrawalQueueItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithdrawalQueueItem: 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 RequestId", 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.RequestId = 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 User", 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.User = 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 Amount", 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.Amount = 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 PrincipalAmount", 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.PrincipalAmount = 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 YieldAmount", 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.YieldAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + x.Position = 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.Position |= 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, + } +} + +var _ protoreflect.List = (*_QueryWithdrawalQueueResponse_1_list)(nil) + +type _QueryWithdrawalQueueResponse_1_list struct { + list *[]*WithdrawalQueueItem +} + +func (x *_QueryWithdrawalQueueResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryWithdrawalQueueResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryWithdrawalQueueResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithdrawalQueueItem) + (*x.list)[i] = concreteValue +} + +func (x *_QueryWithdrawalQueueResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithdrawalQueueItem) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryWithdrawalQueueResponse_1_list) AppendMutable() protoreflect.Value { + v := new(WithdrawalQueueItem) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryWithdrawalQueueResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryWithdrawalQueueResponse_1_list) NewElement() protoreflect.Value { + v := new(WithdrawalQueueItem) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryWithdrawalQueueResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryWithdrawalQueueResponse protoreflect.MessageDescriptor + fd_QueryWithdrawalQueueResponse_pending_requests protoreflect.FieldDescriptor + fd_QueryWithdrawalQueueResponse_total_pending protoreflect.FieldDescriptor + fd_QueryWithdrawalQueueResponse_available_liquidity protoreflect.FieldDescriptor + fd_QueryWithdrawalQueueResponse_queue_length protoreflect.FieldDescriptor + fd_QueryWithdrawalQueueResponse_estimated_processing_time protoreflect.FieldDescriptor + fd_QueryWithdrawalQueueResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryWithdrawalQueueResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryWithdrawalQueueResponse") + fd_QueryWithdrawalQueueResponse_pending_requests = md_QueryWithdrawalQueueResponse.Fields().ByName("pending_requests") + fd_QueryWithdrawalQueueResponse_total_pending = md_QueryWithdrawalQueueResponse.Fields().ByName("total_pending") + fd_QueryWithdrawalQueueResponse_available_liquidity = md_QueryWithdrawalQueueResponse.Fields().ByName("available_liquidity") + fd_QueryWithdrawalQueueResponse_queue_length = md_QueryWithdrawalQueueResponse.Fields().ByName("queue_length") + fd_QueryWithdrawalQueueResponse_estimated_processing_time = md_QueryWithdrawalQueueResponse.Fields().ByName("estimated_processing_time") + fd_QueryWithdrawalQueueResponse_pagination = md_QueryWithdrawalQueueResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryWithdrawalQueueResponse)(nil) + +type fastReflection_QueryWithdrawalQueueResponse QueryWithdrawalQueueResponse + +func (x *QueryWithdrawalQueueResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWithdrawalQueueResponse)(x) +} + +func (x *QueryWithdrawalQueueResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[44] + 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_QueryWithdrawalQueueResponse_messageType fastReflection_QueryWithdrawalQueueResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryWithdrawalQueueResponse_messageType{} + +type fastReflection_QueryWithdrawalQueueResponse_messageType struct{} + +func (x fastReflection_QueryWithdrawalQueueResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWithdrawalQueueResponse)(nil) +} +func (x fastReflection_QueryWithdrawalQueueResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWithdrawalQueueResponse) +} +func (x fastReflection_QueryWithdrawalQueueResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWithdrawalQueueResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryWithdrawalQueueResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWithdrawalQueueResponse +} + +// 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_QueryWithdrawalQueueResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryWithdrawalQueueResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryWithdrawalQueueResponse) New() protoreflect.Message { + return new(fastReflection_QueryWithdrawalQueueResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryWithdrawalQueueResponse) Interface() protoreflect.ProtoMessage { + return (*QueryWithdrawalQueueResponse)(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_QueryWithdrawalQueueResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.PendingRequests) != 0 { + value := protoreflect.ValueOfList(&_QueryWithdrawalQueueResponse_1_list{list: &x.PendingRequests}) + if !f(fd_QueryWithdrawalQueueResponse_pending_requests, value) { + return + } + } + if x.TotalPending != "" { + value := protoreflect.ValueOfString(x.TotalPending) + if !f(fd_QueryWithdrawalQueueResponse_total_pending, value) { + return + } + } + if x.AvailableLiquidity != "" { + value := protoreflect.ValueOfString(x.AvailableLiquidity) + if !f(fd_QueryWithdrawalQueueResponse_available_liquidity, value) { + return + } + } + if x.QueueLength != uint64(0) { + value := protoreflect.ValueOfUint64(x.QueueLength) + if !f(fd_QueryWithdrawalQueueResponse_queue_length, value) { + return + } + } + if x.EstimatedProcessingTime != "" { + value := protoreflect.ValueOfString(x.EstimatedProcessingTime) + if !f(fd_QueryWithdrawalQueueResponse_estimated_processing_time, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryWithdrawalQueueResponse_pagination, 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_QueryWithdrawalQueueResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests": + return len(x.PendingRequests) != 0 + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.total_pending": + return x.TotalPending != "" + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.available_liquidity": + return x.AvailableLiquidity != "" + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.queue_length": + return x.QueueLength != uint64(0) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.estimated_processing_time": + return x.EstimatedProcessingTime != "" + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse 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_QueryWithdrawalQueueResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests": + x.PendingRequests = nil + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.total_pending": + x.TotalPending = "" + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.available_liquidity": + x.AvailableLiquidity = "" + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.queue_length": + x.QueueLength = uint64(0) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.estimated_processing_time": + x.EstimatedProcessingTime = "" + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse 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_QueryWithdrawalQueueResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests": + if len(x.PendingRequests) == 0 { + return protoreflect.ValueOfList(&_QueryWithdrawalQueueResponse_1_list{}) + } + listValue := &_QueryWithdrawalQueueResponse_1_list{list: &x.PendingRequests} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.total_pending": + value := x.TotalPending + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.available_liquidity": + value := x.AvailableLiquidity + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.queue_length": + value := x.QueueLength + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.estimated_processing_time": + value := x.EstimatedProcessingTime + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse 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_QueryWithdrawalQueueResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests": + lv := value.List() + clv := lv.(*_QueryWithdrawalQueueResponse_1_list) + x.PendingRequests = *clv.list + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.total_pending": + x.TotalPending = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.available_liquidity": + x.AvailableLiquidity = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.queue_length": + x.QueueLength = value.Uint() + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.estimated_processing_time": + x.EstimatedProcessingTime = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse 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_QueryWithdrawalQueueResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests": + if x.PendingRequests == nil { + x.PendingRequests = []*WithdrawalQueueItem{} + } + value := &_QueryWithdrawalQueueResponse_1_list{list: &x.PendingRequests} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.total_pending": + panic(fmt.Errorf("field total_pending of message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.available_liquidity": + panic(fmt.Errorf("field available_liquidity of message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.queue_length": + panic(fmt.Errorf("field queue_length of message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.estimated_processing_time": + panic(fmt.Errorf("field estimated_processing_time of message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse 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_QueryWithdrawalQueueResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests": + list := []*WithdrawalQueueItem{} + return protoreflect.ValueOfList(&_QueryWithdrawalQueueResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.total_pending": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.available_liquidity": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.queue_length": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.estimated_processing_time": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryWithdrawalQueueResponse 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_QueryWithdrawalQueueResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryWithdrawalQueueResponse", 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_QueryWithdrawalQueueResponse) 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_QueryWithdrawalQueueResponse) 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_QueryWithdrawalQueueResponse) 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_QueryWithdrawalQueueResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryWithdrawalQueueResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.PendingRequests) > 0 { + for _, e := range x.PendingRequests { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.TotalPending) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AvailableLiquidity) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.QueueLength != 0 { + n += 1 + runtime.Sov(uint64(x.QueueLength)) + } + l = len(x.EstimatedProcessingTime) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryWithdrawalQueueResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.EstimatedProcessingTime) > 0 { + i -= len(x.EstimatedProcessingTime) + copy(dAtA[i:], x.EstimatedProcessingTime) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EstimatedProcessingTime))) + i-- + dAtA[i] = 0x2a + } + if x.QueueLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.QueueLength)) + i-- + dAtA[i] = 0x20 + } + if len(x.AvailableLiquidity) > 0 { + i -= len(x.AvailableLiquidity) + copy(dAtA[i:], x.AvailableLiquidity) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AvailableLiquidity))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalPending) > 0 { + i -= len(x.TotalPending) + copy(dAtA[i:], x.TotalPending) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalPending))) + i-- + dAtA[i] = 0x12 + } + if len(x.PendingRequests) > 0 { + for iNdEx := len(x.PendingRequests) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PendingRequests[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryWithdrawalQueueResponse) + 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: QueryWithdrawalQueueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWithdrawalQueueResponse: 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 PendingRequests", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.PendingRequests = append(x.PendingRequests, &WithdrawalQueueItem{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PendingRequests[len(x.PendingRequests)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalPending", 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.TotalPending = 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 AvailableLiquidity", 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.AvailableLiquidity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueueLength", wireType) + } + x.QueueLength = 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.QueueLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EstimatedProcessingTime", 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.EstimatedProcessingTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryUserWithdrawalsRequest protoreflect.MessageDescriptor + fd_QueryUserWithdrawalsRequest_address protoreflect.FieldDescriptor + fd_QueryUserWithdrawalsRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserWithdrawalsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserWithdrawalsRequest") + fd_QueryUserWithdrawalsRequest_address = md_QueryUserWithdrawalsRequest.Fields().ByName("address") + fd_QueryUserWithdrawalsRequest_pagination = md_QueryUserWithdrawalsRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserWithdrawalsRequest)(nil) + +type fastReflection_QueryUserWithdrawalsRequest QueryUserWithdrawalsRequest + +func (x *QueryUserWithdrawalsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserWithdrawalsRequest)(x) +} + +func (x *QueryUserWithdrawalsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[45] + 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_QueryUserWithdrawalsRequest_messageType fastReflection_QueryUserWithdrawalsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserWithdrawalsRequest_messageType{} + +type fastReflection_QueryUserWithdrawalsRequest_messageType struct{} + +func (x fastReflection_QueryUserWithdrawalsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserWithdrawalsRequest)(nil) +} +func (x fastReflection_QueryUserWithdrawalsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserWithdrawalsRequest) +} +func (x fastReflection_QueryUserWithdrawalsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserWithdrawalsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserWithdrawalsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserWithdrawalsRequest +} + +// 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_QueryUserWithdrawalsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryUserWithdrawalsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserWithdrawalsRequest) New() protoreflect.Message { + return new(fastReflection_QueryUserWithdrawalsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserWithdrawalsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryUserWithdrawalsRequest)(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_QueryUserWithdrawalsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryUserWithdrawalsRequest_address, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryUserWithdrawalsRequest_pagination, 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_QueryUserWithdrawalsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.address": + return x.Address != "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest 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_QueryUserWithdrawalsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.address": + x.Address = "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest 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_QueryUserWithdrawalsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest 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_QueryUserWithdrawalsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.address": + x.Address = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest 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_QueryUserWithdrawalsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest 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_QueryUserWithdrawalsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsRequest 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_QueryUserWithdrawalsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserWithdrawalsRequest", 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_QueryUserWithdrawalsRequest) 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_QueryUserWithdrawalsRequest) 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_QueryUserWithdrawalsRequest) 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_QueryUserWithdrawalsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserWithdrawalsRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserWithdrawalsRequest) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryUserWithdrawalsRequest) + 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: QueryUserWithdrawalsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserWithdrawalsRequest: 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 Address", 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.Address = 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_WithdrawalStatusItem protoreflect.MessageDescriptor + fd_WithdrawalStatusItem_request_id protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_amount protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_principal_amount protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_yield_amount protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_fulfilled_amount protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_status protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_timestamp protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_claimable_at protoreflect.FieldDescriptor + fd_WithdrawalStatusItem_claimed_at protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_WithdrawalStatusItem = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("WithdrawalStatusItem") + fd_WithdrawalStatusItem_request_id = md_WithdrawalStatusItem.Fields().ByName("request_id") + fd_WithdrawalStatusItem_amount = md_WithdrawalStatusItem.Fields().ByName("amount") + fd_WithdrawalStatusItem_principal_amount = md_WithdrawalStatusItem.Fields().ByName("principal_amount") + fd_WithdrawalStatusItem_yield_amount = md_WithdrawalStatusItem.Fields().ByName("yield_amount") + fd_WithdrawalStatusItem_fulfilled_amount = md_WithdrawalStatusItem.Fields().ByName("fulfilled_amount") + fd_WithdrawalStatusItem_status = md_WithdrawalStatusItem.Fields().ByName("status") + fd_WithdrawalStatusItem_timestamp = md_WithdrawalStatusItem.Fields().ByName("timestamp") + fd_WithdrawalStatusItem_claimable_at = md_WithdrawalStatusItem.Fields().ByName("claimable_at") + fd_WithdrawalStatusItem_claimed_at = md_WithdrawalStatusItem.Fields().ByName("claimed_at") +} + +var _ protoreflect.Message = (*fastReflection_WithdrawalStatusItem)(nil) + +type fastReflection_WithdrawalStatusItem WithdrawalStatusItem + +func (x *WithdrawalStatusItem) ProtoReflect() protoreflect.Message { + return (*fastReflection_WithdrawalStatusItem)(x) +} + +func (x *WithdrawalStatusItem) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[46] + 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_WithdrawalStatusItem_messageType fastReflection_WithdrawalStatusItem_messageType +var _ protoreflect.MessageType = fastReflection_WithdrawalStatusItem_messageType{} + +type fastReflection_WithdrawalStatusItem_messageType struct{} + +func (x fastReflection_WithdrawalStatusItem_messageType) Zero() protoreflect.Message { + return (*fastReflection_WithdrawalStatusItem)(nil) +} +func (x fastReflection_WithdrawalStatusItem_messageType) New() protoreflect.Message { + return new(fastReflection_WithdrawalStatusItem) +} +func (x fastReflection_WithdrawalStatusItem_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalStatusItem +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WithdrawalStatusItem) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalStatusItem +} + +// 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_WithdrawalStatusItem) Type() protoreflect.MessageType { + return _fastReflection_WithdrawalStatusItem_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WithdrawalStatusItem) New() protoreflect.Message { + return new(fastReflection_WithdrawalStatusItem) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WithdrawalStatusItem) Interface() protoreflect.ProtoMessage { + return (*WithdrawalStatusItem)(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_WithdrawalStatusItem) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestId != "" { + value := protoreflect.ValueOfString(x.RequestId) + if !f(fd_WithdrawalStatusItem_request_id, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_WithdrawalStatusItem_amount, value) { + return + } + } + if x.PrincipalAmount != "" { + value := protoreflect.ValueOfString(x.PrincipalAmount) + if !f(fd_WithdrawalStatusItem_principal_amount, value) { + return + } + } + if x.YieldAmount != "" { + value := protoreflect.ValueOfString(x.YieldAmount) + if !f(fd_WithdrawalStatusItem_yield_amount, value) { + return + } + } + if x.FulfilledAmount != "" { + value := protoreflect.ValueOfString(x.FulfilledAmount) + if !f(fd_WithdrawalStatusItem_fulfilled_amount, value) { + return + } + } + if x.Status != "" { + value := protoreflect.ValueOfString(x.Status) + if !f(fd_WithdrawalStatusItem_status, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_WithdrawalStatusItem_timestamp, value) { + return + } + } + if x.ClaimableAt != nil { + value := protoreflect.ValueOfMessage(x.ClaimableAt.ProtoReflect()) + if !f(fd_WithdrawalStatusItem_claimable_at, value) { + return + } + } + if x.ClaimedAt != nil { + value := protoreflect.ValueOfMessage(x.ClaimedAt.ProtoReflect()) + if !f(fd_WithdrawalStatusItem_claimed_at, 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_WithdrawalStatusItem) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalStatusItem.request_id": + return x.RequestId != "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.principal_amount": + return x.PrincipalAmount != "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.yield_amount": + return x.YieldAmount != "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.fulfilled_amount": + return x.FulfilledAmount != "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.status": + return x.Status != "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at": + return x.ClaimableAt != nil + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at": + return x.ClaimedAt != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalStatusItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalStatusItem 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_WithdrawalStatusItem) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalStatusItem.request_id": + x.RequestId = "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.principal_amount": + x.PrincipalAmount = "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.yield_amount": + x.YieldAmount = "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.fulfilled_amount": + x.FulfilledAmount = "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.status": + x.Status = "" + case "noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at": + x.ClaimableAt = nil + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at": + x.ClaimedAt = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalStatusItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalStatusItem 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_WithdrawalStatusItem) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.WithdrawalStatusItem.request_id": + value := x.RequestId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.principal_amount": + value := x.PrincipalAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.yield_amount": + value := x.YieldAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.fulfilled_amount": + value := x.FulfilledAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.status": + value := x.Status + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at": + value := x.ClaimableAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at": + value := x.ClaimedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalStatusItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalStatusItem 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_WithdrawalStatusItem) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalStatusItem.request_id": + x.RequestId = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.principal_amount": + x.PrincipalAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.yield_amount": + x.YieldAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.fulfilled_amount": + x.FulfilledAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.status": + x.Status = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at": + x.ClaimableAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at": + x.ClaimedAt = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalStatusItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalStatusItem 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_WithdrawalStatusItem) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at": + if x.ClaimableAt == nil { + x.ClaimableAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ClaimableAt.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at": + if x.ClaimedAt == nil { + x.ClaimedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ClaimedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.request_id": + panic(fmt.Errorf("field request_id of message noble.dollar.vaults.v2.WithdrawalStatusItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.WithdrawalStatusItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.principal_amount": + panic(fmt.Errorf("field principal_amount of message noble.dollar.vaults.v2.WithdrawalStatusItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.yield_amount": + panic(fmt.Errorf("field yield_amount of message noble.dollar.vaults.v2.WithdrawalStatusItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.fulfilled_amount": + panic(fmt.Errorf("field fulfilled_amount of message noble.dollar.vaults.v2.WithdrawalStatusItem is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.WithdrawalStatusItem is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalStatusItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalStatusItem 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_WithdrawalStatusItem) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalStatusItem.request_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalStatusItem.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalStatusItem.principal_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalStatusItem.yield_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalStatusItem.fulfilled_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalStatusItem.status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalStatusItem")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalStatusItem 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_WithdrawalStatusItem) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.WithdrawalStatusItem", 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_WithdrawalStatusItem) 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_WithdrawalStatusItem) 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_WithdrawalStatusItem) 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_WithdrawalStatusItem) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WithdrawalStatusItem) + 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.RequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PrincipalAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.FulfilledAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Status) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ClaimableAt != nil { + l = options.Size(x.ClaimableAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ClaimedAt != nil { + l = options.Size(x.ClaimedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*WithdrawalStatusItem) + 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.ClaimedAt != nil { + encoded, err := options.Marshal(x.ClaimedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + if x.ClaimableAt != nil { + encoded, err := options.Marshal(x.ClaimableAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if len(x.Status) > 0 { + i -= len(x.Status) + copy(dAtA[i:], x.Status) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) + i-- + dAtA[i] = 0x32 + } + if len(x.FulfilledAmount) > 0 { + i -= len(x.FulfilledAmount) + copy(dAtA[i:], x.FulfilledAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FulfilledAmount))) + i-- + dAtA[i] = 0x2a + } + if len(x.YieldAmount) > 0 { + i -= len(x.YieldAmount) + copy(dAtA[i:], x.YieldAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldAmount))) + i-- + dAtA[i] = 0x22 + } + if len(x.PrincipalAmount) > 0 { + i -= len(x.PrincipalAmount) + copy(dAtA[i:], x.PrincipalAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PrincipalAmount))) + i-- + dAtA[i] = 0x1a + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(x.RequestId) > 0 { + i -= len(x.RequestId) + copy(dAtA[i:], x.RequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) + 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().(*WithdrawalStatusItem) + 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: WithdrawalStatusItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithdrawalStatusItem: 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 RequestId", 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.RequestId = 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 Amount", 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.Amount = 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 PrincipalAmount", 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.PrincipalAmount = 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 YieldAmount", 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.YieldAmount = 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 FulfilledAmount", 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.FulfilledAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClaimableAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ClaimableAt == nil { + x.ClaimableAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ClaimableAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClaimedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ClaimedAt == nil { + x.ClaimedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ClaimedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryUserWithdrawalsResponse_1_list)(nil) + +type _QueryUserWithdrawalsResponse_1_list struct { + list *[]*WithdrawalStatusItem +} + +func (x *_QueryUserWithdrawalsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryUserWithdrawalsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryUserWithdrawalsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithdrawalStatusItem) + (*x.list)[i] = concreteValue +} + +func (x *_QueryUserWithdrawalsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithdrawalStatusItem) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryUserWithdrawalsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(WithdrawalStatusItem) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryUserWithdrawalsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryUserWithdrawalsResponse_1_list) NewElement() protoreflect.Value { + v := new(WithdrawalStatusItem) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryUserWithdrawalsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryUserWithdrawalsResponse protoreflect.MessageDescriptor + fd_QueryUserWithdrawalsResponse_withdrawals protoreflect.FieldDescriptor + fd_QueryUserWithdrawalsResponse_total_pending protoreflect.FieldDescriptor + fd_QueryUserWithdrawalsResponse_total_claimable protoreflect.FieldDescriptor + fd_QueryUserWithdrawalsResponse_total_claimed protoreflect.FieldDescriptor + fd_QueryUserWithdrawalsResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserWithdrawalsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserWithdrawalsResponse") + fd_QueryUserWithdrawalsResponse_withdrawals = md_QueryUserWithdrawalsResponse.Fields().ByName("withdrawals") + fd_QueryUserWithdrawalsResponse_total_pending = md_QueryUserWithdrawalsResponse.Fields().ByName("total_pending") + fd_QueryUserWithdrawalsResponse_total_claimable = md_QueryUserWithdrawalsResponse.Fields().ByName("total_claimable") + fd_QueryUserWithdrawalsResponse_total_claimed = md_QueryUserWithdrawalsResponse.Fields().ByName("total_claimed") + fd_QueryUserWithdrawalsResponse_pagination = md_QueryUserWithdrawalsResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserWithdrawalsResponse)(nil) + +type fastReflection_QueryUserWithdrawalsResponse QueryUserWithdrawalsResponse + +func (x *QueryUserWithdrawalsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserWithdrawalsResponse)(x) +} + +func (x *QueryUserWithdrawalsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[47] + 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_QueryUserWithdrawalsResponse_messageType fastReflection_QueryUserWithdrawalsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserWithdrawalsResponse_messageType{} + +type fastReflection_QueryUserWithdrawalsResponse_messageType struct{} + +func (x fastReflection_QueryUserWithdrawalsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserWithdrawalsResponse)(nil) +} +func (x fastReflection_QueryUserWithdrawalsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserWithdrawalsResponse) +} +func (x fastReflection_QueryUserWithdrawalsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserWithdrawalsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserWithdrawalsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserWithdrawalsResponse +} + +// 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_QueryUserWithdrawalsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryUserWithdrawalsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserWithdrawalsResponse) New() protoreflect.Message { + return new(fastReflection_QueryUserWithdrawalsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserWithdrawalsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryUserWithdrawalsResponse)(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_QueryUserWithdrawalsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Withdrawals) != 0 { + value := protoreflect.ValueOfList(&_QueryUserWithdrawalsResponse_1_list{list: &x.Withdrawals}) + if !f(fd_QueryUserWithdrawalsResponse_withdrawals, value) { + return + } + } + if x.TotalPending != "" { + value := protoreflect.ValueOfString(x.TotalPending) + if !f(fd_QueryUserWithdrawalsResponse_total_pending, value) { + return + } + } + if x.TotalClaimable != "" { + value := protoreflect.ValueOfString(x.TotalClaimable) + if !f(fd_QueryUserWithdrawalsResponse_total_claimable, value) { + return + } + } + if x.TotalClaimed != "" { + value := protoreflect.ValueOfString(x.TotalClaimed) + if !f(fd_QueryUserWithdrawalsResponse_total_claimed, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryUserWithdrawalsResponse_pagination, 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_QueryUserWithdrawalsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals": + return len(x.Withdrawals) != 0 + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_pending": + return x.TotalPending != "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimable": + return x.TotalClaimable != "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimed": + return x.TotalClaimed != "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse 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_QueryUserWithdrawalsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals": + x.Withdrawals = nil + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_pending": + x.TotalPending = "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimable": + x.TotalClaimable = "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimed": + x.TotalClaimed = "" + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse 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_QueryUserWithdrawalsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals": + if len(x.Withdrawals) == 0 { + return protoreflect.ValueOfList(&_QueryUserWithdrawalsResponse_1_list{}) + } + listValue := &_QueryUserWithdrawalsResponse_1_list{list: &x.Withdrawals} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_pending": + value := x.TotalPending + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimable": + value := x.TotalClaimable + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimed": + value := x.TotalClaimed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse 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_QueryUserWithdrawalsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals": + lv := value.List() + clv := lv.(*_QueryUserWithdrawalsResponse_1_list) + x.Withdrawals = *clv.list + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_pending": + x.TotalPending = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimable": + x.TotalClaimable = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimed": + x.TotalClaimed = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse 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_QueryUserWithdrawalsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals": + if x.Withdrawals == nil { + x.Withdrawals = []*WithdrawalStatusItem{} + } + value := &_QueryUserWithdrawalsResponse_1_list{list: &x.Withdrawals} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_pending": + panic(fmt.Errorf("field total_pending of message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimable": + panic(fmt.Errorf("field total_claimable of message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimed": + panic(fmt.Errorf("field total_claimed of message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse 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_QueryUserWithdrawalsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals": + list := []*WithdrawalStatusItem{} + return protoreflect.ValueOfList(&_QueryUserWithdrawalsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_pending": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimable": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.total_claimed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserWithdrawalsResponse 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_QueryUserWithdrawalsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserWithdrawalsResponse", 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_QueryUserWithdrawalsResponse) 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_QueryUserWithdrawalsResponse) 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_QueryUserWithdrawalsResponse) 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_QueryUserWithdrawalsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserWithdrawalsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Withdrawals) > 0 { + for _, e := range x.Withdrawals { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.TotalPending) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalClaimable) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalClaimed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserWithdrawalsResponse) + 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.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if len(x.TotalClaimed) > 0 { + i -= len(x.TotalClaimed) + copy(dAtA[i:], x.TotalClaimed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalClaimed))) + i-- + dAtA[i] = 0x22 + } + if len(x.TotalClaimable) > 0 { + i -= len(x.TotalClaimable) + copy(dAtA[i:], x.TotalClaimable) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalClaimable))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalPending) > 0 { + i -= len(x.TotalPending) + copy(dAtA[i:], x.TotalPending) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalPending))) + i-- + dAtA[i] = 0x12 + } + if len(x.Withdrawals) > 0 { + for iNdEx := len(x.Withdrawals) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Withdrawals[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryUserWithdrawalsResponse) + 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: QueryUserWithdrawalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserWithdrawalsResponse: 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 Withdrawals", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Withdrawals = append(x.Withdrawals, &WithdrawalStatusItem{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Withdrawals[len(x.Withdrawals)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalPending", 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.TotalPending = 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 TotalClaimable", 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.TotalClaimable = 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 TotalClaimed", 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.TotalClaimed = 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 Pagination", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryUserBalanceRequest protoreflect.MessageDescriptor + fd_QueryUserBalanceRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserBalanceRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserBalanceRequest") + fd_QueryUserBalanceRequest_address = md_QueryUserBalanceRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserBalanceRequest)(nil) + +type fastReflection_QueryUserBalanceRequest QueryUserBalanceRequest + +func (x *QueryUserBalanceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserBalanceRequest)(x) +} + +func (x *QueryUserBalanceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[48] + 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_QueryUserBalanceRequest_messageType fastReflection_QueryUserBalanceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserBalanceRequest_messageType{} + +type fastReflection_QueryUserBalanceRequest_messageType struct{} + +func (x fastReflection_QueryUserBalanceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserBalanceRequest)(nil) +} +func (x fastReflection_QueryUserBalanceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserBalanceRequest) +} +func (x fastReflection_QueryUserBalanceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserBalanceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserBalanceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserBalanceRequest +} + +// 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_QueryUserBalanceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryUserBalanceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserBalanceRequest) New() protoreflect.Message { + return new(fastReflection_QueryUserBalanceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserBalanceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryUserBalanceRequest)(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_QueryUserBalanceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryUserBalanceRequest_address, 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_QueryUserBalanceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceRequest 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_QueryUserBalanceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceRequest 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_QueryUserBalanceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceRequest 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_QueryUserBalanceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceRequest 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_QueryUserBalanceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryUserBalanceRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceRequest 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_QueryUserBalanceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceRequest 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_QueryUserBalanceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserBalanceRequest", 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_QueryUserBalanceRequest) 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_QueryUserBalanceRequest) 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_QueryUserBalanceRequest) 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_QueryUserBalanceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserBalanceRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserBalanceRequest) + 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 len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryUserBalanceRequest) + 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: QueryUserBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserBalanceRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryUserBalanceResponse protoreflect.MessageDescriptor + fd_QueryUserBalanceResponse_deposit_amount protoreflect.FieldDescriptor + fd_QueryUserBalanceResponse_accrued_yield protoreflect.FieldDescriptor + fd_QueryUserBalanceResponse_total_value protoreflect.FieldDescriptor + fd_QueryUserBalanceResponse_unrealized_gain protoreflect.FieldDescriptor + fd_QueryUserBalanceResponse_locked_amount protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryUserBalanceResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryUserBalanceResponse") + fd_QueryUserBalanceResponse_deposit_amount = md_QueryUserBalanceResponse.Fields().ByName("deposit_amount") + fd_QueryUserBalanceResponse_accrued_yield = md_QueryUserBalanceResponse.Fields().ByName("accrued_yield") + fd_QueryUserBalanceResponse_total_value = md_QueryUserBalanceResponse.Fields().ByName("total_value") + fd_QueryUserBalanceResponse_unrealized_gain = md_QueryUserBalanceResponse.Fields().ByName("unrealized_gain") + fd_QueryUserBalanceResponse_locked_amount = md_QueryUserBalanceResponse.Fields().ByName("locked_amount") +} + +var _ protoreflect.Message = (*fastReflection_QueryUserBalanceResponse)(nil) + +type fastReflection_QueryUserBalanceResponse QueryUserBalanceResponse + +func (x *QueryUserBalanceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUserBalanceResponse)(x) +} + +func (x *QueryUserBalanceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[49] + 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_QueryUserBalanceResponse_messageType fastReflection_QueryUserBalanceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryUserBalanceResponse_messageType{} + +type fastReflection_QueryUserBalanceResponse_messageType struct{} + +func (x fastReflection_QueryUserBalanceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUserBalanceResponse)(nil) +} +func (x fastReflection_QueryUserBalanceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUserBalanceResponse) +} +func (x fastReflection_QueryUserBalanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserBalanceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryUserBalanceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUserBalanceResponse +} + +// 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_QueryUserBalanceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryUserBalanceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryUserBalanceResponse) New() protoreflect.Message { + return new(fastReflection_QueryUserBalanceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryUserBalanceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryUserBalanceResponse)(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_QueryUserBalanceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DepositAmount != "" { + value := protoreflect.ValueOfString(x.DepositAmount) + if !f(fd_QueryUserBalanceResponse_deposit_amount, value) { + return + } + } + if x.AccruedYield != "" { + value := protoreflect.ValueOfString(x.AccruedYield) + if !f(fd_QueryUserBalanceResponse_accrued_yield, value) { + return + } + } + if x.TotalValue != "" { + value := protoreflect.ValueOfString(x.TotalValue) + if !f(fd_QueryUserBalanceResponse_total_value, value) { + return + } + } + if x.UnrealizedGain != "" { + value := protoreflect.ValueOfString(x.UnrealizedGain) + if !f(fd_QueryUserBalanceResponse_unrealized_gain, value) { + return + } + } + if x.LockedAmount != "" { + value := protoreflect.ValueOfString(x.LockedAmount) + if !f(fd_QueryUserBalanceResponse_locked_amount, 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_QueryUserBalanceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.deposit_amount": + return x.DepositAmount != "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.accrued_yield": + return x.AccruedYield != "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.total_value": + return x.TotalValue != "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.unrealized_gain": + return x.UnrealizedGain != "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.locked_amount": + return x.LockedAmount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceResponse 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_QueryUserBalanceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.deposit_amount": + x.DepositAmount = "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.accrued_yield": + x.AccruedYield = "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.total_value": + x.TotalValue = "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.unrealized_gain": + x.UnrealizedGain = "" + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.locked_amount": + x.LockedAmount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceResponse 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_QueryUserBalanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.deposit_amount": + value := x.DepositAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.accrued_yield": + value := x.AccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.total_value": + value := x.TotalValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.unrealized_gain": + value := x.UnrealizedGain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.locked_amount": + value := x.LockedAmount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceResponse 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_QueryUserBalanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.deposit_amount": + x.DepositAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.accrued_yield": + x.AccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.total_value": + x.TotalValue = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.unrealized_gain": + x.UnrealizedGain = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.locked_amount": + x.LockedAmount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceResponse 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_QueryUserBalanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.deposit_amount": + panic(fmt.Errorf("field deposit_amount of message noble.dollar.vaults.v2.QueryUserBalanceResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.accrued_yield": + panic(fmt.Errorf("field accrued_yield of message noble.dollar.vaults.v2.QueryUserBalanceResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.total_value": + panic(fmt.Errorf("field total_value of message noble.dollar.vaults.v2.QueryUserBalanceResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.unrealized_gain": + panic(fmt.Errorf("field unrealized_gain of message noble.dollar.vaults.v2.QueryUserBalanceResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.locked_amount": + panic(fmt.Errorf("field locked_amount of message noble.dollar.vaults.v2.QueryUserBalanceResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceResponse 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_QueryUserBalanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.deposit_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.total_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.unrealized_gain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryUserBalanceResponse.locked_amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryUserBalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryUserBalanceResponse 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_QueryUserBalanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryUserBalanceResponse", 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_QueryUserBalanceResponse) 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_QueryUserBalanceResponse) 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_QueryUserBalanceResponse) 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_QueryUserBalanceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryUserBalanceResponse) + 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.DepositAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.UnrealizedGain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LockedAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryUserBalanceResponse) + 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 len(x.LockedAmount) > 0 { + i -= len(x.LockedAmount) + copy(dAtA[i:], x.LockedAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LockedAmount))) + i-- + dAtA[i] = 0x2a + } + if len(x.UnrealizedGain) > 0 { + i -= len(x.UnrealizedGain) + copy(dAtA[i:], x.UnrealizedGain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UnrealizedGain))) + i-- + dAtA[i] = 0x22 + } + if len(x.TotalValue) > 0 { + i -= len(x.TotalValue) + copy(dAtA[i:], x.TotalValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalValue))) + i-- + dAtA[i] = 0x1a + } + if len(x.AccruedYield) > 0 { + i -= len(x.AccruedYield) + copy(dAtA[i:], x.AccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccruedYield))) + i-- + dAtA[i] = 0x12 + } + if len(x.DepositAmount) > 0 { + i -= len(x.DepositAmount) + copy(dAtA[i:], x.DepositAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DepositAmount))) + 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().(*QueryUserBalanceResponse) + 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: QueryUserBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUserBalanceResponse: 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 DepositAmount", 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.DepositAmount = 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 AccruedYield", 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.AccruedYield = 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 TotalValue", 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.TotalValue = 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 UnrealizedGain", 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.UnrealizedGain = 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 LockedAmount", 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.LockedAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryDepositVelocityRequest protoreflect.MessageDescriptor + fd_QueryDepositVelocityRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryDepositVelocityRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryDepositVelocityRequest") + fd_QueryDepositVelocityRequest_address = md_QueryDepositVelocityRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QueryDepositVelocityRequest)(nil) + +type fastReflection_QueryDepositVelocityRequest QueryDepositVelocityRequest + +func (x *QueryDepositVelocityRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDepositVelocityRequest)(x) +} + +func (x *QueryDepositVelocityRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[50] + 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_QueryDepositVelocityRequest_messageType fastReflection_QueryDepositVelocityRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDepositVelocityRequest_messageType{} + +type fastReflection_QueryDepositVelocityRequest_messageType struct{} + +func (x fastReflection_QueryDepositVelocityRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDepositVelocityRequest)(nil) +} +func (x fastReflection_QueryDepositVelocityRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDepositVelocityRequest) +} +func (x fastReflection_QueryDepositVelocityRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDepositVelocityRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDepositVelocityRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDepositVelocityRequest +} + +// 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_QueryDepositVelocityRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDepositVelocityRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDepositVelocityRequest) New() protoreflect.Message { + return new(fastReflection_QueryDepositVelocityRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDepositVelocityRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDepositVelocityRequest)(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_QueryDepositVelocityRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryDepositVelocityRequest_address, 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_QueryDepositVelocityRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityRequest 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_QueryDepositVelocityRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityRequest 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_QueryDepositVelocityRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityRequest 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_QueryDepositVelocityRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityRequest 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_QueryDepositVelocityRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QueryDepositVelocityRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityRequest 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_QueryDepositVelocityRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityRequest 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_QueryDepositVelocityRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryDepositVelocityRequest", 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_QueryDepositVelocityRequest) 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_QueryDepositVelocityRequest) 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_QueryDepositVelocityRequest) 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_QueryDepositVelocityRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDepositVelocityRequest) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryDepositVelocityRequest) + 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 len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*QueryDepositVelocityRequest) + 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: QueryDepositVelocityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDepositVelocityRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryDepositVelocityResponse protoreflect.MessageDescriptor + fd_QueryDepositVelocityResponse_user protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_last_deposit_block protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_recent_deposit_count protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_recent_deposit_volume protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_time_window_blocks protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_suspicious_activity_flag protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_cooldown_remaining_blocks protoreflect.FieldDescriptor + fd_QueryDepositVelocityResponse_velocity_score protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryDepositVelocityResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryDepositVelocityResponse") + fd_QueryDepositVelocityResponse_user = md_QueryDepositVelocityResponse.Fields().ByName("user") + fd_QueryDepositVelocityResponse_last_deposit_block = md_QueryDepositVelocityResponse.Fields().ByName("last_deposit_block") + fd_QueryDepositVelocityResponse_recent_deposit_count = md_QueryDepositVelocityResponse.Fields().ByName("recent_deposit_count") + fd_QueryDepositVelocityResponse_recent_deposit_volume = md_QueryDepositVelocityResponse.Fields().ByName("recent_deposit_volume") + fd_QueryDepositVelocityResponse_time_window_blocks = md_QueryDepositVelocityResponse.Fields().ByName("time_window_blocks") + fd_QueryDepositVelocityResponse_suspicious_activity_flag = md_QueryDepositVelocityResponse.Fields().ByName("suspicious_activity_flag") + fd_QueryDepositVelocityResponse_cooldown_remaining_blocks = md_QueryDepositVelocityResponse.Fields().ByName("cooldown_remaining_blocks") + fd_QueryDepositVelocityResponse_velocity_score = md_QueryDepositVelocityResponse.Fields().ByName("velocity_score") +} + +var _ protoreflect.Message = (*fastReflection_QueryDepositVelocityResponse)(nil) + +type fastReflection_QueryDepositVelocityResponse QueryDepositVelocityResponse + +func (x *QueryDepositVelocityResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDepositVelocityResponse)(x) +} + +func (x *QueryDepositVelocityResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[51] + 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_QueryDepositVelocityResponse_messageType fastReflection_QueryDepositVelocityResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDepositVelocityResponse_messageType{} + +type fastReflection_QueryDepositVelocityResponse_messageType struct{} + +func (x fastReflection_QueryDepositVelocityResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDepositVelocityResponse)(nil) +} +func (x fastReflection_QueryDepositVelocityResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDepositVelocityResponse) +} +func (x fastReflection_QueryDepositVelocityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDepositVelocityResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDepositVelocityResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDepositVelocityResponse +} + +// 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_QueryDepositVelocityResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDepositVelocityResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDepositVelocityResponse) New() protoreflect.Message { + return new(fastReflection_QueryDepositVelocityResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDepositVelocityResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDepositVelocityResponse)(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_QueryDepositVelocityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.User != "" { + value := protoreflect.ValueOfString(x.User) + if !f(fd_QueryDepositVelocityResponse_user, value) { + return + } + } + if x.LastDepositBlock != "" { + value := protoreflect.ValueOfString(x.LastDepositBlock) + if !f(fd_QueryDepositVelocityResponse_last_deposit_block, value) { + return + } + } + if x.RecentDepositCount != uint32(0) { + value := protoreflect.ValueOfUint32(x.RecentDepositCount) + if !f(fd_QueryDepositVelocityResponse_recent_deposit_count, value) { + return + } + } + if x.RecentDepositVolume != "" { + value := protoreflect.ValueOfString(x.RecentDepositVolume) + if !f(fd_QueryDepositVelocityResponse_recent_deposit_volume, value) { + return + } + } + if x.TimeWindowBlocks != int64(0) { + value := protoreflect.ValueOfInt64(x.TimeWindowBlocks) + if !f(fd_QueryDepositVelocityResponse_time_window_blocks, value) { + return + } + } + if x.SuspiciousActivityFlag != false { + value := protoreflect.ValueOfBool(x.SuspiciousActivityFlag) + if !f(fd_QueryDepositVelocityResponse_suspicious_activity_flag, value) { + return + } + } + if x.CooldownRemainingBlocks != int64(0) { + value := protoreflect.ValueOfInt64(x.CooldownRemainingBlocks) + if !f(fd_QueryDepositVelocityResponse_cooldown_remaining_blocks, value) { + return + } + } + if x.VelocityScore != "" { + value := protoreflect.ValueOfString(x.VelocityScore) + if !f(fd_QueryDepositVelocityResponse_velocity_score, 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_QueryDepositVelocityResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.user": + return x.User != "" + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.last_deposit_block": + return x.LastDepositBlock != "" + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_count": + return x.RecentDepositCount != uint32(0) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_volume": + return x.RecentDepositVolume != "" + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.time_window_blocks": + return x.TimeWindowBlocks != int64(0) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.suspicious_activity_flag": + return x.SuspiciousActivityFlag != false + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.cooldown_remaining_blocks": + return x.CooldownRemainingBlocks != int64(0) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.velocity_score": + return x.VelocityScore != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityResponse 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_QueryDepositVelocityResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.user": + x.User = "" + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.last_deposit_block": + x.LastDepositBlock = "" + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_count": + x.RecentDepositCount = uint32(0) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_volume": + x.RecentDepositVolume = "" + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.time_window_blocks": + x.TimeWindowBlocks = int64(0) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.suspicious_activity_flag": + x.SuspiciousActivityFlag = false + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.cooldown_remaining_blocks": + x.CooldownRemainingBlocks = int64(0) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.velocity_score": + x.VelocityScore = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityResponse 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_QueryDepositVelocityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.user": + value := x.User + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.last_deposit_block": + value := x.LastDepositBlock + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_count": + value := x.RecentDepositCount + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_volume": + value := x.RecentDepositVolume + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.time_window_blocks": + value := x.TimeWindowBlocks + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.suspicious_activity_flag": + value := x.SuspiciousActivityFlag + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.cooldown_remaining_blocks": + value := x.CooldownRemainingBlocks + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.velocity_score": + value := x.VelocityScore + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityResponse 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_QueryDepositVelocityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.user": + x.User = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.last_deposit_block": + x.LastDepositBlock = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_count": + x.RecentDepositCount = uint32(value.Uint()) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_volume": + x.RecentDepositVolume = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.time_window_blocks": + x.TimeWindowBlocks = value.Int() + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.suspicious_activity_flag": + x.SuspiciousActivityFlag = value.Bool() + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.cooldown_remaining_blocks": + x.CooldownRemainingBlocks = value.Int() + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.velocity_score": + x.VelocityScore = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityResponse 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_QueryDepositVelocityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.user": + panic(fmt.Errorf("field user of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.last_deposit_block": + panic(fmt.Errorf("field last_deposit_block of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_count": + panic(fmt.Errorf("field recent_deposit_count of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_volume": + panic(fmt.Errorf("field recent_deposit_volume of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.time_window_blocks": + panic(fmt.Errorf("field time_window_blocks of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.suspicious_activity_flag": + panic(fmt.Errorf("field suspicious_activity_flag of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.cooldown_remaining_blocks": + panic(fmt.Errorf("field cooldown_remaining_blocks of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.velocity_score": + panic(fmt.Errorf("field velocity_score of message noble.dollar.vaults.v2.QueryDepositVelocityResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityResponse 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_QueryDepositVelocityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.user": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.last_deposit_block": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_count": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.recent_deposit_volume": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.time_window_blocks": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.suspicious_activity_flag": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.cooldown_remaining_blocks": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.QueryDepositVelocityResponse.velocity_score": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryDepositVelocityResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryDepositVelocityResponse 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_QueryDepositVelocityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryDepositVelocityResponse", 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_QueryDepositVelocityResponse) 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_QueryDepositVelocityResponse) 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_QueryDepositVelocityResponse) 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_QueryDepositVelocityResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDepositVelocityResponse) + 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.User) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LastDepositBlock) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RecentDepositCount != 0 { + n += 1 + runtime.Sov(uint64(x.RecentDepositCount)) + } + l = len(x.RecentDepositVolume) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TimeWindowBlocks != 0 { + n += 1 + runtime.Sov(uint64(x.TimeWindowBlocks)) + } + if x.SuspiciousActivityFlag { + n += 2 + } + if x.CooldownRemainingBlocks != 0 { + n += 1 + runtime.Sov(uint64(x.CooldownRemainingBlocks)) + } + l = len(x.VelocityScore) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryDepositVelocityResponse) + 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 len(x.VelocityScore) > 0 { + i -= len(x.VelocityScore) + copy(dAtA[i:], x.VelocityScore) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VelocityScore))) + i-- + dAtA[i] = 0x42 + } + if x.CooldownRemainingBlocks != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CooldownRemainingBlocks)) + i-- + dAtA[i] = 0x38 + } + if x.SuspiciousActivityFlag { + i-- + if x.SuspiciousActivityFlag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if x.TimeWindowBlocks != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TimeWindowBlocks)) + i-- + dAtA[i] = 0x28 + } + if len(x.RecentDepositVolume) > 0 { + i -= len(x.RecentDepositVolume) + copy(dAtA[i:], x.RecentDepositVolume) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecentDepositVolume))) + i-- + dAtA[i] = 0x22 + } + if x.RecentDepositCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RecentDepositCount)) + i-- + dAtA[i] = 0x18 + } + if len(x.LastDepositBlock) > 0 { + i -= len(x.LastDepositBlock) + copy(dAtA[i:], x.LastDepositBlock) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastDepositBlock))) + i-- + dAtA[i] = 0x12 + } + if len(x.User) > 0 { + i -= len(x.User) + copy(dAtA[i:], x.User) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) + 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().(*QueryDepositVelocityResponse) + 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: QueryDepositVelocityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDepositVelocityResponse: 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 User", 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.User = 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 LastDepositBlock", 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.LastDepositBlock = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecentDepositCount", wireType) + } + x.RecentDepositCount = 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.RecentDepositCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecentDepositVolume", 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.RecentDepositVolume = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeWindowBlocks", wireType) + } + x.TimeWindowBlocks = 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.TimeWindowBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SuspiciousActivityFlag", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.SuspiciousActivityFlag = bool(v != 0) + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CooldownRemainingBlocks", wireType) + } + x.CooldownRemainingBlocks = 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.CooldownRemainingBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VelocityScore", 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.VelocityScore = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QuerySimulateDepositRequest protoreflect.MessageDescriptor + fd_QuerySimulateDepositRequest_amount protoreflect.FieldDescriptor + fd_QuerySimulateDepositRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QuerySimulateDepositRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QuerySimulateDepositRequest") + fd_QuerySimulateDepositRequest_amount = md_QuerySimulateDepositRequest.Fields().ByName("amount") + fd_QuerySimulateDepositRequest_address = md_QuerySimulateDepositRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QuerySimulateDepositRequest)(nil) + +type fastReflection_QuerySimulateDepositRequest QuerySimulateDepositRequest + +func (x *QuerySimulateDepositRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySimulateDepositRequest)(x) +} + +func (x *QuerySimulateDepositRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[52] + 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_QuerySimulateDepositRequest_messageType fastReflection_QuerySimulateDepositRequest_messageType +var _ protoreflect.MessageType = fastReflection_QuerySimulateDepositRequest_messageType{} + +type fastReflection_QuerySimulateDepositRequest_messageType struct{} + +func (x fastReflection_QuerySimulateDepositRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySimulateDepositRequest)(nil) +} +func (x fastReflection_QuerySimulateDepositRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySimulateDepositRequest) +} +func (x fastReflection_QuerySimulateDepositRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateDepositRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuerySimulateDepositRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateDepositRequest +} + +// 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_QuerySimulateDepositRequest) Type() protoreflect.MessageType { + return _fastReflection_QuerySimulateDepositRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuerySimulateDepositRequest) New() protoreflect.Message { + return new(fastReflection_QuerySimulateDepositRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuerySimulateDepositRequest) Interface() protoreflect.ProtoMessage { + return (*QuerySimulateDepositRequest)(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_QuerySimulateDepositRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QuerySimulateDepositRequest_amount, value) { + return + } + } + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QuerySimulateDepositRequest_address, 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_QuerySimulateDepositRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositRequest 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_QuerySimulateDepositRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositRequest 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_QuerySimulateDepositRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositRequest 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_QuerySimulateDepositRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositRequest 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_QuerySimulateDepositRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.QuerySimulateDepositRequest is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QuerySimulateDepositRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositRequest 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_QuerySimulateDepositRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateDepositRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositRequest 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_QuerySimulateDepositRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QuerySimulateDepositRequest", 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_QuerySimulateDepositRequest) 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_QuerySimulateDepositRequest) 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_QuerySimulateDepositRequest) 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_QuerySimulateDepositRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuerySimulateDepositRequest) + 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.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QuerySimulateDepositRequest) + 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 len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0x12 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + 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().(*QuerySimulateDepositRequest) + 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: QuerySimulateDepositRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateDepositRequest: 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 Amount", 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.Amount = 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_CheckResultsView protoreflect.MessageDescriptor + fd_CheckResultsView_within_user_limit protoreflect.FieldDescriptor + fd_CheckResultsView_within_block_limit protoreflect.FieldDescriptor + fd_CheckResultsView_within_total_limit protoreflect.FieldDescriptor + fd_CheckResultsView_cooldown_passed protoreflect.FieldDescriptor + fd_CheckResultsView_velocity_check_passed protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_CheckResultsView = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("CheckResultsView") + fd_CheckResultsView_within_user_limit = md_CheckResultsView.Fields().ByName("within_user_limit") + fd_CheckResultsView_within_block_limit = md_CheckResultsView.Fields().ByName("within_block_limit") + fd_CheckResultsView_within_total_limit = md_CheckResultsView.Fields().ByName("within_total_limit") + fd_CheckResultsView_cooldown_passed = md_CheckResultsView.Fields().ByName("cooldown_passed") + fd_CheckResultsView_velocity_check_passed = md_CheckResultsView.Fields().ByName("velocity_check_passed") +} + +var _ protoreflect.Message = (*fastReflection_CheckResultsView)(nil) + +type fastReflection_CheckResultsView CheckResultsView + +func (x *CheckResultsView) ProtoReflect() protoreflect.Message { + return (*fastReflection_CheckResultsView)(x) +} + +func (x *CheckResultsView) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[53] + 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_CheckResultsView_messageType fastReflection_CheckResultsView_messageType +var _ protoreflect.MessageType = fastReflection_CheckResultsView_messageType{} + +type fastReflection_CheckResultsView_messageType struct{} + +func (x fastReflection_CheckResultsView_messageType) Zero() protoreflect.Message { + return (*fastReflection_CheckResultsView)(nil) +} +func (x fastReflection_CheckResultsView_messageType) New() protoreflect.Message { + return new(fastReflection_CheckResultsView) +} +func (x fastReflection_CheckResultsView_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_CheckResultsView +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_CheckResultsView) Descriptor() protoreflect.MessageDescriptor { + return md_CheckResultsView +} + +// 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_CheckResultsView) Type() protoreflect.MessageType { + return _fastReflection_CheckResultsView_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_CheckResultsView) New() protoreflect.Message { + return new(fastReflection_CheckResultsView) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_CheckResultsView) Interface() protoreflect.ProtoMessage { + return (*CheckResultsView)(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_CheckResultsView) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.WithinUserLimit != false { + value := protoreflect.ValueOfBool(x.WithinUserLimit) + if !f(fd_CheckResultsView_within_user_limit, value) { + return + } + } + if x.WithinBlockLimit != false { + value := protoreflect.ValueOfBool(x.WithinBlockLimit) + if !f(fd_CheckResultsView_within_block_limit, value) { + return + } + } + if x.WithinTotalLimit != false { + value := protoreflect.ValueOfBool(x.WithinTotalLimit) + if !f(fd_CheckResultsView_within_total_limit, value) { + return + } + } + if x.CooldownPassed != false { + value := protoreflect.ValueOfBool(x.CooldownPassed) + if !f(fd_CheckResultsView_cooldown_passed, value) { + return + } + } + if x.VelocityCheckPassed != false { + value := protoreflect.ValueOfBool(x.VelocityCheckPassed) + if !f(fd_CheckResultsView_velocity_check_passed, 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_CheckResultsView) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CheckResultsView.within_user_limit": + return x.WithinUserLimit != false + case "noble.dollar.vaults.v2.CheckResultsView.within_block_limit": + return x.WithinBlockLimit != false + case "noble.dollar.vaults.v2.CheckResultsView.within_total_limit": + return x.WithinTotalLimit != false + case "noble.dollar.vaults.v2.CheckResultsView.cooldown_passed": + return x.CooldownPassed != false + case "noble.dollar.vaults.v2.CheckResultsView.velocity_check_passed": + return x.VelocityCheckPassed != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CheckResultsView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CheckResultsView 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_CheckResultsView) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CheckResultsView.within_user_limit": + x.WithinUserLimit = false + case "noble.dollar.vaults.v2.CheckResultsView.within_block_limit": + x.WithinBlockLimit = false + case "noble.dollar.vaults.v2.CheckResultsView.within_total_limit": + x.WithinTotalLimit = false + case "noble.dollar.vaults.v2.CheckResultsView.cooldown_passed": + x.CooldownPassed = false + case "noble.dollar.vaults.v2.CheckResultsView.velocity_check_passed": + x.VelocityCheckPassed = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CheckResultsView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CheckResultsView 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_CheckResultsView) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.CheckResultsView.within_user_limit": + value := x.WithinUserLimit + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.CheckResultsView.within_block_limit": + value := x.WithinBlockLimit + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.CheckResultsView.within_total_limit": + value := x.WithinTotalLimit + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.CheckResultsView.cooldown_passed": + value := x.CooldownPassed + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.CheckResultsView.velocity_check_passed": + value := x.VelocityCheckPassed + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CheckResultsView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CheckResultsView 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_CheckResultsView) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CheckResultsView.within_user_limit": + x.WithinUserLimit = value.Bool() + case "noble.dollar.vaults.v2.CheckResultsView.within_block_limit": + x.WithinBlockLimit = value.Bool() + case "noble.dollar.vaults.v2.CheckResultsView.within_total_limit": + x.WithinTotalLimit = value.Bool() + case "noble.dollar.vaults.v2.CheckResultsView.cooldown_passed": + x.CooldownPassed = value.Bool() + case "noble.dollar.vaults.v2.CheckResultsView.velocity_check_passed": + x.VelocityCheckPassed = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CheckResultsView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CheckResultsView 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_CheckResultsView) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CheckResultsView.within_user_limit": + panic(fmt.Errorf("field within_user_limit of message noble.dollar.vaults.v2.CheckResultsView is not mutable")) + case "noble.dollar.vaults.v2.CheckResultsView.within_block_limit": + panic(fmt.Errorf("field within_block_limit of message noble.dollar.vaults.v2.CheckResultsView is not mutable")) + case "noble.dollar.vaults.v2.CheckResultsView.within_total_limit": + panic(fmt.Errorf("field within_total_limit of message noble.dollar.vaults.v2.CheckResultsView is not mutable")) + case "noble.dollar.vaults.v2.CheckResultsView.cooldown_passed": + panic(fmt.Errorf("field cooldown_passed of message noble.dollar.vaults.v2.CheckResultsView is not mutable")) + case "noble.dollar.vaults.v2.CheckResultsView.velocity_check_passed": + panic(fmt.Errorf("field velocity_check_passed of message noble.dollar.vaults.v2.CheckResultsView is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CheckResultsView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CheckResultsView 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_CheckResultsView) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.CheckResultsView.within_user_limit": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.CheckResultsView.within_block_limit": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.CheckResultsView.within_total_limit": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.CheckResultsView.cooldown_passed": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.CheckResultsView.velocity_check_passed": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.CheckResultsView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.CheckResultsView 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_CheckResultsView) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.CheckResultsView", 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_CheckResultsView) 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_CheckResultsView) 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_CheckResultsView) 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_CheckResultsView) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*CheckResultsView) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.WithinUserLimit { + n += 2 + } + if x.WithinBlockLimit { + n += 2 + } + if x.WithinTotalLimit { + n += 2 + } + if x.CooldownPassed { + n += 2 + } + if x.VelocityCheckPassed { + n += 2 + } + 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().(*CheckResultsView) + 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.VelocityCheckPassed { + i-- + if x.VelocityCheckPassed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if x.CooldownPassed { + i-- + if x.CooldownPassed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if x.WithinTotalLimit { + i-- + if x.WithinTotalLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if x.WithinBlockLimit { + i-- + if x.WithinBlockLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if x.WithinUserLimit { + i-- + if x.WithinUserLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + 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().(*CheckResultsView) + 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: CheckResultsView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CheckResultsView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithinUserLimit", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.WithinUserLimit = bool(v != 0) + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithinBlockLimit", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.WithinBlockLimit = bool(v != 0) + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithinTotalLimit", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.WithinTotalLimit = bool(v != 0) + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CooldownPassed", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.CooldownPassed = bool(v != 0) + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VelocityCheckPassed", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.VelocityCheckPassed = bool(v != 0) + 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, + } +} + +var _ protoreflect.List = (*_QuerySimulateDepositResponse_4_list)(nil) + +type _QuerySimulateDepositResponse_4_list struct { + list *[]string +} + +func (x *_QuerySimulateDepositResponse_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QuerySimulateDepositResponse_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QuerySimulateDepositResponse_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QuerySimulateDepositResponse_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QuerySimulateDepositResponse_4_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QuerySimulateDepositResponse at list field Warnings as it is not of Message kind")) +} + +func (x *_QuerySimulateDepositResponse_4_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QuerySimulateDepositResponse_4_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QuerySimulateDepositResponse_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QuerySimulateDepositResponse protoreflect.MessageDescriptor + fd_QuerySimulateDepositResponse_expected_deposit protoreflect.FieldDescriptor + fd_QuerySimulateDepositResponse_yield_rate protoreflect.FieldDescriptor + fd_QuerySimulateDepositResponse_checks protoreflect.FieldDescriptor + fd_QuerySimulateDepositResponse_warnings protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QuerySimulateDepositResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QuerySimulateDepositResponse") + fd_QuerySimulateDepositResponse_expected_deposit = md_QuerySimulateDepositResponse.Fields().ByName("expected_deposit") + fd_QuerySimulateDepositResponse_yield_rate = md_QuerySimulateDepositResponse.Fields().ByName("yield_rate") + fd_QuerySimulateDepositResponse_checks = md_QuerySimulateDepositResponse.Fields().ByName("checks") + fd_QuerySimulateDepositResponse_warnings = md_QuerySimulateDepositResponse.Fields().ByName("warnings") +} + +var _ protoreflect.Message = (*fastReflection_QuerySimulateDepositResponse)(nil) + +type fastReflection_QuerySimulateDepositResponse QuerySimulateDepositResponse + +func (x *QuerySimulateDepositResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySimulateDepositResponse)(x) +} + +func (x *QuerySimulateDepositResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[54] + 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_QuerySimulateDepositResponse_messageType fastReflection_QuerySimulateDepositResponse_messageType +var _ protoreflect.MessageType = fastReflection_QuerySimulateDepositResponse_messageType{} + +type fastReflection_QuerySimulateDepositResponse_messageType struct{} + +func (x fastReflection_QuerySimulateDepositResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySimulateDepositResponse)(nil) +} +func (x fastReflection_QuerySimulateDepositResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySimulateDepositResponse) +} +func (x fastReflection_QuerySimulateDepositResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateDepositResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuerySimulateDepositResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateDepositResponse +} + +// 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_QuerySimulateDepositResponse) Type() protoreflect.MessageType { + return _fastReflection_QuerySimulateDepositResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuerySimulateDepositResponse) New() protoreflect.Message { + return new(fastReflection_QuerySimulateDepositResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuerySimulateDepositResponse) Interface() protoreflect.ProtoMessage { + return (*QuerySimulateDepositResponse)(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_QuerySimulateDepositResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ExpectedDeposit != "" { + value := protoreflect.ValueOfString(x.ExpectedDeposit) + if !f(fd_QuerySimulateDepositResponse_expected_deposit, value) { + return + } + } + if x.YieldRate != "" { + value := protoreflect.ValueOfString(x.YieldRate) + if !f(fd_QuerySimulateDepositResponse_yield_rate, value) { + return + } + } + if x.Checks != nil { + value := protoreflect.ValueOfMessage(x.Checks.ProtoReflect()) + if !f(fd_QuerySimulateDepositResponse_checks, value) { + return + } + } + if len(x.Warnings) != 0 { + value := protoreflect.ValueOfList(&_QuerySimulateDepositResponse_4_list{list: &x.Warnings}) + if !f(fd_QuerySimulateDepositResponse_warnings, 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_QuerySimulateDepositResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.expected_deposit": + return x.ExpectedDeposit != "" + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.yield_rate": + return x.YieldRate != "" + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks": + return x.Checks != nil + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.warnings": + return len(x.Warnings) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositResponse 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_QuerySimulateDepositResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.expected_deposit": + x.ExpectedDeposit = "" + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.yield_rate": + x.YieldRate = "" + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks": + x.Checks = nil + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.warnings": + x.Warnings = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositResponse 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_QuerySimulateDepositResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.expected_deposit": + value := x.ExpectedDeposit + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.yield_rate": + value := x.YieldRate + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks": + value := x.Checks + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.warnings": + if len(x.Warnings) == 0 { + return protoreflect.ValueOfList(&_QuerySimulateDepositResponse_4_list{}) + } + listValue := &_QuerySimulateDepositResponse_4_list{list: &x.Warnings} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositResponse 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_QuerySimulateDepositResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.expected_deposit": + x.ExpectedDeposit = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.yield_rate": + x.YieldRate = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks": + x.Checks = value.Message().Interface().(*CheckResultsView) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.warnings": + lv := value.List() + clv := lv.(*_QuerySimulateDepositResponse_4_list) + x.Warnings = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositResponse 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_QuerySimulateDepositResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks": + if x.Checks == nil { + x.Checks = new(CheckResultsView) + } + return protoreflect.ValueOfMessage(x.Checks.ProtoReflect()) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.warnings": + if x.Warnings == nil { + x.Warnings = []string{} + } + value := &_QuerySimulateDepositResponse_4_list{list: &x.Warnings} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.expected_deposit": + panic(fmt.Errorf("field expected_deposit of message noble.dollar.vaults.v2.QuerySimulateDepositResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.yield_rate": + panic(fmt.Errorf("field yield_rate of message noble.dollar.vaults.v2.QuerySimulateDepositResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositResponse 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_QuerySimulateDepositResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.expected_deposit": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.yield_rate": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks": + m := new(CheckResultsView) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.QuerySimulateDepositResponse.warnings": + list := []string{} + return protoreflect.ValueOfList(&_QuerySimulateDepositResponse_4_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateDepositResponse 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_QuerySimulateDepositResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QuerySimulateDepositResponse", 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_QuerySimulateDepositResponse) 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_QuerySimulateDepositResponse) 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_QuerySimulateDepositResponse) 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_QuerySimulateDepositResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuerySimulateDepositResponse) + 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.ExpectedDeposit) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Checks != nil { + l = options.Size(x.Checks) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Warnings) > 0 { + for _, s := range x.Warnings { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + 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().(*QuerySimulateDepositResponse) + 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 len(x.Warnings) > 0 { + for iNdEx := len(x.Warnings) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Warnings[iNdEx]) + copy(dAtA[i:], x.Warnings[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Warnings[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if x.Checks != nil { + encoded, err := options.Marshal(x.Checks) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.YieldRate) > 0 { + i -= len(x.YieldRate) + copy(dAtA[i:], x.YieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldRate))) + i-- + dAtA[i] = 0x12 + } + if len(x.ExpectedDeposit) > 0 { + i -= len(x.ExpectedDeposit) + copy(dAtA[i:], x.ExpectedDeposit) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpectedDeposit))) + 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().(*QuerySimulateDepositResponse) + 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: QuerySimulateDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateDepositResponse: 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 ExpectedDeposit", 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.ExpectedDeposit = 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 YieldRate", 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.YieldRate = 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 Checks", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Checks == nil { + x.Checks = &CheckResultsView{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checks); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Warnings", 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.Warnings = append(x.Warnings, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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, + } +} + +var ( + md_QuerySimulateWithdrawalRequest protoreflect.MessageDescriptor + fd_QuerySimulateWithdrawalRequest_amount protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalRequest_address protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QuerySimulateWithdrawalRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QuerySimulateWithdrawalRequest") + fd_QuerySimulateWithdrawalRequest_amount = md_QuerySimulateWithdrawalRequest.Fields().ByName("amount") + fd_QuerySimulateWithdrawalRequest_address = md_QuerySimulateWithdrawalRequest.Fields().ByName("address") +} + +var _ protoreflect.Message = (*fastReflection_QuerySimulateWithdrawalRequest)(nil) + +type fastReflection_QuerySimulateWithdrawalRequest QuerySimulateWithdrawalRequest + +func (x *QuerySimulateWithdrawalRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySimulateWithdrawalRequest)(x) +} + +func (x *QuerySimulateWithdrawalRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[55] + 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_QuerySimulateWithdrawalRequest_messageType fastReflection_QuerySimulateWithdrawalRequest_messageType +var _ protoreflect.MessageType = fastReflection_QuerySimulateWithdrawalRequest_messageType{} + +type fastReflection_QuerySimulateWithdrawalRequest_messageType struct{} + +func (x fastReflection_QuerySimulateWithdrawalRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySimulateWithdrawalRequest)(nil) +} +func (x fastReflection_QuerySimulateWithdrawalRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySimulateWithdrawalRequest) +} +func (x fastReflection_QuerySimulateWithdrawalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateWithdrawalRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuerySimulateWithdrawalRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateWithdrawalRequest +} + +// 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_QuerySimulateWithdrawalRequest) Type() protoreflect.MessageType { + return _fastReflection_QuerySimulateWithdrawalRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuerySimulateWithdrawalRequest) New() protoreflect.Message { + return new(fastReflection_QuerySimulateWithdrawalRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuerySimulateWithdrawalRequest) Interface() protoreflect.ProtoMessage { + return (*QuerySimulateWithdrawalRequest)(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_QuerySimulateWithdrawalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QuerySimulateWithdrawalRequest_amount, value) { + return + } + } + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QuerySimulateWithdrawalRequest_address, 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_QuerySimulateWithdrawalRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.address": + return x.Address != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest 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_QuerySimulateWithdrawalRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.address": + x.Address = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest 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_QuerySimulateWithdrawalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest 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_QuerySimulateWithdrawalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.address": + x.Address = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest 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_QuerySimulateWithdrawalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.address": + panic(fmt.Errorf("field address of message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest 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_QuerySimulateWithdrawalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest.address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest 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_QuerySimulateWithdrawalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest", 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_QuerySimulateWithdrawalRequest) 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_QuerySimulateWithdrawalRequest) 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_QuerySimulateWithdrawalRequest) 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_QuerySimulateWithdrawalRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuerySimulateWithdrawalRequest) + 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.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QuerySimulateWithdrawalRequest) + 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 len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0x12 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + 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().(*QuerySimulateWithdrawalRequest) + 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: QuerySimulateWithdrawalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateWithdrawalRequest: 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 Amount", 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.Amount = 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 Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QuerySimulateWithdrawalResponse protoreflect.MessageDescriptor + fd_QuerySimulateWithdrawalResponse_expected_amount protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalResponse_principal_portion protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalResponse_yield_portion protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalResponse_queue_position protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalResponse_estimated_fulfillment_time protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalResponse_available_liquidity protoreflect.FieldDescriptor + fd_QuerySimulateWithdrawalResponse_ahead_in_queue protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QuerySimulateWithdrawalResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QuerySimulateWithdrawalResponse") + fd_QuerySimulateWithdrawalResponse_expected_amount = md_QuerySimulateWithdrawalResponse.Fields().ByName("expected_amount") + fd_QuerySimulateWithdrawalResponse_principal_portion = md_QuerySimulateWithdrawalResponse.Fields().ByName("principal_portion") + fd_QuerySimulateWithdrawalResponse_yield_portion = md_QuerySimulateWithdrawalResponse.Fields().ByName("yield_portion") + fd_QuerySimulateWithdrawalResponse_queue_position = md_QuerySimulateWithdrawalResponse.Fields().ByName("queue_position") + fd_QuerySimulateWithdrawalResponse_estimated_fulfillment_time = md_QuerySimulateWithdrawalResponse.Fields().ByName("estimated_fulfillment_time") + fd_QuerySimulateWithdrawalResponse_available_liquidity = md_QuerySimulateWithdrawalResponse.Fields().ByName("available_liquidity") + fd_QuerySimulateWithdrawalResponse_ahead_in_queue = md_QuerySimulateWithdrawalResponse.Fields().ByName("ahead_in_queue") +} + +var _ protoreflect.Message = (*fastReflection_QuerySimulateWithdrawalResponse)(nil) + +type fastReflection_QuerySimulateWithdrawalResponse QuerySimulateWithdrawalResponse + +func (x *QuerySimulateWithdrawalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySimulateWithdrawalResponse)(x) +} + +func (x *QuerySimulateWithdrawalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[56] + 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_QuerySimulateWithdrawalResponse_messageType fastReflection_QuerySimulateWithdrawalResponse_messageType +var _ protoreflect.MessageType = fastReflection_QuerySimulateWithdrawalResponse_messageType{} + +type fastReflection_QuerySimulateWithdrawalResponse_messageType struct{} + +func (x fastReflection_QuerySimulateWithdrawalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySimulateWithdrawalResponse)(nil) +} +func (x fastReflection_QuerySimulateWithdrawalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySimulateWithdrawalResponse) +} +func (x fastReflection_QuerySimulateWithdrawalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateWithdrawalResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuerySimulateWithdrawalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySimulateWithdrawalResponse +} + +// 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_QuerySimulateWithdrawalResponse) Type() protoreflect.MessageType { + return _fastReflection_QuerySimulateWithdrawalResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuerySimulateWithdrawalResponse) New() protoreflect.Message { + return new(fastReflection_QuerySimulateWithdrawalResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuerySimulateWithdrawalResponse) Interface() protoreflect.ProtoMessage { + return (*QuerySimulateWithdrawalResponse)(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_QuerySimulateWithdrawalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ExpectedAmount != "" { + value := protoreflect.ValueOfString(x.ExpectedAmount) + if !f(fd_QuerySimulateWithdrawalResponse_expected_amount, value) { + return + } + } + if x.PrincipalPortion != "" { + value := protoreflect.ValueOfString(x.PrincipalPortion) + if !f(fd_QuerySimulateWithdrawalResponse_principal_portion, value) { + return + } + } + if x.YieldPortion != "" { + value := protoreflect.ValueOfString(x.YieldPortion) + if !f(fd_QuerySimulateWithdrawalResponse_yield_portion, value) { + return + } + } + if x.QueuePosition != uint64(0) { + value := protoreflect.ValueOfUint64(x.QueuePosition) + if !f(fd_QuerySimulateWithdrawalResponse_queue_position, value) { + return + } + } + if x.EstimatedFulfillmentTime != "" { + value := protoreflect.ValueOfString(x.EstimatedFulfillmentTime) + if !f(fd_QuerySimulateWithdrawalResponse_estimated_fulfillment_time, value) { + return + } + } + if x.AvailableLiquidity != "" { + value := protoreflect.ValueOfString(x.AvailableLiquidity) + if !f(fd_QuerySimulateWithdrawalResponse_available_liquidity, value) { + return + } + } + if x.AheadInQueue != "" { + value := protoreflect.ValueOfString(x.AheadInQueue) + if !f(fd_QuerySimulateWithdrawalResponse_ahead_in_queue, 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_QuerySimulateWithdrawalResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.expected_amount": + return x.ExpectedAmount != "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.principal_portion": + return x.PrincipalPortion != "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.yield_portion": + return x.YieldPortion != "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.queue_position": + return x.QueuePosition != uint64(0) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.estimated_fulfillment_time": + return x.EstimatedFulfillmentTime != "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.available_liquidity": + return x.AvailableLiquidity != "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.ahead_in_queue": + return x.AheadInQueue != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse 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_QuerySimulateWithdrawalResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.expected_amount": + x.ExpectedAmount = "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.principal_portion": + x.PrincipalPortion = "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.yield_portion": + x.YieldPortion = "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.queue_position": + x.QueuePosition = uint64(0) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.estimated_fulfillment_time": + x.EstimatedFulfillmentTime = "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.available_liquidity": + x.AvailableLiquidity = "" + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.ahead_in_queue": + x.AheadInQueue = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse 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_QuerySimulateWithdrawalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.expected_amount": + value := x.ExpectedAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.principal_portion": + value := x.PrincipalPortion + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.yield_portion": + value := x.YieldPortion + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.queue_position": + value := x.QueuePosition + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.estimated_fulfillment_time": + value := x.EstimatedFulfillmentTime + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.available_liquidity": + value := x.AvailableLiquidity + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.ahead_in_queue": + value := x.AheadInQueue + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse 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_QuerySimulateWithdrawalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.expected_amount": + x.ExpectedAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.principal_portion": + x.PrincipalPortion = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.yield_portion": + x.YieldPortion = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.queue_position": + x.QueuePosition = value.Uint() + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.estimated_fulfillment_time": + x.EstimatedFulfillmentTime = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.available_liquidity": + x.AvailableLiquidity = value.Interface().(string) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.ahead_in_queue": + x.AheadInQueue = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse 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_QuerySimulateWithdrawalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.expected_amount": + panic(fmt.Errorf("field expected_amount of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.principal_portion": + panic(fmt.Errorf("field principal_portion of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.yield_portion": + panic(fmt.Errorf("field yield_portion of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.queue_position": + panic(fmt.Errorf("field queue_position of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.estimated_fulfillment_time": + panic(fmt.Errorf("field estimated_fulfillment_time of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.available_liquidity": + panic(fmt.Errorf("field available_liquidity of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.ahead_in_queue": + panic(fmt.Errorf("field ahead_in_queue of message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse 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_QuerySimulateWithdrawalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.expected_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.principal_portion": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.yield_portion": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.queue_position": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.estimated_fulfillment_time": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.available_liquidity": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse.ahead_in_queue": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse 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_QuerySimulateWithdrawalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse", 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_QuerySimulateWithdrawalResponse) 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_QuerySimulateWithdrawalResponse) 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_QuerySimulateWithdrawalResponse) 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_QuerySimulateWithdrawalResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuerySimulateWithdrawalResponse) + 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.ExpectedAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PrincipalPortion) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldPortion) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.QueuePosition != 0 { + n += 1 + runtime.Sov(uint64(x.QueuePosition)) + } + l = len(x.EstimatedFulfillmentTime) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AvailableLiquidity) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AheadInQueue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QuerySimulateWithdrawalResponse) + 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 len(x.AheadInQueue) > 0 { + i -= len(x.AheadInQueue) + copy(dAtA[i:], x.AheadInQueue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AheadInQueue))) + i-- + dAtA[i] = 0x3a + } + if len(x.AvailableLiquidity) > 0 { + i -= len(x.AvailableLiquidity) + copy(dAtA[i:], x.AvailableLiquidity) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AvailableLiquidity))) + i-- + dAtA[i] = 0x32 + } + if len(x.EstimatedFulfillmentTime) > 0 { + i -= len(x.EstimatedFulfillmentTime) + copy(dAtA[i:], x.EstimatedFulfillmentTime) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EstimatedFulfillmentTime))) + i-- + dAtA[i] = 0x2a + } + if x.QueuePosition != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.QueuePosition)) + i-- + dAtA[i] = 0x20 + } + if len(x.YieldPortion) > 0 { + i -= len(x.YieldPortion) + copy(dAtA[i:], x.YieldPortion) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldPortion))) + i-- + dAtA[i] = 0x1a + } + if len(x.PrincipalPortion) > 0 { + i -= len(x.PrincipalPortion) + copy(dAtA[i:], x.PrincipalPortion) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PrincipalPortion))) + i-- + dAtA[i] = 0x12 + } + if len(x.ExpectedAmount) > 0 { + i -= len(x.ExpectedAmount) + copy(dAtA[i:], x.ExpectedAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpectedAmount))) + 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().(*QuerySimulateWithdrawalResponse) + 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: QuerySimulateWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySimulateWithdrawalResponse: 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 ExpectedAmount", 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.ExpectedAmount = 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 PrincipalPortion", 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.PrincipalPortion = 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 YieldPortion", 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.YieldPortion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuePosition", wireType) + } + x.QueuePosition = 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.QueuePosition |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EstimatedFulfillmentTime", 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.EstimatedFulfillmentTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AvailableLiquidity", 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.AvailableLiquidity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AheadInQueue", 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.AheadInQueue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryInflightFundsRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryInflightFundsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryInflightFundsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryInflightFundsRequest)(nil) + +type fastReflection_QueryInflightFundsRequest QueryInflightFundsRequest + +func (x *QueryInflightFundsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInflightFundsRequest)(x) +} + +func (x *QueryInflightFundsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[57] + 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_QueryInflightFundsRequest_messageType fastReflection_QueryInflightFundsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryInflightFundsRequest_messageType{} + +type fastReflection_QueryInflightFundsRequest_messageType struct{} + +func (x fastReflection_QueryInflightFundsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInflightFundsRequest)(nil) +} +func (x fastReflection_QueryInflightFundsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsRequest) +} +func (x fastReflection_QueryInflightFundsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryInflightFundsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsRequest +} + +// 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_QueryInflightFundsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryInflightFundsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryInflightFundsRequest) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryInflightFundsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryInflightFundsRequest)(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_QueryInflightFundsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryInflightFundsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsRequest 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_QueryInflightFundsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsRequest 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_QueryInflightFundsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsRequest 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_QueryInflightFundsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsRequest 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_QueryInflightFundsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsRequest 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_QueryInflightFundsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsRequest 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_QueryInflightFundsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryInflightFundsRequest", 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_QueryInflightFundsRequest) 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_QueryInflightFundsRequest) 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_QueryInflightFundsRequest) 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_QueryInflightFundsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryInflightFundsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryInflightFundsRequest) + 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 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().(*QueryInflightFundsRequest) + 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: QueryInflightFundsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInflightFundsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_InflightFundView protoreflect.MessageDescriptor + fd_InflightFundView_route_id protoreflect.FieldDescriptor + fd_InflightFundView_transaction_id protoreflect.FieldDescriptor + fd_InflightFundView_type protoreflect.FieldDescriptor + fd_InflightFundView_amount protoreflect.FieldDescriptor + fd_InflightFundView_current_value protoreflect.FieldDescriptor + fd_InflightFundView_source_chain protoreflect.FieldDescriptor + fd_InflightFundView_destination_chain protoreflect.FieldDescriptor + fd_InflightFundView_source_position_id protoreflect.FieldDescriptor + fd_InflightFundView_destination_position_id protoreflect.FieldDescriptor + fd_InflightFundView_initiated_at protoreflect.FieldDescriptor + fd_InflightFundView_expected_at protoreflect.FieldDescriptor + fd_InflightFundView_status protoreflect.FieldDescriptor + fd_InflightFundView_time_remaining protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_InflightFundView = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("InflightFundView") + fd_InflightFundView_route_id = md_InflightFundView.Fields().ByName("route_id") + fd_InflightFundView_transaction_id = md_InflightFundView.Fields().ByName("transaction_id") + fd_InflightFundView_type = md_InflightFundView.Fields().ByName("type") + fd_InflightFundView_amount = md_InflightFundView.Fields().ByName("amount") + fd_InflightFundView_current_value = md_InflightFundView.Fields().ByName("current_value") + fd_InflightFundView_source_chain = md_InflightFundView.Fields().ByName("source_chain") + fd_InflightFundView_destination_chain = md_InflightFundView.Fields().ByName("destination_chain") + fd_InflightFundView_source_position_id = md_InflightFundView.Fields().ByName("source_position_id") + fd_InflightFundView_destination_position_id = md_InflightFundView.Fields().ByName("destination_position_id") + fd_InflightFundView_initiated_at = md_InflightFundView.Fields().ByName("initiated_at") + fd_InflightFundView_expected_at = md_InflightFundView.Fields().ByName("expected_at") + fd_InflightFundView_status = md_InflightFundView.Fields().ByName("status") + fd_InflightFundView_time_remaining = md_InflightFundView.Fields().ByName("time_remaining") +} + +var _ protoreflect.Message = (*fastReflection_InflightFundView)(nil) + +type fastReflection_InflightFundView InflightFundView + +func (x *InflightFundView) ProtoReflect() protoreflect.Message { + return (*fastReflection_InflightFundView)(x) +} + +func (x *InflightFundView) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[58] + 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_InflightFundView_messageType fastReflection_InflightFundView_messageType +var _ protoreflect.MessageType = fastReflection_InflightFundView_messageType{} + +type fastReflection_InflightFundView_messageType struct{} + +func (x fastReflection_InflightFundView_messageType) Zero() protoreflect.Message { + return (*fastReflection_InflightFundView)(nil) +} +func (x fastReflection_InflightFundView_messageType) New() protoreflect.Message { + return new(fastReflection_InflightFundView) +} +func (x fastReflection_InflightFundView_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_InflightFundView +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_InflightFundView) Descriptor() protoreflect.MessageDescriptor { + return md_InflightFundView +} + +// 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_InflightFundView) Type() protoreflect.MessageType { + return _fastReflection_InflightFundView_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_InflightFundView) New() protoreflect.Message { + return new(fastReflection_InflightFundView) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_InflightFundView) Interface() protoreflect.ProtoMessage { + return (*InflightFundView)(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_InflightFundView) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_InflightFundView_route_id, value) { + return + } + } + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_InflightFundView_transaction_id, value) { + return + } + } + if x.Type_ != "" { + value := protoreflect.ValueOfString(x.Type_) + if !f(fd_InflightFundView_type, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_InflightFundView_amount, value) { + return + } + } + if x.CurrentValue != "" { + value := protoreflect.ValueOfString(x.CurrentValue) + if !f(fd_InflightFundView_current_value, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_InflightFundView_source_chain, value) { + return + } + } + if x.DestinationChain != "" { + value := protoreflect.ValueOfString(x.DestinationChain) + if !f(fd_InflightFundView_destination_chain, value) { + return + } + } + if x.SourcePositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.SourcePositionId) + if !f(fd_InflightFundView_source_position_id, value) { + return + } + } + if x.DestinationPositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.DestinationPositionId) + if !f(fd_InflightFundView_destination_position_id, value) { + return + } + } + if x.InitiatedAt != nil { + value := protoreflect.ValueOfMessage(x.InitiatedAt.ProtoReflect()) + if !f(fd_InflightFundView_initiated_at, value) { + return + } + } + if x.ExpectedAt != nil { + value := protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + if !f(fd_InflightFundView_expected_at, value) { + return + } + } + if x.Status != "" { + value := protoreflect.ValueOfString(x.Status) + if !f(fd_InflightFundView_status, value) { + return + } + } + if x.TimeRemaining != "" { + value := protoreflect.ValueOfString(x.TimeRemaining) + if !f(fd_InflightFundView_time_remaining, 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_InflightFundView) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFundView.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.InflightFundView.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.InflightFundView.type": + return x.Type_ != "" + case "noble.dollar.vaults.v2.InflightFundView.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.InflightFundView.current_value": + return x.CurrentValue != "" + case "noble.dollar.vaults.v2.InflightFundView.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.InflightFundView.destination_chain": + return x.DestinationChain != "" + case "noble.dollar.vaults.v2.InflightFundView.source_position_id": + return x.SourcePositionId != uint64(0) + case "noble.dollar.vaults.v2.InflightFundView.destination_position_id": + return x.DestinationPositionId != uint64(0) + case "noble.dollar.vaults.v2.InflightFundView.initiated_at": + return x.InitiatedAt != nil + case "noble.dollar.vaults.v2.InflightFundView.expected_at": + return x.ExpectedAt != nil + case "noble.dollar.vaults.v2.InflightFundView.status": + return x.Status != "" + case "noble.dollar.vaults.v2.InflightFundView.time_remaining": + return x.TimeRemaining != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFundView 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_InflightFundView) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFundView.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.InflightFundView.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.InflightFundView.type": + x.Type_ = "" + case "noble.dollar.vaults.v2.InflightFundView.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.InflightFundView.current_value": + x.CurrentValue = "" + case "noble.dollar.vaults.v2.InflightFundView.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.InflightFundView.destination_chain": + x.DestinationChain = "" + case "noble.dollar.vaults.v2.InflightFundView.source_position_id": + x.SourcePositionId = uint64(0) + case "noble.dollar.vaults.v2.InflightFundView.destination_position_id": + x.DestinationPositionId = uint64(0) + case "noble.dollar.vaults.v2.InflightFundView.initiated_at": + x.InitiatedAt = nil + case "noble.dollar.vaults.v2.InflightFundView.expected_at": + x.ExpectedAt = nil + case "noble.dollar.vaults.v2.InflightFundView.status": + x.Status = "" + case "noble.dollar.vaults.v2.InflightFundView.time_remaining": + x.TimeRemaining = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFundView 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_InflightFundView) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.InflightFundView.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.InflightFundView.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.type": + value := x.Type_ + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.current_value": + value := x.CurrentValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.destination_chain": + value := x.DestinationChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.source_position_id": + value := x.SourcePositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.InflightFundView.destination_position_id": + value := x.DestinationPositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.InflightFundView.initiated_at": + value := x.InitiatedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFundView.expected_at": + value := x.ExpectedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFundView.status": + value := x.Status + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.InflightFundView.time_remaining": + value := x.TimeRemaining + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFundView 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_InflightFundView) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFundView.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.InflightFundView.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.type": + x.Type_ = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.current_value": + x.CurrentValue = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.destination_chain": + x.DestinationChain = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.source_position_id": + x.SourcePositionId = value.Uint() + case "noble.dollar.vaults.v2.InflightFundView.destination_position_id": + x.DestinationPositionId = value.Uint() + case "noble.dollar.vaults.v2.InflightFundView.initiated_at": + x.InitiatedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.InflightFundView.expected_at": + x.ExpectedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.InflightFundView.status": + x.Status = value.Interface().(string) + case "noble.dollar.vaults.v2.InflightFundView.time_remaining": + x.TimeRemaining = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFundView 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_InflightFundView) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFundView.initiated_at": + if x.InitiatedAt == nil { + x.InitiatedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.InitiatedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFundView.expected_at": + if x.ExpectedAt == nil { + x.ExpectedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFundView.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.type": + panic(fmt.Errorf("field type of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.current_value": + panic(fmt.Errorf("field current_value of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.destination_chain": + panic(fmt.Errorf("field destination_chain of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.source_position_id": + panic(fmt.Errorf("field source_position_id of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.destination_position_id": + panic(fmt.Errorf("field destination_position_id of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + case "noble.dollar.vaults.v2.InflightFundView.time_remaining": + panic(fmt.Errorf("field time_remaining of message noble.dollar.vaults.v2.InflightFundView is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFundView 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_InflightFundView) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.InflightFundView.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.InflightFundView.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.type": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.current_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.destination_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.source_position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.InflightFundView.destination_position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.InflightFundView.initiated_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFundView.expected_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.InflightFundView.status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.InflightFundView.time_remaining": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.InflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.InflightFundView 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_InflightFundView) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.InflightFundView", 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_InflightFundView) 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_InflightFundView) 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_InflightFundView) 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_InflightFundView) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*InflightFundView) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Type_) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CurrentValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.SourcePositionId != 0 { + n += 1 + runtime.Sov(uint64(x.SourcePositionId)) + } + if x.DestinationPositionId != 0 { + n += 1 + runtime.Sov(uint64(x.DestinationPositionId)) + } + if x.InitiatedAt != nil { + l = options.Size(x.InitiatedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedAt != nil { + l = options.Size(x.ExpectedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Status) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TimeRemaining) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*InflightFundView) + 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 len(x.TimeRemaining) > 0 { + i -= len(x.TimeRemaining) + copy(dAtA[i:], x.TimeRemaining) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TimeRemaining))) + i-- + dAtA[i] = 0x6a + } + if len(x.Status) > 0 { + i -= len(x.Status) + copy(dAtA[i:], x.Status) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) + i-- + dAtA[i] = 0x62 + } + if x.ExpectedAt != nil { + encoded, err := options.Marshal(x.ExpectedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x5a + } + if x.InitiatedAt != nil { + encoded, err := options.Marshal(x.InitiatedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x52 + } + if x.DestinationPositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DestinationPositionId)) + i-- + dAtA[i] = 0x48 + } + if x.SourcePositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.SourcePositionId)) + i-- + dAtA[i] = 0x40 + } + if len(x.DestinationChain) > 0 { + i -= len(x.DestinationChain) + copy(dAtA[i:], x.DestinationChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationChain))) + i-- + dAtA[i] = 0x3a + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x32 + } + if len(x.CurrentValue) > 0 { + i -= len(x.CurrentValue) + copy(dAtA[i:], x.CurrentValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentValue))) + i-- + dAtA[i] = 0x2a + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x22 + } + if len(x.Type_) > 0 { + i -= len(x.Type_) + copy(dAtA[i:], x.Type_) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_))) + i-- + dAtA[i] = 0x1a + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*InflightFundView) + 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: InflightFundView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: InflightFundView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = 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 Type_", 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.Type_ = 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 Amount", 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.Amount = 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 CurrentValue", 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.CurrentValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationChain", 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.DestinationChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SourcePositionId", wireType) + } + x.SourcePositionId = 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.SourcePositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationPositionId", wireType) + } + x.DestinationPositionId = 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.DestinationPositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InitiatedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.InitiatedAt == nil { + x.InitiatedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InitiatedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedAt == nil { + x.ExpectedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeRemaining", 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.TimeRemaining = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryInflightFundsResponse_1_list)(nil) + +type _QueryInflightFundsResponse_1_list struct { + list *[]*InflightFundView +} + +func (x *_QueryInflightFundsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryInflightFundsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryInflightFundsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*InflightFundView) + (*x.list)[i] = concreteValue +} + +func (x *_QueryInflightFundsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*InflightFundView) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryInflightFundsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(InflightFundView) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryInflightFundsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryInflightFundsResponse_1_list) NewElement() protoreflect.Value { + v := new(InflightFundView) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryInflightFundsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.Map = (*_QueryInflightFundsResponse_5_map)(nil) + +type _QueryInflightFundsResponse_5_map struct { + m *map[string]string +} + +func (x *_QueryInflightFundsResponse_5_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_QueryInflightFundsResponse_5_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfString(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_QueryInflightFundsResponse_5_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_QueryInflightFundsResponse_5_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_QueryInflightFundsResponse_5_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfString(v) +} + +func (x *_QueryInflightFundsResponse_5_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_QueryInflightFundsResponse_5_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_QueryInflightFundsResponse_5_map) NewValue() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryInflightFundsResponse_5_map) IsValid() bool { + return x.m != nil +} + +var _ protoreflect.Map = (*_QueryInflightFundsResponse_6_map)(nil) + +type _QueryInflightFundsResponse_6_map struct { + m *map[string]string +} + +func (x *_QueryInflightFundsResponse_6_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_QueryInflightFundsResponse_6_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfString(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_QueryInflightFundsResponse_6_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_QueryInflightFundsResponse_6_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_QueryInflightFundsResponse_6_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfString(v) +} + +func (x *_QueryInflightFundsResponse_6_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_QueryInflightFundsResponse_6_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_QueryInflightFundsResponse_6_map) NewValue() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryInflightFundsResponse_6_map) IsValid() bool { + return x.m != nil +} + +var _ protoreflect.Map = (*_QueryInflightFundsResponse_7_map)(nil) + +type _QueryInflightFundsResponse_7_map struct { + m *map[string]string +} + +func (x *_QueryInflightFundsResponse_7_map) Len() int { + if x.m == nil { + return 0 + } + return len(*x.m) +} + +func (x *_QueryInflightFundsResponse_7_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + if x.m == nil { + return + } + for k, v := range *x.m { + mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) + mapValue := protoreflect.ValueOfString(v) + if !f(mapKey, mapValue) { + break + } + } +} + +func (x *_QueryInflightFundsResponse_7_map) Has(key protoreflect.MapKey) bool { + if x.m == nil { + return false + } + keyUnwrapped := key.String() + concreteValue := keyUnwrapped + _, ok := (*x.m)[concreteValue] + return ok +} + +func (x *_QueryInflightFundsResponse_7_map) Clear(key protoreflect.MapKey) { + if x.m == nil { + return + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + delete(*x.m, concreteKey) +} + +func (x *_QueryInflightFundsResponse_7_map) Get(key protoreflect.MapKey) protoreflect.Value { + if x.m == nil { + return protoreflect.Value{} + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + v, ok := (*x.m)[concreteKey] + if !ok { + return protoreflect.Value{} + } + return protoreflect.ValueOfString(v) +} + +func (x *_QueryInflightFundsResponse_7_map) Set(key protoreflect.MapKey, value protoreflect.Value) { + if !key.IsValid() || !value.IsValid() { + panic("invalid key or value provided") + } + keyUnwrapped := key.String() + concreteKey := keyUnwrapped + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.m)[concreteKey] = concreteValue +} + +func (x *_QueryInflightFundsResponse_7_map) Mutable(key protoreflect.MapKey) protoreflect.Value { + panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") +} + +func (x *_QueryInflightFundsResponse_7_map) NewValue() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryInflightFundsResponse_7_map) IsValid() bool { + return x.m != nil +} + +var ( + md_QueryInflightFundsResponse protoreflect.MessageDescriptor + fd_QueryInflightFundsResponse_inflight_funds protoreflect.FieldDescriptor + fd_QueryInflightFundsResponse_total_inflight protoreflect.FieldDescriptor + fd_QueryInflightFundsResponse_pending_deployment protoreflect.FieldDescriptor + fd_QueryInflightFundsResponse_pending_withdrawal_distribution protoreflect.FieldDescriptor + fd_QueryInflightFundsResponse_by_route protoreflect.FieldDescriptor + fd_QueryInflightFundsResponse_by_type protoreflect.FieldDescriptor + fd_QueryInflightFundsResponse_by_status protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryInflightFundsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryInflightFundsResponse") + fd_QueryInflightFundsResponse_inflight_funds = md_QueryInflightFundsResponse.Fields().ByName("inflight_funds") + fd_QueryInflightFundsResponse_total_inflight = md_QueryInflightFundsResponse.Fields().ByName("total_inflight") + fd_QueryInflightFundsResponse_pending_deployment = md_QueryInflightFundsResponse.Fields().ByName("pending_deployment") + fd_QueryInflightFundsResponse_pending_withdrawal_distribution = md_QueryInflightFundsResponse.Fields().ByName("pending_withdrawal_distribution") + fd_QueryInflightFundsResponse_by_route = md_QueryInflightFundsResponse.Fields().ByName("by_route") + fd_QueryInflightFundsResponse_by_type = md_QueryInflightFundsResponse.Fields().ByName("by_type") + fd_QueryInflightFundsResponse_by_status = md_QueryInflightFundsResponse.Fields().ByName("by_status") +} + +var _ protoreflect.Message = (*fastReflection_QueryInflightFundsResponse)(nil) + +type fastReflection_QueryInflightFundsResponse QueryInflightFundsResponse + +func (x *QueryInflightFundsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInflightFundsResponse)(x) +} + +func (x *QueryInflightFundsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[59] + 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_QueryInflightFundsResponse_messageType fastReflection_QueryInflightFundsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryInflightFundsResponse_messageType{} + +type fastReflection_QueryInflightFundsResponse_messageType struct{} + +func (x fastReflection_QueryInflightFundsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInflightFundsResponse)(nil) +} +func (x fastReflection_QueryInflightFundsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsResponse) +} +func (x fastReflection_QueryInflightFundsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryInflightFundsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInflightFundsResponse +} + +// 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_QueryInflightFundsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryInflightFundsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryInflightFundsResponse) New() protoreflect.Message { + return new(fastReflection_QueryInflightFundsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryInflightFundsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryInflightFundsResponse)(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_QueryInflightFundsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.InflightFunds) != 0 { + value := protoreflect.ValueOfList(&_QueryInflightFundsResponse_1_list{list: &x.InflightFunds}) + if !f(fd_QueryInflightFundsResponse_inflight_funds, value) { + return + } + } + if x.TotalInflight != "" { + value := protoreflect.ValueOfString(x.TotalInflight) + if !f(fd_QueryInflightFundsResponse_total_inflight, value) { + return + } + } + if x.PendingDeployment != "" { + value := protoreflect.ValueOfString(x.PendingDeployment) + if !f(fd_QueryInflightFundsResponse_pending_deployment, value) { + return + } + } + if x.PendingWithdrawalDistribution != "" { + value := protoreflect.ValueOfString(x.PendingWithdrawalDistribution) + if !f(fd_QueryInflightFundsResponse_pending_withdrawal_distribution, value) { + return + } + } + if len(x.ByRoute) != 0 { + value := protoreflect.ValueOfMap(&_QueryInflightFundsResponse_5_map{m: &x.ByRoute}) + if !f(fd_QueryInflightFundsResponse_by_route, value) { + return + } + } + if len(x.ByType) != 0 { + value := protoreflect.ValueOfMap(&_QueryInflightFundsResponse_6_map{m: &x.ByType}) + if !f(fd_QueryInflightFundsResponse_by_type, value) { + return + } + } + if len(x.ByStatus) != 0 { + value := protoreflect.ValueOfMap(&_QueryInflightFundsResponse_7_map{m: &x.ByStatus}) + if !f(fd_QueryInflightFundsResponse_by_status, 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_QueryInflightFundsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds": + return len(x.InflightFunds) != 0 + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.total_inflight": + return x.TotalInflight != "" + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_deployment": + return x.PendingDeployment != "" + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_withdrawal_distribution": + return x.PendingWithdrawalDistribution != "" + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route": + return len(x.ByRoute) != 0 + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type": + return len(x.ByType) != 0 + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status": + return len(x.ByStatus) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsResponse 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_QueryInflightFundsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds": + x.InflightFunds = nil + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.total_inflight": + x.TotalInflight = "" + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_deployment": + x.PendingDeployment = "" + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_withdrawal_distribution": + x.PendingWithdrawalDistribution = "" + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route": + x.ByRoute = nil + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type": + x.ByType = nil + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status": + x.ByStatus = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsResponse 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_QueryInflightFundsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds": + if len(x.InflightFunds) == 0 { + return protoreflect.ValueOfList(&_QueryInflightFundsResponse_1_list{}) + } + listValue := &_QueryInflightFundsResponse_1_list{list: &x.InflightFunds} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.total_inflight": + value := x.TotalInflight + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_deployment": + value := x.PendingDeployment + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_withdrawal_distribution": + value := x.PendingWithdrawalDistribution + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route": + if len(x.ByRoute) == 0 { + return protoreflect.ValueOfMap(&_QueryInflightFundsResponse_5_map{}) + } + mapValue := &_QueryInflightFundsResponse_5_map{m: &x.ByRoute} + return protoreflect.ValueOfMap(mapValue) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type": + if len(x.ByType) == 0 { + return protoreflect.ValueOfMap(&_QueryInflightFundsResponse_6_map{}) + } + mapValue := &_QueryInflightFundsResponse_6_map{m: &x.ByType} + return protoreflect.ValueOfMap(mapValue) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status": + if len(x.ByStatus) == 0 { + return protoreflect.ValueOfMap(&_QueryInflightFundsResponse_7_map{}) + } + mapValue := &_QueryInflightFundsResponse_7_map{m: &x.ByStatus} + return protoreflect.ValueOfMap(mapValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsResponse 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_QueryInflightFundsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds": + lv := value.List() + clv := lv.(*_QueryInflightFundsResponse_1_list) + x.InflightFunds = *clv.list + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.total_inflight": + x.TotalInflight = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_deployment": + x.PendingDeployment = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_withdrawal_distribution": + x.PendingWithdrawalDistribution = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route": + mv := value.Map() + cmv := mv.(*_QueryInflightFundsResponse_5_map) + x.ByRoute = *cmv.m + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type": + mv := value.Map() + cmv := mv.(*_QueryInflightFundsResponse_6_map) + x.ByType = *cmv.m + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status": + mv := value.Map() + cmv := mv.(*_QueryInflightFundsResponse_7_map) + x.ByStatus = *cmv.m + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsResponse 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_QueryInflightFundsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds": + if x.InflightFunds == nil { + x.InflightFunds = []*InflightFundView{} + } + value := &_QueryInflightFundsResponse_1_list{list: &x.InflightFunds} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route": + if x.ByRoute == nil { + x.ByRoute = make(map[string]string) + } + value := &_QueryInflightFundsResponse_5_map{m: &x.ByRoute} + return protoreflect.ValueOfMap(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type": + if x.ByType == nil { + x.ByType = make(map[string]string) + } + value := &_QueryInflightFundsResponse_6_map{m: &x.ByType} + return protoreflect.ValueOfMap(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status": + if x.ByStatus == nil { + x.ByStatus = make(map[string]string) + } + value := &_QueryInflightFundsResponse_7_map{m: &x.ByStatus} + return protoreflect.ValueOfMap(value) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.total_inflight": + panic(fmt.Errorf("field total_inflight of message noble.dollar.vaults.v2.QueryInflightFundsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_deployment": + panic(fmt.Errorf("field pending_deployment of message noble.dollar.vaults.v2.QueryInflightFundsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_withdrawal_distribution": + panic(fmt.Errorf("field pending_withdrawal_distribution of message noble.dollar.vaults.v2.QueryInflightFundsResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsResponse 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_QueryInflightFundsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds": + list := []*InflightFundView{} + return protoreflect.ValueOfList(&_QueryInflightFundsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.total_inflight": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_deployment": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.pending_withdrawal_distribution": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route": + m := make(map[string]string) + return protoreflect.ValueOfMap(&_QueryInflightFundsResponse_5_map{m: &m}) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type": + m := make(map[string]string) + return protoreflect.ValueOfMap(&_QueryInflightFundsResponse_6_map{m: &m}) + case "noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status": + m := make(map[string]string) + return protoreflect.ValueOfMap(&_QueryInflightFundsResponse_7_map{m: &m}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryInflightFundsResponse 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_QueryInflightFundsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryInflightFundsResponse", 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_QueryInflightFundsResponse) 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_QueryInflightFundsResponse) 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_QueryInflightFundsResponse) 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_QueryInflightFundsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryInflightFundsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.InflightFunds) > 0 { + for _, e := range x.InflightFunds { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.TotalInflight) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PendingDeployment) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PendingWithdrawalDistribution) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.ByRoute) > 0 { + SiZeMaP := func(k string, v string) { + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.ByRoute)) + for k := range x.ByRoute { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.ByRoute[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.ByRoute { + SiZeMaP(k, v) + } + } + } + if len(x.ByType) > 0 { + SiZeMaP := func(k string, v string) { + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.ByType)) + for k := range x.ByType { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.ByType[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.ByType { + SiZeMaP(k, v) + } + } + } + if len(x.ByStatus) > 0 { + SiZeMaP := func(k string, v string) { + mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) + n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) + } + if options.Deterministic { + sortme := make([]string, 0, len(x.ByStatus)) + for k := range x.ByStatus { + sortme = append(sortme, k) + } + sort.Strings(sortme) + for _, k := range sortme { + v := x.ByStatus[k] + SiZeMaP(k, v) + } + } else { + for k, v := range x.ByStatus { + SiZeMaP(k, v) + } + } + } + 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().(*QueryInflightFundsResponse) + 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 len(x.ByStatus) > 0 { + MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForByStatus := make([]string, 0, len(x.ByStatus)) + for k := range x.ByStatus { + keysForByStatus = append(keysForByStatus, string(k)) + } + sort.Slice(keysForByStatus, func(i, j int) bool { + return keysForByStatus[i] < keysForByStatus[j] + }) + for iNdEx := len(keysForByStatus) - 1; iNdEx >= 0; iNdEx-- { + v := x.ByStatus[string(keysForByStatus[iNdEx])] + out, err := MaRsHaLmAp(keysForByStatus[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.ByStatus { + v := x.ByStatus[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if len(x.ByType) > 0 { + MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForByType := make([]string, 0, len(x.ByType)) + for k := range x.ByType { + keysForByType = append(keysForByType, string(k)) + } + sort.Slice(keysForByType, func(i, j int) bool { + return keysForByType[i] < keysForByType[j] + }) + for iNdEx := len(keysForByType) - 1; iNdEx >= 0; iNdEx-- { + v := x.ByType[string(keysForByType[iNdEx])] + out, err := MaRsHaLmAp(keysForByType[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.ByType { + v := x.ByType[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if len(x.ByRoute) > 0 { + MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + return protoiface.MarshalOutput{}, nil + } + if options.Deterministic { + keysForByRoute := make([]string, 0, len(x.ByRoute)) + for k := range x.ByRoute { + keysForByRoute = append(keysForByRoute, string(k)) + } + sort.Slice(keysForByRoute, func(i, j int) bool { + return keysForByRoute[i] < keysForByRoute[j] + }) + for iNdEx := len(keysForByRoute) - 1; iNdEx >= 0; iNdEx-- { + v := x.ByRoute[string(keysForByRoute[iNdEx])] + out, err := MaRsHaLmAp(keysForByRoute[iNdEx], v) + if err != nil { + return out, err + } + } + } else { + for k := range x.ByRoute { + v := x.ByRoute[k] + out, err := MaRsHaLmAp(k, v) + if err != nil { + return out, err + } + } + } + } + if len(x.PendingWithdrawalDistribution) > 0 { + i -= len(x.PendingWithdrawalDistribution) + copy(dAtA[i:], x.PendingWithdrawalDistribution) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingWithdrawalDistribution))) + i-- + dAtA[i] = 0x22 + } + if len(x.PendingDeployment) > 0 { + i -= len(x.PendingDeployment) + copy(dAtA[i:], x.PendingDeployment) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PendingDeployment))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalInflight) > 0 { + i -= len(x.TotalInflight) + copy(dAtA[i:], x.TotalInflight) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalInflight))) + i-- + dAtA[i] = 0x12 + } + if len(x.InflightFunds) > 0 { + for iNdEx := len(x.InflightFunds) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.InflightFunds[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryInflightFundsResponse) + 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: QueryInflightFundsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInflightFundsResponse: 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 InflightFunds", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.InflightFunds = append(x.InflightFunds, &InflightFundView{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InflightFunds[len(x.InflightFunds)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalInflight", 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.TotalInflight = 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 PendingDeployment", 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.PendingDeployment = 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 PendingWithdrawalDistribution", 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.PendingWithdrawalDistribution = 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 ByRoute", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ByRoute == nil { + x.ByRoute = 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 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) + if fieldNum == 1 { + var stringLenmapkey 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++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 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++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + 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) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.ByRoute[mapkey] = mapvalue + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ByType", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ByType == nil { + x.ByType = 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 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) + if fieldNum == 1 { + var stringLenmapkey 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++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 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++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + 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) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.ByType[mapkey] = mapvalue + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ByStatus", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ByStatus == nil { + x.ByStatus = 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 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) + if fieldNum == 1 { + var stringLenmapkey 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++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapkey > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 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++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + 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) > postIndex { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + x.ByStatus[mapkey] = mapvalue + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryStaleInflightFundsRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryStaleInflightFundsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryStaleInflightFundsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryStaleInflightFundsRequest)(nil) + +type fastReflection_QueryStaleInflightFundsRequest QueryStaleInflightFundsRequest + +func (x *QueryStaleInflightFundsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStaleInflightFundsRequest)(x) +} + +func (x *QueryStaleInflightFundsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[60] + 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_QueryStaleInflightFundsRequest_messageType fastReflection_QueryStaleInflightFundsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStaleInflightFundsRequest_messageType{} + +type fastReflection_QueryStaleInflightFundsRequest_messageType struct{} + +func (x fastReflection_QueryStaleInflightFundsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStaleInflightFundsRequest)(nil) +} +func (x fastReflection_QueryStaleInflightFundsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightFundsRequest) +} +func (x fastReflection_QueryStaleInflightFundsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightFundsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryStaleInflightFundsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightFundsRequest +} + +// 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_QueryStaleInflightFundsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStaleInflightFundsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryStaleInflightFundsRequest) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightFundsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryStaleInflightFundsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStaleInflightFundsRequest)(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_QueryStaleInflightFundsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryStaleInflightFundsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsRequest 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_QueryStaleInflightFundsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsRequest 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_QueryStaleInflightFundsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsRequest 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_QueryStaleInflightFundsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsRequest 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_QueryStaleInflightFundsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsRequest 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_QueryStaleInflightFundsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsRequest 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_QueryStaleInflightFundsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryStaleInflightFundsRequest", 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_QueryStaleInflightFundsRequest) 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_QueryStaleInflightFundsRequest) 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_QueryStaleInflightFundsRequest) 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_QueryStaleInflightFundsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryStaleInflightFundsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryStaleInflightFundsRequest) + 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 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().(*QueryStaleInflightFundsRequest) + 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: QueryStaleInflightFundsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStaleInflightFundsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_StaleInflightFundView protoreflect.MessageDescriptor + fd_StaleInflightFundView_route_id protoreflect.FieldDescriptor + fd_StaleInflightFundView_transaction_id protoreflect.FieldDescriptor + fd_StaleInflightFundView_amount protoreflect.FieldDescriptor + fd_StaleInflightFundView_type protoreflect.FieldDescriptor + fd_StaleInflightFundView_source_chain protoreflect.FieldDescriptor + fd_StaleInflightFundView_destination_chain protoreflect.FieldDescriptor + fd_StaleInflightFundView_initiated_at protoreflect.FieldDescriptor + fd_StaleInflightFundView_expected_at protoreflect.FieldDescriptor + fd_StaleInflightFundView_hours_overdue protoreflect.FieldDescriptor + fd_StaleInflightFundView_last_known_status protoreflect.FieldDescriptor + fd_StaleInflightFundView_recommended_action protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_StaleInflightFundView = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("StaleInflightFundView") + fd_StaleInflightFundView_route_id = md_StaleInflightFundView.Fields().ByName("route_id") + fd_StaleInflightFundView_transaction_id = md_StaleInflightFundView.Fields().ByName("transaction_id") + fd_StaleInflightFundView_amount = md_StaleInflightFundView.Fields().ByName("amount") + fd_StaleInflightFundView_type = md_StaleInflightFundView.Fields().ByName("type") + fd_StaleInflightFundView_source_chain = md_StaleInflightFundView.Fields().ByName("source_chain") + fd_StaleInflightFundView_destination_chain = md_StaleInflightFundView.Fields().ByName("destination_chain") + fd_StaleInflightFundView_initiated_at = md_StaleInflightFundView.Fields().ByName("initiated_at") + fd_StaleInflightFundView_expected_at = md_StaleInflightFundView.Fields().ByName("expected_at") + fd_StaleInflightFundView_hours_overdue = md_StaleInflightFundView.Fields().ByName("hours_overdue") + fd_StaleInflightFundView_last_known_status = md_StaleInflightFundView.Fields().ByName("last_known_status") + fd_StaleInflightFundView_recommended_action = md_StaleInflightFundView.Fields().ByName("recommended_action") +} + +var _ protoreflect.Message = (*fastReflection_StaleInflightFundView)(nil) + +type fastReflection_StaleInflightFundView StaleInflightFundView + +func (x *StaleInflightFundView) ProtoReflect() protoreflect.Message { + return (*fastReflection_StaleInflightFundView)(x) +} + +func (x *StaleInflightFundView) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[61] + 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_StaleInflightFundView_messageType fastReflection_StaleInflightFundView_messageType +var _ protoreflect.MessageType = fastReflection_StaleInflightFundView_messageType{} + +type fastReflection_StaleInflightFundView_messageType struct{} + +func (x fastReflection_StaleInflightFundView_messageType) Zero() protoreflect.Message { + return (*fastReflection_StaleInflightFundView)(nil) +} +func (x fastReflection_StaleInflightFundView_messageType) New() protoreflect.Message { + return new(fastReflection_StaleInflightFundView) +} +func (x fastReflection_StaleInflightFundView_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_StaleInflightFundView +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_StaleInflightFundView) Descriptor() protoreflect.MessageDescriptor { + return md_StaleInflightFundView +} + +// 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_StaleInflightFundView) Type() protoreflect.MessageType { + return _fastReflection_StaleInflightFundView_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_StaleInflightFundView) New() protoreflect.Message { + return new(fastReflection_StaleInflightFundView) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_StaleInflightFundView) Interface() protoreflect.ProtoMessage { + return (*StaleInflightFundView)(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_StaleInflightFundView) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_StaleInflightFundView_route_id, value) { + return + } + } + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_StaleInflightFundView_transaction_id, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_StaleInflightFundView_amount, value) { + return + } + } + if x.Type_ != "" { + value := protoreflect.ValueOfString(x.Type_) + if !f(fd_StaleInflightFundView_type, value) { + return + } + } + if x.SourceChain != "" { + value := protoreflect.ValueOfString(x.SourceChain) + if !f(fd_StaleInflightFundView_source_chain, value) { + return + } + } + if x.DestinationChain != "" { + value := protoreflect.ValueOfString(x.DestinationChain) + if !f(fd_StaleInflightFundView_destination_chain, value) { + return + } + } + if x.InitiatedAt != nil { + value := protoreflect.ValueOfMessage(x.InitiatedAt.ProtoReflect()) + if !f(fd_StaleInflightFundView_initiated_at, value) { + return + } + } + if x.ExpectedAt != nil { + value := protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + if !f(fd_StaleInflightFundView_expected_at, value) { + return + } + } + if x.HoursOverdue != "" { + value := protoreflect.ValueOfString(x.HoursOverdue) + if !f(fd_StaleInflightFundView_hours_overdue, value) { + return + } + } + if x.LastKnownStatus != "" { + value := protoreflect.ValueOfString(x.LastKnownStatus) + if !f(fd_StaleInflightFundView_last_known_status, value) { + return + } + } + if x.RecommendedAction != "" { + value := protoreflect.ValueOfString(x.RecommendedAction) + if !f(fd_StaleInflightFundView_recommended_action, 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_StaleInflightFundView) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightFundView.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.StaleInflightFundView.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.type": + return x.Type_ != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.source_chain": + return x.SourceChain != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.destination_chain": + return x.DestinationChain != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.initiated_at": + return x.InitiatedAt != nil + case "noble.dollar.vaults.v2.StaleInflightFundView.expected_at": + return x.ExpectedAt != nil + case "noble.dollar.vaults.v2.StaleInflightFundView.hours_overdue": + return x.HoursOverdue != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.last_known_status": + return x.LastKnownStatus != "" + case "noble.dollar.vaults.v2.StaleInflightFundView.recommended_action": + return x.RecommendedAction != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightFundView 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_StaleInflightFundView) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightFundView.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.StaleInflightFundView.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.type": + x.Type_ = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.source_chain": + x.SourceChain = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.destination_chain": + x.DestinationChain = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.initiated_at": + x.InitiatedAt = nil + case "noble.dollar.vaults.v2.StaleInflightFundView.expected_at": + x.ExpectedAt = nil + case "noble.dollar.vaults.v2.StaleInflightFundView.hours_overdue": + x.HoursOverdue = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.last_known_status": + x.LastKnownStatus = "" + case "noble.dollar.vaults.v2.StaleInflightFundView.recommended_action": + x.RecommendedAction = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightFundView 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_StaleInflightFundView) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.StaleInflightFundView.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.type": + value := x.Type_ + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.source_chain": + value := x.SourceChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.destination_chain": + value := x.DestinationChain + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.initiated_at": + value := x.InitiatedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightFundView.expected_at": + value := x.ExpectedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightFundView.hours_overdue": + value := x.HoursOverdue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.last_known_status": + value := x.LastKnownStatus + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.StaleInflightFundView.recommended_action": + value := x.RecommendedAction + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightFundView 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_StaleInflightFundView) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightFundView.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.StaleInflightFundView.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.type": + x.Type_ = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.source_chain": + x.SourceChain = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.destination_chain": + x.DestinationChain = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.initiated_at": + x.InitiatedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.StaleInflightFundView.expected_at": + x.ExpectedAt = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.StaleInflightFundView.hours_overdue": + x.HoursOverdue = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.last_known_status": + x.LastKnownStatus = value.Interface().(string) + case "noble.dollar.vaults.v2.StaleInflightFundView.recommended_action": + x.RecommendedAction = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightFundView 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_StaleInflightFundView) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightFundView.initiated_at": + if x.InitiatedAt == nil { + x.InitiatedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.InitiatedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightFundView.expected_at": + if x.ExpectedAt == nil { + x.ExpectedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightFundView.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.type": + panic(fmt.Errorf("field type of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.source_chain": + panic(fmt.Errorf("field source_chain of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.destination_chain": + panic(fmt.Errorf("field destination_chain of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.hours_overdue": + panic(fmt.Errorf("field hours_overdue of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.last_known_status": + panic(fmt.Errorf("field last_known_status of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + case "noble.dollar.vaults.v2.StaleInflightFundView.recommended_action": + panic(fmt.Errorf("field recommended_action of message noble.dollar.vaults.v2.StaleInflightFundView is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightFundView 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_StaleInflightFundView) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.StaleInflightFundView.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.StaleInflightFundView.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.type": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.source_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.destination_chain": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.initiated_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightFundView.expected_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.StaleInflightFundView.hours_overdue": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.last_known_status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.StaleInflightFundView.recommended_action": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.StaleInflightFundView")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.StaleInflightFundView 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_StaleInflightFundView) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.StaleInflightFundView", 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_StaleInflightFundView) 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_StaleInflightFundView) 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_StaleInflightFundView) 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_StaleInflightFundView) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*StaleInflightFundView) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Type_) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SourceChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DestinationChain) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.InitiatedAt != nil { + l = options.Size(x.InitiatedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedAt != nil { + l = options.Size(x.ExpectedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.HoursOverdue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LastKnownStatus) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RecommendedAction) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*StaleInflightFundView) + 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 len(x.RecommendedAction) > 0 { + i -= len(x.RecommendedAction) + copy(dAtA[i:], x.RecommendedAction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecommendedAction))) + i-- + dAtA[i] = 0x5a + } + if len(x.LastKnownStatus) > 0 { + i -= len(x.LastKnownStatus) + copy(dAtA[i:], x.LastKnownStatus) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastKnownStatus))) + i-- + dAtA[i] = 0x52 + } + if len(x.HoursOverdue) > 0 { + i -= len(x.HoursOverdue) + copy(dAtA[i:], x.HoursOverdue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.HoursOverdue))) + i-- + dAtA[i] = 0x4a + } + if x.ExpectedAt != nil { + encoded, err := options.Marshal(x.ExpectedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + if x.InitiatedAt != nil { + encoded, err := options.Marshal(x.InitiatedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if len(x.DestinationChain) > 0 { + i -= len(x.DestinationChain) + copy(dAtA[i:], x.DestinationChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DestinationChain))) + i-- + dAtA[i] = 0x32 + } + if len(x.SourceChain) > 0 { + i -= len(x.SourceChain) + copy(dAtA[i:], x.SourceChain) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SourceChain))) + i-- + dAtA[i] = 0x2a + } + if len(x.Type_) > 0 { + i -= len(x.Type_) + copy(dAtA[i:], x.Type_) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_))) + i-- + dAtA[i] = 0x22 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*StaleInflightFundView) + 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: StaleInflightFundView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: StaleInflightFundView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = 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 Amount", 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.Amount = 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 Type_", 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.Type_ = 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 SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DestinationChain", 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.DestinationChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InitiatedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.InitiatedAt == nil { + x.InitiatedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InitiatedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedAt == nil { + x.ExpectedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HoursOverdue", 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.HoursOverdue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastKnownStatus", 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.LastKnownStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecommendedAction", 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.RecommendedAction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryStaleInflightFundsResponse_1_list)(nil) + +type _QueryStaleInflightFundsResponse_1_list struct { + list *[]*StaleInflightFundView +} + +func (x *_QueryStaleInflightFundsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryStaleInflightFundsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryStaleInflightFundsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StaleInflightFundView) + (*x.list)[i] = concreteValue +} + +func (x *_QueryStaleInflightFundsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StaleInflightFundView) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryStaleInflightFundsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(StaleInflightFundView) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryStaleInflightFundsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryStaleInflightFundsResponse_1_list) NewElement() protoreflect.Value { + v := new(StaleInflightFundView) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryStaleInflightFundsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryStaleInflightFundsResponse protoreflect.MessageDescriptor + fd_QueryStaleInflightFundsResponse_stale_funds protoreflect.FieldDescriptor + fd_QueryStaleInflightFundsResponse_total_stale_value protoreflect.FieldDescriptor + fd_QueryStaleInflightFundsResponse_total_stale_count protoreflect.FieldDescriptor + fd_QueryStaleInflightFundsResponse_oldest_stale_hours protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryStaleInflightFundsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryStaleInflightFundsResponse") + fd_QueryStaleInflightFundsResponse_stale_funds = md_QueryStaleInflightFundsResponse.Fields().ByName("stale_funds") + fd_QueryStaleInflightFundsResponse_total_stale_value = md_QueryStaleInflightFundsResponse.Fields().ByName("total_stale_value") + fd_QueryStaleInflightFundsResponse_total_stale_count = md_QueryStaleInflightFundsResponse.Fields().ByName("total_stale_count") + fd_QueryStaleInflightFundsResponse_oldest_stale_hours = md_QueryStaleInflightFundsResponse.Fields().ByName("oldest_stale_hours") +} + +var _ protoreflect.Message = (*fastReflection_QueryStaleInflightFundsResponse)(nil) + +type fastReflection_QueryStaleInflightFundsResponse QueryStaleInflightFundsResponse + +func (x *QueryStaleInflightFundsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStaleInflightFundsResponse)(x) +} + +func (x *QueryStaleInflightFundsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[62] + 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_QueryStaleInflightFundsResponse_messageType fastReflection_QueryStaleInflightFundsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStaleInflightFundsResponse_messageType{} + +type fastReflection_QueryStaleInflightFundsResponse_messageType struct{} + +func (x fastReflection_QueryStaleInflightFundsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStaleInflightFundsResponse)(nil) +} +func (x fastReflection_QueryStaleInflightFundsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightFundsResponse) +} +func (x fastReflection_QueryStaleInflightFundsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightFundsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryStaleInflightFundsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStaleInflightFundsResponse +} + +// 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_QueryStaleInflightFundsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStaleInflightFundsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryStaleInflightFundsResponse) New() protoreflect.Message { + return new(fastReflection_QueryStaleInflightFundsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryStaleInflightFundsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStaleInflightFundsResponse)(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_QueryStaleInflightFundsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.StaleFunds) != 0 { + value := protoreflect.ValueOfList(&_QueryStaleInflightFundsResponse_1_list{list: &x.StaleFunds}) + if !f(fd_QueryStaleInflightFundsResponse_stale_funds, value) { + return + } + } + if x.TotalStaleValue != "" { + value := protoreflect.ValueOfString(x.TotalStaleValue) + if !f(fd_QueryStaleInflightFundsResponse_total_stale_value, value) { + return + } + } + if x.TotalStaleCount != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalStaleCount) + if !f(fd_QueryStaleInflightFundsResponse_total_stale_count, value) { + return + } + } + if x.OldestStaleHours != "" { + value := protoreflect.ValueOfString(x.OldestStaleHours) + if !f(fd_QueryStaleInflightFundsResponse_oldest_stale_hours, 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_QueryStaleInflightFundsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds": + return len(x.StaleFunds) != 0 + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_value": + return x.TotalStaleValue != "" + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_count": + return x.TotalStaleCount != uint64(0) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.oldest_stale_hours": + return x.OldestStaleHours != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse 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_QueryStaleInflightFundsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds": + x.StaleFunds = nil + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_value": + x.TotalStaleValue = "" + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_count": + x.TotalStaleCount = uint64(0) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.oldest_stale_hours": + x.OldestStaleHours = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse 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_QueryStaleInflightFundsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds": + if len(x.StaleFunds) == 0 { + return protoreflect.ValueOfList(&_QueryStaleInflightFundsResponse_1_list{}) + } + listValue := &_QueryStaleInflightFundsResponse_1_list{list: &x.StaleFunds} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_value": + value := x.TotalStaleValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_count": + value := x.TotalStaleCount + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.oldest_stale_hours": + value := x.OldestStaleHours + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse 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_QueryStaleInflightFundsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds": + lv := value.List() + clv := lv.(*_QueryStaleInflightFundsResponse_1_list) + x.StaleFunds = *clv.list + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_value": + x.TotalStaleValue = value.Interface().(string) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_count": + x.TotalStaleCount = value.Uint() + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.oldest_stale_hours": + x.OldestStaleHours = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse 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_QueryStaleInflightFundsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds": + if x.StaleFunds == nil { + x.StaleFunds = []*StaleInflightFundView{} + } + value := &_QueryStaleInflightFundsResponse_1_list{list: &x.StaleFunds} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_value": + panic(fmt.Errorf("field total_stale_value of message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_count": + panic(fmt.Errorf("field total_stale_count of message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.oldest_stale_hours": + panic(fmt.Errorf("field oldest_stale_hours of message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse 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_QueryStaleInflightFundsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds": + list := []*StaleInflightFundView{} + return protoreflect.ValueOfList(&_QueryStaleInflightFundsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.total_stale_count": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.oldest_stale_hours": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryStaleInflightFundsResponse 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_QueryStaleInflightFundsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryStaleInflightFundsResponse", 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_QueryStaleInflightFundsResponse) 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_QueryStaleInflightFundsResponse) 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_QueryStaleInflightFundsResponse) 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_QueryStaleInflightFundsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryStaleInflightFundsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.StaleFunds) > 0 { + for _, e := range x.StaleFunds { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.TotalStaleValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TotalStaleCount != 0 { + n += 1 + runtime.Sov(uint64(x.TotalStaleCount)) + } + l = len(x.OldestStaleHours) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryStaleInflightFundsResponse) + 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 len(x.OldestStaleHours) > 0 { + i -= len(x.OldestStaleHours) + copy(dAtA[i:], x.OldestStaleHours) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OldestStaleHours))) + i-- + dAtA[i] = 0x22 + } + if x.TotalStaleCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalStaleCount)) + i-- + dAtA[i] = 0x18 + } + if len(x.TotalStaleValue) > 0 { + i -= len(x.TotalStaleValue) + copy(dAtA[i:], x.TotalStaleValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalStaleValue))) + i-- + dAtA[i] = 0x12 + } + if len(x.StaleFunds) > 0 { + for iNdEx := len(x.StaleFunds) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.StaleFunds[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryStaleInflightFundsResponse) + 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: QueryStaleInflightFundsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStaleInflightFundsResponse: 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 StaleFunds", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.StaleFunds = append(x.StaleFunds, &StaleInflightFundView{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StaleFunds[len(x.StaleFunds)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalStaleValue", 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.TotalStaleValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalStaleCount", wireType) + } + x.TotalStaleCount = 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.TotalStaleCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OldestStaleHours", 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.OldestStaleHours = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_QueryVaultRemotePositionsRequest protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultRemotePositionsRequest = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultRemotePositionsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultRemotePositionsRequest)(nil) + +type fastReflection_QueryVaultRemotePositionsRequest QueryVaultRemotePositionsRequest + +func (x *QueryVaultRemotePositionsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultRemotePositionsRequest)(x) +} + +func (x *QueryVaultRemotePositionsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[63] + 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_QueryVaultRemotePositionsRequest_messageType fastReflection_QueryVaultRemotePositionsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultRemotePositionsRequest_messageType{} + +type fastReflection_QueryVaultRemotePositionsRequest_messageType struct{} + +func (x fastReflection_QueryVaultRemotePositionsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultRemotePositionsRequest)(nil) +} +func (x fastReflection_QueryVaultRemotePositionsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultRemotePositionsRequest) +} +func (x fastReflection_QueryVaultRemotePositionsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultRemotePositionsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultRemotePositionsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultRemotePositionsRequest +} + +// 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_QueryVaultRemotePositionsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultRemotePositionsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultRemotePositionsRequest) New() protoreflect.Message { + return new(fastReflection_QueryVaultRemotePositionsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultRemotePositionsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryVaultRemotePositionsRequest)(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_QueryVaultRemotePositionsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_QueryVaultRemotePositionsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest 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_QueryVaultRemotePositionsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest 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_QueryVaultRemotePositionsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest 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_QueryVaultRemotePositionsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest 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_QueryVaultRemotePositionsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest 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_QueryVaultRemotePositionsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest 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_QueryVaultRemotePositionsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest", 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_QueryVaultRemotePositionsRequest) 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_QueryVaultRemotePositionsRequest) 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_QueryVaultRemotePositionsRequest) 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_QueryVaultRemotePositionsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultRemotePositionsRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*QueryVaultRemotePositionsRequest) + 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 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().(*QueryVaultRemotePositionsRequest) + 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: QueryVaultRemotePositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultRemotePositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_VaultRemotePosition protoreflect.MessageDescriptor + fd_VaultRemotePosition_position_id protoreflect.FieldDescriptor + fd_VaultRemotePosition_vault_address protoreflect.FieldDescriptor + fd_VaultRemotePosition_chain_id protoreflect.FieldDescriptor + fd_VaultRemotePosition_shares_held protoreflect.FieldDescriptor + fd_VaultRemotePosition_share_price protoreflect.FieldDescriptor + fd_VaultRemotePosition_principal protoreflect.FieldDescriptor + fd_VaultRemotePosition_current_value protoreflect.FieldDescriptor + fd_VaultRemotePosition_apy protoreflect.FieldDescriptor + fd_VaultRemotePosition_status protoreflect.FieldDescriptor + fd_VaultRemotePosition_last_update protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_VaultRemotePosition = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("VaultRemotePosition") + fd_VaultRemotePosition_position_id = md_VaultRemotePosition.Fields().ByName("position_id") + fd_VaultRemotePosition_vault_address = md_VaultRemotePosition.Fields().ByName("vault_address") + fd_VaultRemotePosition_chain_id = md_VaultRemotePosition.Fields().ByName("chain_id") + fd_VaultRemotePosition_shares_held = md_VaultRemotePosition.Fields().ByName("shares_held") + fd_VaultRemotePosition_share_price = md_VaultRemotePosition.Fields().ByName("share_price") + fd_VaultRemotePosition_principal = md_VaultRemotePosition.Fields().ByName("principal") + fd_VaultRemotePosition_current_value = md_VaultRemotePosition.Fields().ByName("current_value") + fd_VaultRemotePosition_apy = md_VaultRemotePosition.Fields().ByName("apy") + fd_VaultRemotePosition_status = md_VaultRemotePosition.Fields().ByName("status") + fd_VaultRemotePosition_last_update = md_VaultRemotePosition.Fields().ByName("last_update") +} + +var _ protoreflect.Message = (*fastReflection_VaultRemotePosition)(nil) + +type fastReflection_VaultRemotePosition VaultRemotePosition + +func (x *VaultRemotePosition) ProtoReflect() protoreflect.Message { + return (*fastReflection_VaultRemotePosition)(x) +} + +func (x *VaultRemotePosition) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[64] + 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_VaultRemotePosition_messageType fastReflection_VaultRemotePosition_messageType +var _ protoreflect.MessageType = fastReflection_VaultRemotePosition_messageType{} + +type fastReflection_VaultRemotePosition_messageType struct{} + +func (x fastReflection_VaultRemotePosition_messageType) Zero() protoreflect.Message { + return (*fastReflection_VaultRemotePosition)(nil) +} +func (x fastReflection_VaultRemotePosition_messageType) New() protoreflect.Message { + return new(fastReflection_VaultRemotePosition) +} +func (x fastReflection_VaultRemotePosition_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_VaultRemotePosition +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_VaultRemotePosition) Descriptor() protoreflect.MessageDescriptor { + return md_VaultRemotePosition +} + +// 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_VaultRemotePosition) Type() protoreflect.MessageType { + return _fastReflection_VaultRemotePosition_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_VaultRemotePosition) New() protoreflect.Message { + return new(fastReflection_VaultRemotePosition) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_VaultRemotePosition) Interface() protoreflect.ProtoMessage { + return (*VaultRemotePosition)(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_VaultRemotePosition) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_VaultRemotePosition_position_id, value) { + return + } + } + if x.VaultAddress != "" { + value := protoreflect.ValueOfString(x.VaultAddress) + if !f(fd_VaultRemotePosition_vault_address, value) { + return + } + } + if x.ChainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.ChainId) + if !f(fd_VaultRemotePosition_chain_id, value) { + return + } + } + if x.SharesHeld != "" { + value := protoreflect.ValueOfString(x.SharesHeld) + if !f(fd_VaultRemotePosition_shares_held, value) { + return + } + } + if x.SharePrice != "" { + value := protoreflect.ValueOfString(x.SharePrice) + if !f(fd_VaultRemotePosition_share_price, value) { + return + } + } + if x.Principal != "" { + value := protoreflect.ValueOfString(x.Principal) + if !f(fd_VaultRemotePosition_principal, value) { + return + } + } + if x.CurrentValue != "" { + value := protoreflect.ValueOfString(x.CurrentValue) + if !f(fd_VaultRemotePosition_current_value, value) { + return + } + } + if x.Apy != "" { + value := protoreflect.ValueOfString(x.Apy) + if !f(fd_VaultRemotePosition_apy, value) { + return + } + } + if x.Status != "" { + value := protoreflect.ValueOfString(x.Status) + if !f(fd_VaultRemotePosition_status, value) { + return + } + } + if x.LastUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + if !f(fd_VaultRemotePosition_last_update, 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_VaultRemotePosition) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultRemotePosition.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.VaultRemotePosition.vault_address": + return x.VaultAddress != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.chain_id": + return x.ChainId != uint32(0) + case "noble.dollar.vaults.v2.VaultRemotePosition.shares_held": + return x.SharesHeld != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.share_price": + return x.SharePrice != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.principal": + return x.Principal != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.current_value": + return x.CurrentValue != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.apy": + return x.Apy != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.status": + return x.Status != "" + case "noble.dollar.vaults.v2.VaultRemotePosition.last_update": + return x.LastUpdate != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultRemotePosition 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_VaultRemotePosition) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultRemotePosition.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.VaultRemotePosition.vault_address": + x.VaultAddress = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.chain_id": + x.ChainId = uint32(0) + case "noble.dollar.vaults.v2.VaultRemotePosition.shares_held": + x.SharesHeld = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.share_price": + x.SharePrice = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.principal": + x.Principal = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.current_value": + x.CurrentValue = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.apy": + x.Apy = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.status": + x.Status = "" + case "noble.dollar.vaults.v2.VaultRemotePosition.last_update": + x.LastUpdate = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultRemotePosition 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_VaultRemotePosition) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.VaultRemotePosition.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.vault_address": + value := x.VaultAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.chain_id": + value := x.ChainId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.shares_held": + value := x.SharesHeld + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.share_price": + value := x.SharePrice + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.principal": + value := x.Principal + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.current_value": + value := x.CurrentValue + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.apy": + value := x.Apy + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.status": + value := x.Status + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultRemotePosition.last_update": + value := x.LastUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultRemotePosition 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_VaultRemotePosition) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultRemotePosition.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.VaultRemotePosition.vault_address": + x.VaultAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.chain_id": + x.ChainId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.VaultRemotePosition.shares_held": + x.SharesHeld = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.share_price": + x.SharePrice = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.principal": + x.Principal = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.current_value": + x.CurrentValue = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.apy": + x.Apy = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.status": + x.Status = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultRemotePosition.last_update": + x.LastUpdate = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultRemotePosition 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_VaultRemotePosition) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultRemotePosition.last_update": + if x.LastUpdate == nil { + x.LastUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.VaultRemotePosition.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.vault_address": + panic(fmt.Errorf("field vault_address of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.chain_id": + panic(fmt.Errorf("field chain_id of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.shares_held": + panic(fmt.Errorf("field shares_held of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.share_price": + panic(fmt.Errorf("field share_price of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.principal": + panic(fmt.Errorf("field principal of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.current_value": + panic(fmt.Errorf("field current_value of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.apy": + panic(fmt.Errorf("field apy of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.VaultRemotePosition.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.VaultRemotePosition is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultRemotePosition 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_VaultRemotePosition) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultRemotePosition.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.VaultRemotePosition.vault_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.chain_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.VaultRemotePosition.shares_held": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.share_price": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.principal": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.current_value": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.apy": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.status": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultRemotePosition.last_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultRemotePosition 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_VaultRemotePosition) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.VaultRemotePosition", 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_VaultRemotePosition) 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_VaultRemotePosition) 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_VaultRemotePosition) 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_VaultRemotePosition) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*VaultRemotePosition) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.VaultAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChainId != 0 { + n += 1 + runtime.Sov(uint64(x.ChainId)) + } + l = len(x.SharesHeld) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharePrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Principal) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CurrentValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Apy) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Status) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastUpdate != nil { + l = options.Size(x.LastUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*VaultRemotePosition) + 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.LastUpdate != nil { + encoded, err := options.Marshal(x.LastUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x52 + } + if len(x.Status) > 0 { + i -= len(x.Status) + copy(dAtA[i:], x.Status) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status))) + i-- + dAtA[i] = 0x4a + } + if len(x.Apy) > 0 { + i -= len(x.Apy) + copy(dAtA[i:], x.Apy) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Apy))) + i-- + dAtA[i] = 0x42 + } + if len(x.CurrentValue) > 0 { + i -= len(x.CurrentValue) + copy(dAtA[i:], x.CurrentValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CurrentValue))) + i-- + dAtA[i] = 0x3a + } + if len(x.Principal) > 0 { + i -= len(x.Principal) + copy(dAtA[i:], x.Principal) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Principal))) + i-- + dAtA[i] = 0x32 + } + if len(x.SharePrice) > 0 { + i -= len(x.SharePrice) + copy(dAtA[i:], x.SharePrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharePrice))) + i-- + dAtA[i] = 0x2a + } + if len(x.SharesHeld) > 0 { + i -= len(x.SharesHeld) + copy(dAtA[i:], x.SharesHeld) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesHeld))) + i-- + dAtA[i] = 0x22 + } + if x.ChainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChainId)) + i-- + dAtA[i] = 0x18 + } + if len(x.VaultAddress) > 0 { + i -= len(x.VaultAddress) + copy(dAtA[i:], x.VaultAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VaultAddress))) + i-- + dAtA[i] = 0x12 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*VaultRemotePosition) + 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: VaultRemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VaultRemotePosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VaultAddress", 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.VaultAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + x.ChainId = 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.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", 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.SharesHeld = 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 SharePrice", 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.SharePrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Principal", 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.Principal = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Apy", 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.Apy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastUpdate == nil { + x.LastUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var _ protoreflect.List = (*_QueryVaultRemotePositionsResponse_1_list)(nil) + +type _QueryVaultRemotePositionsResponse_1_list struct { + list *[]*VaultRemotePosition +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*VaultRemotePosition) + (*x.list)[i] = concreteValue +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*VaultRemotePosition) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(VaultRemotePosition) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) NewElement() protoreflect.Value { + v := new(VaultRemotePosition) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryVaultRemotePositionsResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryVaultRemotePositionsResponse protoreflect.MessageDescriptor + fd_QueryVaultRemotePositionsResponse_positions protoreflect.FieldDescriptor + fd_QueryVaultRemotePositionsResponse_total_positions protoreflect.FieldDescriptor + fd_QueryVaultRemotePositionsResponse_total_value protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_query_proto_init() + md_QueryVaultRemotePositionsResponse = File_noble_dollar_vaults_v2_query_proto.Messages().ByName("QueryVaultRemotePositionsResponse") + fd_QueryVaultRemotePositionsResponse_positions = md_QueryVaultRemotePositionsResponse.Fields().ByName("positions") + fd_QueryVaultRemotePositionsResponse_total_positions = md_QueryVaultRemotePositionsResponse.Fields().ByName("total_positions") + fd_QueryVaultRemotePositionsResponse_total_value = md_QueryVaultRemotePositionsResponse.Fields().ByName("total_value") +} + +var _ protoreflect.Message = (*fastReflection_QueryVaultRemotePositionsResponse)(nil) + +type fastReflection_QueryVaultRemotePositionsResponse QueryVaultRemotePositionsResponse + +func (x *QueryVaultRemotePositionsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVaultRemotePositionsResponse)(x) +} + +func (x *QueryVaultRemotePositionsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[65] + 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_QueryVaultRemotePositionsResponse_messageType fastReflection_QueryVaultRemotePositionsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryVaultRemotePositionsResponse_messageType{} + +type fastReflection_QueryVaultRemotePositionsResponse_messageType struct{} + +func (x fastReflection_QueryVaultRemotePositionsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVaultRemotePositionsResponse)(nil) +} +func (x fastReflection_QueryVaultRemotePositionsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVaultRemotePositionsResponse) +} +func (x fastReflection_QueryVaultRemotePositionsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultRemotePositionsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryVaultRemotePositionsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVaultRemotePositionsResponse +} + +// 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_QueryVaultRemotePositionsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryVaultRemotePositionsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryVaultRemotePositionsResponse) New() protoreflect.Message { + return new(fastReflection_QueryVaultRemotePositionsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryVaultRemotePositionsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryVaultRemotePositionsResponse)(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_QueryVaultRemotePositionsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Positions) != 0 { + value := protoreflect.ValueOfList(&_QueryVaultRemotePositionsResponse_1_list{list: &x.Positions}) + if !f(fd_QueryVaultRemotePositionsResponse_positions, value) { + return + } + } + if x.TotalPositions != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalPositions) + if !f(fd_QueryVaultRemotePositionsResponse_total_positions, value) { + return + } + } + if x.TotalValue != "" { + value := protoreflect.ValueOfString(x.TotalValue) + if !f(fd_QueryVaultRemotePositionsResponse_total_value, 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_QueryVaultRemotePositionsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions": + return len(x.Positions) != 0 + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_positions": + return x.TotalPositions != uint64(0) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_value": + return x.TotalValue != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse 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_QueryVaultRemotePositionsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions": + x.Positions = nil + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_positions": + x.TotalPositions = uint64(0) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_value": + x.TotalValue = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse 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_QueryVaultRemotePositionsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions": + if len(x.Positions) == 0 { + return protoreflect.ValueOfList(&_QueryVaultRemotePositionsResponse_1_list{}) + } + listValue := &_QueryVaultRemotePositionsResponse_1_list{list: &x.Positions} + return protoreflect.ValueOfList(listValue) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_positions": + value := x.TotalPositions + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_value": + value := x.TotalValue + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse 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_QueryVaultRemotePositionsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions": + lv := value.List() + clv := lv.(*_QueryVaultRemotePositionsResponse_1_list) + x.Positions = *clv.list + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_positions": + x.TotalPositions = value.Uint() + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_value": + x.TotalValue = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse 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_QueryVaultRemotePositionsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions": + if x.Positions == nil { + x.Positions = []*VaultRemotePosition{} + } + value := &_QueryVaultRemotePositionsResponse_1_list{list: &x.Positions} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_positions": + panic(fmt.Errorf("field total_positions of message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse is not mutable")) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_value": + panic(fmt.Errorf("field total_value of message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse 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_QueryVaultRemotePositionsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions": + list := []*VaultRemotePosition{} + return protoreflect.ValueOfList(&_QueryVaultRemotePositionsResponse_1_list{list: &list}) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_positions": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.total_value": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse 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_QueryVaultRemotePositionsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse", 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_QueryVaultRemotePositionsResponse) 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_QueryVaultRemotePositionsResponse) 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_QueryVaultRemotePositionsResponse) 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_QueryVaultRemotePositionsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryVaultRemotePositionsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Positions) > 0 { + for _, e := range x.Positions { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.TotalPositions != 0 { + n += 1 + runtime.Sov(uint64(x.TotalPositions)) + } + l = len(x.TotalValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*QueryVaultRemotePositionsResponse) + 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 len(x.TotalValue) > 0 { + i -= len(x.TotalValue) + copy(dAtA[i:], x.TotalValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalValue))) + i-- + dAtA[i] = 0x1a + } + if x.TotalPositions != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalPositions)) + i-- + dAtA[i] = 0x10 + } + if len(x.Positions) > 0 { + for iNdEx := len(x.Positions) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Positions[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + 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().(*QueryVaultRemotePositionsResponse) + 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: QueryVaultRemotePositionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVaultRemotePositionsResponse: 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 Positions", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.Positions = append(x.Positions, &VaultRemotePosition{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Positions[len(x.Positions)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalPositions", wireType) + } + x.TotalPositions = 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.TotalPositions |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalValue", 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.TotalValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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: noble/dollar/vaults/v2/query.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) +) + +// QueryVaultInfoRequest requests information about a specific vault +type QueryVaultInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryVaultInfoRequest) Reset() { + *x = QueryVaultInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultInfoRequest) ProtoMessage() {} + +// Deprecated: Use QueryVaultInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryVaultInfoRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{0} +} + +// QueryVaultInfoResponse returns vault information +type QueryVaultInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Config *VaultConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + TotalDeposits string `protobuf:"bytes,2,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + TotalAccruedYield string `protobuf:"bytes,3,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + TotalNav string `protobuf:"bytes,4,opt,name=total_nav,json=totalNav,proto3" json:"total_nav,omitempty"` + TotalDepositors uint64 `protobuf:"varint,5,opt,name=total_depositors,json=totalDepositors,proto3" json:"total_depositors,omitempty"` +} + +func (x *QueryVaultInfoResponse) Reset() { + *x = QueryVaultInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryVaultInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryVaultInfoResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryVaultInfoResponse) GetConfig() *VaultConfig { + if x != nil { + return x.Config + } + return nil +} + +func (x *QueryVaultInfoResponse) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *QueryVaultInfoResponse) GetTotalAccruedYield() string { + if x != nil { + return x.TotalAccruedYield + } + return "" +} + +func (x *QueryVaultInfoResponse) GetTotalNav() string { + if x != nil { + return x.TotalNav + } + return "" +} + +func (x *QueryVaultInfoResponse) GetTotalDepositors() uint64 { + if x != nil { + return x.TotalDepositors + } + return 0 +} + +// QueryAllVaultsRequest requests information about all vaults +type QueryAllVaultsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllVaultsRequest) Reset() { + *x = QueryAllVaultsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllVaultsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllVaultsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllVaultsRequest.ProtoReflect.Descriptor instead. +func (*QueryAllVaultsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryAllVaultsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllVaultsResponse returns information about all vaults +type QueryAllVaultsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Vaults []*QueryVaultInfoResponse `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllVaultsResponse) Reset() { + *x = QueryAllVaultsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllVaultsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllVaultsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllVaultsResponse.ProtoReflect.Descriptor instead. +func (*QueryAllVaultsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryAllVaultsResponse) GetVaults() []*QueryVaultInfoResponse { + if x != nil { + return x.Vaults + } + return nil +} + +func (x *QueryAllVaultsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryVaultRequest requests information about all vaults +type QueryVaultRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryVaultRequest) Reset() { + *x = QueryVaultRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultRequest) ProtoMessage() {} + +// Deprecated: Use QueryVaultRequest.ProtoReflect.Descriptor instead. +func (*QueryVaultRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{4} +} + +// QueryVaultResponse returns information about all vaults +type QueryVaultResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Vaults []*QueryVaultInfoResponse `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults,omitempty"` +} + +func (x *QueryVaultResponse) Reset() { + *x = QueryVaultResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultResponse) ProtoMessage() {} + +// Deprecated: Use QueryVaultResponse.ProtoReflect.Descriptor instead. +func (*QueryVaultResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryVaultResponse) GetVaults() []*QueryVaultInfoResponse { + if x != nil { + return x.Vaults + } + return nil +} + +// QueryUserPositionRequest requests a user's position in a specific vault +type QueryUserPositionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QueryUserPositionRequest) Reset() { + *x = QueryUserPositionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserPositionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserPositionRequest) ProtoMessage() {} + +// Deprecated: Use QueryUserPositionRequest.ProtoReflect.Descriptor instead. +func (*QueryUserPositionRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{6} +} + +func (x *QueryUserPositionRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +// QueryUserPositionResponse returns a user's position +type QueryUserPositionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Position *UserPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` + CurrentValue string `protobuf:"bytes,2,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + UnrealizedYield string `protobuf:"bytes,3,opt,name=unrealized_yield,json=unrealizedYield,proto3" json:"unrealized_yield,omitempty"` +} + +func (x *QueryUserPositionResponse) Reset() { + *x = QueryUserPositionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserPositionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserPositionResponse) ProtoMessage() {} + +// Deprecated: Use QueryUserPositionResponse.ProtoReflect.Descriptor instead. +func (*QueryUserPositionResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryUserPositionResponse) GetPosition() *UserPosition { + if x != nil { + return x.Position + } + return nil +} + +func (x *QueryUserPositionResponse) GetCurrentValue() string { + if x != nil { + return x.CurrentValue + } + return "" +} + +func (x *QueryUserPositionResponse) GetUnrealizedYield() string { + if x != nil { + return x.UnrealizedYield + } + return "" +} + +// QueryUserPositionsRequest requests all of a user's positions +type QueryUserPositionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryUserPositionsRequest) Reset() { + *x = QueryUserPositionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserPositionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserPositionsRequest) ProtoMessage() {} + +// Deprecated: Use QueryUserPositionsRequest.ProtoReflect.Descriptor instead. +func (*QueryUserPositionsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryUserPositionsRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryUserPositionsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryUserPositionsResponse returns all of a user's positions +type QueryUserPositionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Positions []*UserPositionWithVault `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryUserPositionsResponse) Reset() { + *x = QueryUserPositionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserPositionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserPositionsResponse) ProtoMessage() {} + +// Deprecated: Use QueryUserPositionsResponse.ProtoReflect.Descriptor instead. +func (*QueryUserPositionsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryUserPositionsResponse) GetPositions() []*UserPositionWithVault { + if x != nil { + return x.Positions + } + return nil +} + +func (x *QueryUserPositionsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// UserPositionWithVault includes the vault type with the position +type UserPositionWithVault struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Position *UserPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` + CurrentValue string `protobuf:"bytes,2,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` +} + +func (x *UserPositionWithVault) Reset() { + *x = UserPositionWithVault{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserPositionWithVault) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserPositionWithVault) ProtoMessage() {} + +// Deprecated: Use UserPositionWithVault.ProtoReflect.Descriptor instead. +func (*UserPositionWithVault) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{10} +} + +func (x *UserPositionWithVault) GetPosition() *UserPosition { + if x != nil { + return x.Position + } + return nil +} + +func (x *UserPositionWithVault) GetCurrentValue() string { + if x != nil { + return x.CurrentValue + } + return "" +} + +// QueryYieldInfoRequest requests the yield information for a vault +type QueryYieldInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryYieldInfoRequest) Reset() { + *x = QueryYieldInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryYieldInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryYieldInfoRequest) ProtoMessage() {} + +// Deprecated: Use QueryYieldInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryYieldInfoRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{11} +} + +// QueryYieldInfoResponse returns the yield information +type QueryYieldInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + YieldRate string `protobuf:"bytes,1,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` // APY as decimal + TotalDeposits string `protobuf:"bytes,2,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + TotalAccruedYield string `protobuf:"bytes,3,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + TotalNav string `protobuf:"bytes,4,opt,name=total_nav,json=totalNav,proto3" json:"total_nav,omitempty"` +} + +func (x *QueryYieldInfoResponse) Reset() { + *x = QueryYieldInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryYieldInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryYieldInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryYieldInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryYieldInfoResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{12} +} + +func (x *QueryYieldInfoResponse) GetYieldRate() string { + if x != nil { + return x.YieldRate + } + return "" +} + +func (x *QueryYieldInfoResponse) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *QueryYieldInfoResponse) GetTotalAccruedYield() string { + if x != nil { + return x.TotalAccruedYield + } + return "" +} + +func (x *QueryYieldInfoResponse) GetTotalNav() string { + if x != nil { + return x.TotalNav + } + return "" +} + +// QueryVaultStatsRequest requests statistics for the primary V2 vault +type QueryVaultStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryVaultStatsRequest) Reset() { + *x = QueryVaultStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultStatsRequest) ProtoMessage() {} + +// Deprecated: Use QueryVaultStatsRequest.ProtoReflect.Descriptor instead. +func (*QueryVaultStatsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{13} +} + +// QueryVaultStatsResponse returns statistics for the primary V2 vault +type QueryVaultStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Stats *VaultStatsEntry `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *QueryVaultStatsResponse) Reset() { + *x = QueryVaultStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultStatsResponse) ProtoMessage() {} + +// Deprecated: Use QueryVaultStatsResponse.ProtoReflect.Descriptor instead. +func (*QueryVaultStatsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{14} +} + +func (x *QueryVaultStatsResponse) GetStats() *VaultStatsEntry { + if x != nil { + return x.Stats + } + return nil +} + +// QueryStatsRequest requests statistics for a vault +type QueryStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryStatsRequest) Reset() { + *x = QueryStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryStatsRequest) ProtoMessage() {} + +// Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead. +func (*QueryStatsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{15} +} + +// QueryStatsResponse returns vault statistics +type QueryStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Stats *VaultStatsEntry `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *QueryStatsResponse) Reset() { + *x = QueryStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryStatsResponse) ProtoMessage() {} + +// Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead. +func (*QueryStatsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{16} +} + +func (x *QueryStatsResponse) GetStats() *VaultStatsEntry { + if x != nil { + return x.Stats + } + return nil +} + +// QueryAllStatsRequest requests statistics for all vaults +type QueryAllStatsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryAllStatsRequest) Reset() { + *x = QueryAllStatsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllStatsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllStatsRequest) ProtoMessage() {} + +// Deprecated: Use QueryAllStatsRequest.ProtoReflect.Descriptor instead. +func (*QueryAllStatsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{17} +} + +func (x *QueryAllStatsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryAllStatsResponse returns statistics for the vault +type QueryAllStatsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Stats *VaultStatsEntry `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *QueryAllStatsResponse) Reset() { + *x = QueryAllStatsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAllStatsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAllStatsResponse) ProtoMessage() {} + +// Deprecated: Use QueryAllStatsResponse.ProtoReflect.Descriptor instead. +func (*QueryAllStatsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{18} +} + +func (x *QueryAllStatsResponse) GetStats() *VaultStatsEntry { + if x != nil { + return x.Stats + } + return nil +} + +// QueryParamsRequest requests module parameters +type QueryParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryParamsRequest) Reset() { + *x = QueryParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsRequest) ProtoMessage() {} + +// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{19} +} + +// QueryParamsResponse returns module parameters +type QueryParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *QueryParamsResponse) Reset() { + *x = QueryParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsResponse) ProtoMessage() {} + +// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{20} +} + +func (x *QueryParamsResponse) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// QueryCrossChainRoutesRequest requests all cross-chain routes +type QueryCrossChainRoutesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryCrossChainRoutesRequest) Reset() { + *x = QueryCrossChainRoutesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCrossChainRoutesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCrossChainRoutesRequest) ProtoMessage() {} + +// Deprecated: Use QueryCrossChainRoutesRequest.ProtoReflect.Descriptor instead. +func (*QueryCrossChainRoutesRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{21} +} + +func (x *QueryCrossChainRoutesRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryCrossChainRoutesResponse returns all cross-chain routes +type QueryCrossChainRoutesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Routes []*CrossChainRoute `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryCrossChainRoutesResponse) Reset() { + *x = QueryCrossChainRoutesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCrossChainRoutesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCrossChainRoutesResponse) ProtoMessage() {} + +// Deprecated: Use QueryCrossChainRoutesResponse.ProtoReflect.Descriptor instead. +func (*QueryCrossChainRoutesResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{22} +} + +func (x *QueryCrossChainRoutesResponse) GetRoutes() []*CrossChainRoute { + if x != nil { + return x.Routes + } + return nil +} + +func (x *QueryCrossChainRoutesResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryCrossChainRouteRequest requests a specific cross-chain route +type QueryCrossChainRouteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` +} + +func (x *QueryCrossChainRouteRequest) Reset() { + *x = QueryCrossChainRouteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCrossChainRouteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCrossChainRouteRequest) ProtoMessage() {} + +// Deprecated: Use QueryCrossChainRouteRequest.ProtoReflect.Descriptor instead. +func (*QueryCrossChainRouteRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{23} +} + +func (x *QueryCrossChainRouteRequest) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +// QueryCrossChainRouteResponse returns a specific cross-chain route +type QueryCrossChainRouteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Route *CrossChainRoute `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` +} + +func (x *QueryCrossChainRouteResponse) Reset() { + *x = QueryCrossChainRouteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCrossChainRouteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCrossChainRouteResponse) ProtoMessage() {} + +// Deprecated: Use QueryCrossChainRouteResponse.ProtoReflect.Descriptor instead. +func (*QueryCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{24} +} + +func (x *QueryCrossChainRouteResponse) GetRoute() *CrossChainRoute { + if x != nil { + return x.Route + } + return nil +} + +// QueryRemotePositionRequest requests a user's remote position on a route +type QueryRemotePositionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QueryRemotePositionRequest) Reset() { + *x = QueryRemotePositionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemotePositionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemotePositionRequest) ProtoMessage() {} + +// Deprecated: Use QueryRemotePositionRequest.ProtoReflect.Descriptor instead. +func (*QueryRemotePositionRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{25} +} + +func (x *QueryRemotePositionRequest) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *QueryRemotePositionRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +// QueryRemotePositionResponse returns a user's remote position +type QueryRemotePositionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Position *RemotePosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` +} + +func (x *QueryRemotePositionResponse) Reset() { + *x = QueryRemotePositionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemotePositionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemotePositionResponse) ProtoMessage() {} + +// Deprecated: Use QueryRemotePositionResponse.ProtoReflect.Descriptor instead. +func (*QueryRemotePositionResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{26} +} + +func (x *QueryRemotePositionResponse) GetPosition() *RemotePosition { + if x != nil { + return x.Position + } + return nil +} + +// QueryRemotePositionsRequest requests all remote positions for a user +type QueryRemotePositionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRemotePositionsRequest) Reset() { + *x = QueryRemotePositionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemotePositionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemotePositionsRequest) ProtoMessage() {} + +// Deprecated: Use QueryRemotePositionsRequest.ProtoReflect.Descriptor instead. +func (*QueryRemotePositionsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{27} +} + +func (x *QueryRemotePositionsRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryRemotePositionsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryRemotePositionsResponse returns all remote positions for a user +type QueryRemotePositionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Positions []*RemotePositionWithRoute `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryRemotePositionsResponse) Reset() { + *x = QueryRemotePositionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryRemotePositionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryRemotePositionsResponse) ProtoMessage() {} + +// Deprecated: Use QueryRemotePositionsResponse.ProtoReflect.Descriptor instead. +func (*QueryRemotePositionsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{28} +} + +func (x *QueryRemotePositionsResponse) GetPositions() []*RemotePositionWithRoute { + if x != nil { + return x.Positions + } + return nil +} + +func (x *QueryRemotePositionsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// RemotePositionWithRoute includes the route ID with the position +type RemotePositionWithRoute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + Position *RemotePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` +} + +func (x *RemotePositionWithRoute) Reset() { + *x = RemotePositionWithRoute{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemotePositionWithRoute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemotePositionWithRoute) ProtoMessage() {} + +// Deprecated: Use RemotePositionWithRoute.ProtoReflect.Descriptor instead. +func (*RemotePositionWithRoute) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{29} +} + +func (x *RemotePositionWithRoute) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *RemotePositionWithRoute) GetPosition() *RemotePosition { + if x != nil { + return x.Position + } + return nil +} + +// QueryInflightFundRequest requests an in-flight operation +type QueryInflightFundRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` +} + +func (x *QueryInflightFundRequest) Reset() { + *x = QueryInflightFundRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryInflightFundRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryInflightFundRequest) ProtoMessage() {} + +// Deprecated: Use QueryInflightFundRequest.ProtoReflect.Descriptor instead. +func (*QueryInflightFundRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{30} +} + +func (x *QueryInflightFundRequest) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +// QueryInflightFundResponse returns an in-flight operation +type QueryInflightFundResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fund *InflightFund `protobuf:"bytes,1,opt,name=fund,proto3" json:"fund,omitempty"` +} + +func (x *QueryInflightFundResponse) Reset() { + *x = QueryInflightFundResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryInflightFundResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryInflightFundResponse) ProtoMessage() {} + +// Deprecated: Use QueryInflightFundResponse.ProtoReflect.Descriptor instead. +func (*QueryInflightFundResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{31} +} + +func (x *QueryInflightFundResponse) GetFund() *InflightFund { + if x != nil { + return x.Fund + } + return nil +} + +// QueryInflightFundsUserRequest requests all in-flight operations for a user +type QueryInflightFundsUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryInflightFundsUserRequest) Reset() { + *x = QueryInflightFundsUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryInflightFundsUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryInflightFundsUserRequest) ProtoMessage() {} + +// Deprecated: Use QueryInflightFundsUserRequest.ProtoReflect.Descriptor instead. +func (*QueryInflightFundsUserRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{32} +} + +func (x *QueryInflightFundsUserRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryInflightFundsUserRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryInflightFundsUserResponse returns all in-flight operations for a user +type QueryInflightFundsUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Funds []*InflightFund `protobuf:"bytes,1,rep,name=funds,proto3" json:"funds,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryInflightFundsUserResponse) Reset() { + *x = QueryInflightFundsUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryInflightFundsUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryInflightFundsUserResponse) ProtoMessage() {} + +// Deprecated: Use QueryInflightFundsUserResponse.ProtoReflect.Descriptor instead. +func (*QueryInflightFundsUserResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{33} +} + +func (x *QueryInflightFundsUserResponse) GetFunds() []*InflightFund { + if x != nil { + return x.Funds + } + return nil +} + +func (x *QueryInflightFundsUserResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryCrossChainSnapshotRequest requests cross-chain snapshot for a vault +type QueryCrossChainSnapshotRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Optional: specific timestamp, 0 for latest +} + +func (x *QueryCrossChainSnapshotRequest) Reset() { + *x = QueryCrossChainSnapshotRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCrossChainSnapshotRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCrossChainSnapshotRequest) ProtoMessage() {} + +// Deprecated: Use QueryCrossChainSnapshotRequest.ProtoReflect.Descriptor instead. +func (*QueryCrossChainSnapshotRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{34} +} + +func (x *QueryCrossChainSnapshotRequest) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +// QueryCrossChainSnapshotResponse returns cross-chain snapshot +type QueryCrossChainSnapshotResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Snapshot *CrossChainPositionSnapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` +} + +func (x *QueryCrossChainSnapshotResponse) Reset() { + *x = QueryCrossChainSnapshotResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryCrossChainSnapshotResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryCrossChainSnapshotResponse) ProtoMessage() {} + +// Deprecated: Use QueryCrossChainSnapshotResponse.ProtoReflect.Descriptor instead. +func (*QueryCrossChainSnapshotResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{35} +} + +func (x *QueryCrossChainSnapshotResponse) GetSnapshot() *CrossChainPositionSnapshot { + if x != nil { + return x.Snapshot + } + return nil +} + +// QueryStaleInflightAlertsRequest requests stale inflight alerts +type QueryStaleInflightAlertsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` // Optional: filter by route + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // Optional: filter by user + Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryStaleInflightAlertsRequest) Reset() { + *x = QueryStaleInflightAlertsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryStaleInflightAlertsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryStaleInflightAlertsRequest) ProtoMessage() {} + +// Deprecated: Use QueryStaleInflightAlertsRequest.ProtoReflect.Descriptor instead. +func (*QueryStaleInflightAlertsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{36} +} + +func (x *QueryStaleInflightAlertsRequest) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *QueryStaleInflightAlertsRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryStaleInflightAlertsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryStaleInflightAlertsResponse returns stale inflight alerts +type QueryStaleInflightAlertsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alerts []*StaleInflightAlertWithDetails `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryStaleInflightAlertsResponse) Reset() { + *x = QueryStaleInflightAlertsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryStaleInflightAlertsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryStaleInflightAlertsResponse) ProtoMessage() {} + +// Deprecated: Use QueryStaleInflightAlertsResponse.ProtoReflect.Descriptor instead. +func (*QueryStaleInflightAlertsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{37} +} + +func (x *QueryStaleInflightAlertsResponse) GetAlerts() []*StaleInflightAlertWithDetails { + if x != nil { + return x.Alerts + } + return nil +} + +func (x *QueryStaleInflightAlertsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// StaleInflightAlertWithDetails includes additional context with the alert +type StaleInflightAlertWithDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alert *StaleInflightAlert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"` + Route *CrossChainRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` + Fund *InflightFund `protobuf:"bytes,3,opt,name=fund,proto3" json:"fund,omitempty"` +} + +func (x *StaleInflightAlertWithDetails) Reset() { + *x = StaleInflightAlertWithDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StaleInflightAlertWithDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StaleInflightAlertWithDetails) ProtoMessage() {} + +// Deprecated: Use StaleInflightAlertWithDetails.ProtoReflect.Descriptor instead. +func (*StaleInflightAlertWithDetails) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{38} +} + +func (x *StaleInflightAlertWithDetails) GetAlert() *StaleInflightAlert { + if x != nil { + return x.Alert + } + return nil +} + +func (x *StaleInflightAlertWithDetails) GetRoute() *CrossChainRoute { + if x != nil { + return x.Route + } + return nil +} + +func (x *StaleInflightAlertWithDetails) GetFund() *InflightFund { + if x != nil { + return x.Fund + } + return nil +} + +// NAV (spec-aligned) +type QueryNAVRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryNAVRequest) Reset() { + *x = QueryNAVRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryNAVRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryNAVRequest) ProtoMessage() {} + +// Deprecated: Use QueryNAVRequest.ProtoReflect.Descriptor instead. +func (*QueryNAVRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{39} +} + +type NAVBreakdownView struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Local string `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"` + RemotePositions string `protobuf:"bytes,2,opt,name=remote_positions,json=remotePositions,proto3" json:"remote_positions,omitempty"` + Inflight string `protobuf:"bytes,3,opt,name=inflight,proto3" json:"inflight,omitempty"` + Liabilities string `protobuf:"bytes,4,opt,name=liabilities,proto3" json:"liabilities,omitempty"` + Total string `protobuf:"bytes,5,opt,name=total,proto3" json:"total,omitempty"` +} + +func (x *NAVBreakdownView) Reset() { + *x = NAVBreakdownView{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVBreakdownView) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVBreakdownView) ProtoMessage() {} + +// Deprecated: Use NAVBreakdownView.ProtoReflect.Descriptor instead. +func (*NAVBreakdownView) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{40} +} + +func (x *NAVBreakdownView) GetLocal() string { + if x != nil { + return x.Local + } + return "" +} + +func (x *NAVBreakdownView) GetRemotePositions() string { + if x != nil { + return x.RemotePositions + } + return "" +} + +func (x *NAVBreakdownView) GetInflight() string { + if x != nil { + return x.Inflight + } + return "" +} + +func (x *NAVBreakdownView) GetLiabilities() string { + if x != nil { + return x.Liabilities + } + return "" +} + +func (x *NAVBreakdownView) GetTotal() string { + if x != nil { + return x.Total + } + return "" +} + +type QueryNAVResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nav string `protobuf:"bytes,1,opt,name=nav,proto3" json:"nav,omitempty"` // Total Net Asset Value ($USDN) + YieldRate string `protobuf:"bytes,2,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` // APY as Dec string + LastUpdate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` + TotalDeposits string `protobuf:"bytes,4,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + TotalAccruedYield string `protobuf:"bytes,5,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + LocalAssets string `protobuf:"bytes,6,opt,name=local_assets,json=localAssets,proto3" json:"local_assets,omitempty"` + RemotePositionsValue string `protobuf:"bytes,7,opt,name=remote_positions_value,json=remotePositionsValue,proto3" json:"remote_positions_value,omitempty"` + InflightFundsValue string `protobuf:"bytes,8,opt,name=inflight_funds_value,json=inflightFundsValue,proto3" json:"inflight_funds_value,omitempty"` + PendingWithdrawals string `protobuf:"bytes,9,opt,name=pending_withdrawals,json=pendingWithdrawals,proto3" json:"pending_withdrawals,omitempty"` + NavBreakdown *NAVBreakdownView `protobuf:"bytes,10,opt,name=nav_breakdown,json=navBreakdown,proto3" json:"nav_breakdown,omitempty"` +} + +func (x *QueryNAVResponse) Reset() { + *x = QueryNAVResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryNAVResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryNAVResponse) ProtoMessage() {} + +// Deprecated: Use QueryNAVResponse.ProtoReflect.Descriptor instead. +func (*QueryNAVResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{41} +} + +func (x *QueryNAVResponse) GetNav() string { + if x != nil { + return x.Nav + } + return "" +} + +func (x *QueryNAVResponse) GetYieldRate() string { + if x != nil { + return x.YieldRate + } + return "" +} + +func (x *QueryNAVResponse) GetLastUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdate + } + return nil +} + +func (x *QueryNAVResponse) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *QueryNAVResponse) GetTotalAccruedYield() string { + if x != nil { + return x.TotalAccruedYield + } + return "" +} + +func (x *QueryNAVResponse) GetLocalAssets() string { + if x != nil { + return x.LocalAssets + } + return "" +} + +func (x *QueryNAVResponse) GetRemotePositionsValue() string { + if x != nil { + return x.RemotePositionsValue + } + return "" +} + +func (x *QueryNAVResponse) GetInflightFundsValue() string { + if x != nil { + return x.InflightFundsValue + } + return "" +} + +func (x *QueryNAVResponse) GetPendingWithdrawals() string { + if x != nil { + return x.PendingWithdrawals + } + return "" +} + +func (x *QueryNAVResponse) GetNavBreakdown() *NAVBreakdownView { + if x != nil { + return x.NavBreakdown + } + return nil +} + +// Withdrawal queue views +type QueryWithdrawalQueueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryWithdrawalQueueRequest) Reset() { + *x = QueryWithdrawalQueueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryWithdrawalQueueRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryWithdrawalQueueRequest) ProtoMessage() {} + +// Deprecated: Use QueryWithdrawalQueueRequest.ProtoReflect.Descriptor instead. +func (*QueryWithdrawalQueueRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{42} +} + +func (x *QueryWithdrawalQueueRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type WithdrawalQueueItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // principal + yield + PrincipalAmount string `protobuf:"bytes,4,opt,name=principal_amount,json=principalAmount,proto3" json:"principal_amount,omitempty"` + YieldAmount string `protobuf:"bytes,5,opt,name=yield_amount,json=yieldAmount,proto3" json:"yield_amount,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` // PENDING, PROCESSING, CLAIMABLE, CLAIMED + Position uint64 `protobuf:"varint,8,opt,name=position,proto3" json:"position,omitempty"` // queue position (optional) +} + +func (x *WithdrawalQueueItem) Reset() { + *x = WithdrawalQueueItem{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WithdrawalQueueItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WithdrawalQueueItem) ProtoMessage() {} + +// Deprecated: Use WithdrawalQueueItem.ProtoReflect.Descriptor instead. +func (*WithdrawalQueueItem) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{43} +} + +func (x *WithdrawalQueueItem) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *WithdrawalQueueItem) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *WithdrawalQueueItem) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *WithdrawalQueueItem) GetPrincipalAmount() string { + if x != nil { + return x.PrincipalAmount + } + return "" +} + +func (x *WithdrawalQueueItem) GetYieldAmount() string { + if x != nil { + return x.YieldAmount + } + return "" +} + +func (x *WithdrawalQueueItem) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *WithdrawalQueueItem) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *WithdrawalQueueItem) GetPosition() uint64 { + if x != nil { + return x.Position + } + return 0 +} + +type QueryWithdrawalQueueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PendingRequests []*WithdrawalQueueItem `protobuf:"bytes,1,rep,name=pending_requests,json=pendingRequests,proto3" json:"pending_requests,omitempty"` + TotalPending string `protobuf:"bytes,2,opt,name=total_pending,json=totalPending,proto3" json:"total_pending,omitempty"` + AvailableLiquidity string `protobuf:"bytes,3,opt,name=available_liquidity,json=availableLiquidity,proto3" json:"available_liquidity,omitempty"` + QueueLength uint64 `protobuf:"varint,4,opt,name=queue_length,json=queueLength,proto3" json:"queue_length,omitempty"` + EstimatedProcessingTime string `protobuf:"bytes,5,opt,name=estimated_processing_time,json=estimatedProcessingTime,proto3" json:"estimated_processing_time,omitempty"` // seconds + Pagination *v1beta1.PageResponse `protobuf:"bytes,6,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryWithdrawalQueueResponse) Reset() { + *x = QueryWithdrawalQueueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryWithdrawalQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryWithdrawalQueueResponse) ProtoMessage() {} + +// Deprecated: Use QueryWithdrawalQueueResponse.ProtoReflect.Descriptor instead. +func (*QueryWithdrawalQueueResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{44} +} + +func (x *QueryWithdrawalQueueResponse) GetPendingRequests() []*WithdrawalQueueItem { + if x != nil { + return x.PendingRequests + } + return nil +} + +func (x *QueryWithdrawalQueueResponse) GetTotalPending() string { + if x != nil { + return x.TotalPending + } + return "" +} + +func (x *QueryWithdrawalQueueResponse) GetAvailableLiquidity() string { + if x != nil { + return x.AvailableLiquidity + } + return "" +} + +func (x *QueryWithdrawalQueueResponse) GetQueueLength() uint64 { + if x != nil { + return x.QueueLength + } + return 0 +} + +func (x *QueryWithdrawalQueueResponse) GetEstimatedProcessingTime() string { + if x != nil { + return x.EstimatedProcessingTime + } + return "" +} + +func (x *QueryWithdrawalQueueResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// User withdrawals +type QueryUserWithdrawalsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryUserWithdrawalsRequest) Reset() { + *x = QueryUserWithdrawalsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserWithdrawalsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserWithdrawalsRequest) ProtoMessage() {} + +// Deprecated: Use QueryUserWithdrawalsRequest.ProtoReflect.Descriptor instead. +func (*QueryUserWithdrawalsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{45} +} + +func (x *QueryUserWithdrawalsRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *QueryUserWithdrawalsRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +type WithdrawalStatusItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // total amount (principal + yield) + PrincipalAmount string `protobuf:"bytes,3,opt,name=principal_amount,json=principalAmount,proto3" json:"principal_amount,omitempty"` + YieldAmount string `protobuf:"bytes,4,opt,name=yield_amount,json=yieldAmount,proto3" json:"yield_amount,omitempty"` + FulfilledAmount string `protobuf:"bytes,5,opt,name=fulfilled_amount,json=fulfilledAmount,proto3" json:"fulfilled_amount,omitempty"` + Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // CLAIMABLE, CLAIMED, PENDING, etc. + Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + ClaimableAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=claimable_at,json=claimableAt,proto3" json:"claimable_at,omitempty"` + ClaimedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=claimed_at,json=claimedAt,proto3" json:"claimed_at,omitempty"` +} + +func (x *WithdrawalStatusItem) Reset() { + *x = WithdrawalStatusItem{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WithdrawalStatusItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WithdrawalStatusItem) ProtoMessage() {} + +// Deprecated: Use WithdrawalStatusItem.ProtoReflect.Descriptor instead. +func (*WithdrawalStatusItem) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{46} +} + +func (x *WithdrawalStatusItem) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *WithdrawalStatusItem) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *WithdrawalStatusItem) GetPrincipalAmount() string { + if x != nil { + return x.PrincipalAmount + } + return "" +} + +func (x *WithdrawalStatusItem) GetYieldAmount() string { + if x != nil { + return x.YieldAmount + } + return "" +} + +func (x *WithdrawalStatusItem) GetFulfilledAmount() string { + if x != nil { + return x.FulfilledAmount + } + return "" +} + +func (x *WithdrawalStatusItem) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *WithdrawalStatusItem) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *WithdrawalStatusItem) GetClaimableAt() *timestamppb.Timestamp { + if x != nil { + return x.ClaimableAt + } + return nil +} + +func (x *WithdrawalStatusItem) GetClaimedAt() *timestamppb.Timestamp { + if x != nil { + return x.ClaimedAt + } + return nil +} + +type QueryUserWithdrawalsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Withdrawals []*WithdrawalStatusItem `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals,omitempty"` + TotalPending string `protobuf:"bytes,2,opt,name=total_pending,json=totalPending,proto3" json:"total_pending,omitempty"` + TotalClaimable string `protobuf:"bytes,3,opt,name=total_claimable,json=totalClaimable,proto3" json:"total_claimable,omitempty"` + TotalClaimed string `protobuf:"bytes,4,opt,name=total_claimed,json=totalClaimed,proto3" json:"total_claimed,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryUserWithdrawalsResponse) Reset() { + *x = QueryUserWithdrawalsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserWithdrawalsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserWithdrawalsResponse) ProtoMessage() {} + +// Deprecated: Use QueryUserWithdrawalsResponse.ProtoReflect.Descriptor instead. +func (*QueryUserWithdrawalsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{47} +} + +func (x *QueryUserWithdrawalsResponse) GetWithdrawals() []*WithdrawalStatusItem { + if x != nil { + return x.Withdrawals + } + return nil +} + +func (x *QueryUserWithdrawalsResponse) GetTotalPending() string { + if x != nil { + return x.TotalPending + } + return "" +} + +func (x *QueryUserWithdrawalsResponse) GetTotalClaimable() string { + if x != nil { + return x.TotalClaimable + } + return "" +} + +func (x *QueryUserWithdrawalsResponse) GetTotalClaimed() string { + if x != nil { + return x.TotalClaimed + } + return "" +} + +func (x *QueryUserWithdrawalsResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// User balance +type QueryUserBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QueryUserBalanceRequest) Reset() { + *x = QueryUserBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserBalanceRequest) ProtoMessage() {} + +// Deprecated: Use QueryUserBalanceRequest.ProtoReflect.Descriptor instead. +func (*QueryUserBalanceRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{48} +} + +func (x *QueryUserBalanceRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type QueryUserBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DepositAmount string `protobuf:"bytes,1,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` // principal + AccruedYield string `protobuf:"bytes,2,opt,name=accrued_yield,json=accruedYield,proto3" json:"accrued_yield,omitempty"` + TotalValue string `protobuf:"bytes,3,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` // deposit + yield + UnrealizedGain string `protobuf:"bytes,4,opt,name=unrealized_gain,json=unrealizedGain,proto3" json:"unrealized_gain,omitempty"` + LockedAmount string `protobuf:"bytes,5,opt,name=locked_amount,json=lockedAmount,proto3" json:"locked_amount,omitempty"` // amount in withdrawal queue +} + +func (x *QueryUserBalanceResponse) Reset() { + *x = QueryUserBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryUserBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryUserBalanceResponse) ProtoMessage() {} + +// Deprecated: Use QueryUserBalanceResponse.ProtoReflect.Descriptor instead. +func (*QueryUserBalanceResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{49} +} + +func (x *QueryUserBalanceResponse) GetDepositAmount() string { + if x != nil { + return x.DepositAmount + } + return "" +} + +func (x *QueryUserBalanceResponse) GetAccruedYield() string { + if x != nil { + return x.AccruedYield + } + return "" +} + +func (x *QueryUserBalanceResponse) GetTotalValue() string { + if x != nil { + return x.TotalValue + } + return "" +} + +func (x *QueryUserBalanceResponse) GetUnrealizedGain() string { + if x != nil { + return x.UnrealizedGain + } + return "" +} + +func (x *QueryUserBalanceResponse) GetLockedAmount() string { + if x != nil { + return x.LockedAmount + } + return "" +} + +// Deposit velocity +type QueryDepositVelocityRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QueryDepositVelocityRequest) Reset() { + *x = QueryDepositVelocityRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDepositVelocityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDepositVelocityRequest) ProtoMessage() {} + +// Deprecated: Use QueryDepositVelocityRequest.ProtoReflect.Descriptor instead. +func (*QueryDepositVelocityRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{50} +} + +func (x *QueryDepositVelocityRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type QueryDepositVelocityResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + LastDepositBlock string `protobuf:"bytes,2,opt,name=last_deposit_block,json=lastDepositBlock,proto3" json:"last_deposit_block,omitempty"` + RecentDepositCount uint32 `protobuf:"varint,3,opt,name=recent_deposit_count,json=recentDepositCount,proto3" json:"recent_deposit_count,omitempty"` + RecentDepositVolume string `protobuf:"bytes,4,opt,name=recent_deposit_volume,json=recentDepositVolume,proto3" json:"recent_deposit_volume,omitempty"` + TimeWindowBlocks int64 `protobuf:"varint,5,opt,name=time_window_blocks,json=timeWindowBlocks,proto3" json:"time_window_blocks,omitempty"` + SuspiciousActivityFlag bool `protobuf:"varint,6,opt,name=suspicious_activity_flag,json=suspiciousActivityFlag,proto3" json:"suspicious_activity_flag,omitempty"` + CooldownRemainingBlocks int64 `protobuf:"varint,7,opt,name=cooldown_remaining_blocks,json=cooldownRemainingBlocks,proto3" json:"cooldown_remaining_blocks,omitempty"` + VelocityScore string `protobuf:"bytes,8,opt,name=velocity_score,json=velocityScore,proto3" json:"velocity_score,omitempty"` // Dec string +} + +func (x *QueryDepositVelocityResponse) Reset() { + *x = QueryDepositVelocityResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDepositVelocityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDepositVelocityResponse) ProtoMessage() {} + +// Deprecated: Use QueryDepositVelocityResponse.ProtoReflect.Descriptor instead. +func (*QueryDepositVelocityResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{51} +} + +func (x *QueryDepositVelocityResponse) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *QueryDepositVelocityResponse) GetLastDepositBlock() string { + if x != nil { + return x.LastDepositBlock + } + return "" +} + +func (x *QueryDepositVelocityResponse) GetRecentDepositCount() uint32 { + if x != nil { + return x.RecentDepositCount + } + return 0 +} + +func (x *QueryDepositVelocityResponse) GetRecentDepositVolume() string { + if x != nil { + return x.RecentDepositVolume + } + return "" +} + +func (x *QueryDepositVelocityResponse) GetTimeWindowBlocks() int64 { + if x != nil { + return x.TimeWindowBlocks + } + return 0 +} + +func (x *QueryDepositVelocityResponse) GetSuspiciousActivityFlag() bool { + if x != nil { + return x.SuspiciousActivityFlag + } + return false +} + +func (x *QueryDepositVelocityResponse) GetCooldownRemainingBlocks() int64 { + if x != nil { + return x.CooldownRemainingBlocks + } + return 0 +} + +func (x *QueryDepositVelocityResponse) GetVelocityScore() string { + if x != nil { + return x.VelocityScore + } + return "" +} + +// Simulations +type QuerySimulateDepositRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QuerySimulateDepositRequest) Reset() { + *x = QuerySimulateDepositRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuerySimulateDepositRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySimulateDepositRequest) ProtoMessage() {} + +// Deprecated: Use QuerySimulateDepositRequest.ProtoReflect.Descriptor instead. +func (*QuerySimulateDepositRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{52} +} + +func (x *QuerySimulateDepositRequest) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *QuerySimulateDepositRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type CheckResultsView struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WithinUserLimit bool `protobuf:"varint,1,opt,name=within_user_limit,json=withinUserLimit,proto3" json:"within_user_limit,omitempty"` + WithinBlockLimit bool `protobuf:"varint,2,opt,name=within_block_limit,json=withinBlockLimit,proto3" json:"within_block_limit,omitempty"` + WithinTotalLimit bool `protobuf:"varint,3,opt,name=within_total_limit,json=withinTotalLimit,proto3" json:"within_total_limit,omitempty"` + CooldownPassed bool `protobuf:"varint,4,opt,name=cooldown_passed,json=cooldownPassed,proto3" json:"cooldown_passed,omitempty"` + VelocityCheckPassed bool `protobuf:"varint,5,opt,name=velocity_check_passed,json=velocityCheckPassed,proto3" json:"velocity_check_passed,omitempty"` +} + +func (x *CheckResultsView) Reset() { + *x = CheckResultsView{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckResultsView) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckResultsView) ProtoMessage() {} + +// Deprecated: Use CheckResultsView.ProtoReflect.Descriptor instead. +func (*CheckResultsView) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{53} +} + +func (x *CheckResultsView) GetWithinUserLimit() bool { + if x != nil { + return x.WithinUserLimit + } + return false +} + +func (x *CheckResultsView) GetWithinBlockLimit() bool { + if x != nil { + return x.WithinBlockLimit + } + return false +} + +func (x *CheckResultsView) GetWithinTotalLimit() bool { + if x != nil { + return x.WithinTotalLimit + } + return false +} + +func (x *CheckResultsView) GetCooldownPassed() bool { + if x != nil { + return x.CooldownPassed + } + return false +} + +func (x *CheckResultsView) GetVelocityCheckPassed() bool { + if x != nil { + return x.VelocityCheckPassed + } + return false +} + +type QuerySimulateDepositResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExpectedDeposit string `protobuf:"bytes,1,opt,name=expected_deposit,json=expectedDeposit,proto3" json:"expected_deposit,omitempty"` // amount after fees + YieldRate string `protobuf:"bytes,2,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` // current APY + Checks *CheckResultsView `protobuf:"bytes,3,opt,name=checks,proto3" json:"checks,omitempty"` + Warnings []string `protobuf:"bytes,4,rep,name=warnings,proto3" json:"warnings,omitempty"` +} + +func (x *QuerySimulateDepositResponse) Reset() { + *x = QuerySimulateDepositResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuerySimulateDepositResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySimulateDepositResponse) ProtoMessage() {} + +// Deprecated: Use QuerySimulateDepositResponse.ProtoReflect.Descriptor instead. +func (*QuerySimulateDepositResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{54} +} + +func (x *QuerySimulateDepositResponse) GetExpectedDeposit() string { + if x != nil { + return x.ExpectedDeposit + } + return "" +} + +func (x *QuerySimulateDepositResponse) GetYieldRate() string { + if x != nil { + return x.YieldRate + } + return "" +} + +func (x *QuerySimulateDepositResponse) GetChecks() *CheckResultsView { + if x != nil { + return x.Checks + } + return nil +} + +func (x *QuerySimulateDepositResponse) GetWarnings() []string { + if x != nil { + return x.Warnings + } + return nil +} + +type QuerySimulateWithdrawalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // amount to withdraw + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *QuerySimulateWithdrawalRequest) Reset() { + *x = QuerySimulateWithdrawalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuerySimulateWithdrawalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySimulateWithdrawalRequest) ProtoMessage() {} + +// Deprecated: Use QuerySimulateWithdrawalRequest.ProtoReflect.Descriptor instead. +func (*QuerySimulateWithdrawalRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{55} +} + +func (x *QuerySimulateWithdrawalRequest) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *QuerySimulateWithdrawalRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +type QuerySimulateWithdrawalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExpectedAmount string `protobuf:"bytes,1,opt,name=expected_amount,json=expectedAmount,proto3" json:"expected_amount,omitempty"` // total to receive after fees + PrincipalPortion string `protobuf:"bytes,2,opt,name=principal_portion,json=principalPortion,proto3" json:"principal_portion,omitempty"` + YieldPortion string `protobuf:"bytes,3,opt,name=yield_portion,json=yieldPortion,proto3" json:"yield_portion,omitempty"` + QueuePosition uint64 `protobuf:"varint,4,opt,name=queue_position,json=queuePosition,proto3" json:"queue_position,omitempty"` + EstimatedFulfillmentTime string `protobuf:"bytes,5,opt,name=estimated_fulfillment_time,json=estimatedFulfillmentTime,proto3" json:"estimated_fulfillment_time,omitempty"` // seconds + AvailableLiquidity string `protobuf:"bytes,6,opt,name=available_liquidity,json=availableLiquidity,proto3" json:"available_liquidity,omitempty"` + AheadInQueue string `protobuf:"bytes,7,opt,name=ahead_in_queue,json=aheadInQueue,proto3" json:"ahead_in_queue,omitempty"` +} + +func (x *QuerySimulateWithdrawalResponse) Reset() { + *x = QuerySimulateWithdrawalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuerySimulateWithdrawalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySimulateWithdrawalResponse) ProtoMessage() {} + +// Deprecated: Use QuerySimulateWithdrawalResponse.ProtoReflect.Descriptor instead. +func (*QuerySimulateWithdrawalResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{56} +} + +func (x *QuerySimulateWithdrawalResponse) GetExpectedAmount() string { + if x != nil { + return x.ExpectedAmount + } + return "" +} + +func (x *QuerySimulateWithdrawalResponse) GetPrincipalPortion() string { + if x != nil { + return x.PrincipalPortion + } + return "" +} + +func (x *QuerySimulateWithdrawalResponse) GetYieldPortion() string { + if x != nil { + return x.YieldPortion + } + return "" +} + +func (x *QuerySimulateWithdrawalResponse) GetQueuePosition() uint64 { + if x != nil { + return x.QueuePosition + } + return 0 +} + +func (x *QuerySimulateWithdrawalResponse) GetEstimatedFulfillmentTime() string { + if x != nil { + return x.EstimatedFulfillmentTime + } + return "" +} + +func (x *QuerySimulateWithdrawalResponse) GetAvailableLiquidity() string { + if x != nil { + return x.AvailableLiquidity + } + return "" +} + +func (x *QuerySimulateWithdrawalResponse) GetAheadInQueue() string { + if x != nil { + return x.AheadInQueue + } + return "" +} + +// Inflight funds aggregates +type QueryInflightFundsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryInflightFundsRequest) Reset() { + *x = QueryInflightFundsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryInflightFundsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryInflightFundsRequest) ProtoMessage() {} + +// Deprecated: Use QueryInflightFundsRequest.ProtoReflect.Descriptor instead. +func (*QueryInflightFundsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{57} +} + +type InflightFundView struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + Type_ string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // DEPOSIT_TO_POSITION, WITHDRAWAL_FROM_POSITION, etc. + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + CurrentValue string `protobuf:"bytes,5,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + SourceChain string `protobuf:"bytes,6,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + DestinationChain string `protobuf:"bytes,7,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"` + SourcePositionId uint64 `protobuf:"varint,8,opt,name=source_position_id,json=sourcePositionId,proto3" json:"source_position_id,omitempty"` + DestinationPositionId uint64 `protobuf:"varint,9,opt,name=destination_position_id,json=destinationPositionId,proto3" json:"destination_position_id,omitempty"` + InitiatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=initiated_at,json=initiatedAt,proto3" json:"initiated_at,omitempty"` + ExpectedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=expected_at,json=expectedAt,proto3" json:"expected_at,omitempty"` + Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` // PENDING, CONFIRMED, COMPLETED, FAILED + TimeRemaining string `protobuf:"bytes,13,opt,name=time_remaining,json=timeRemaining,proto3" json:"time_remaining,omitempty"` // seconds +} + +func (x *InflightFundView) Reset() { + *x = InflightFundView{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InflightFundView) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InflightFundView) ProtoMessage() {} + +// Deprecated: Use InflightFundView.ProtoReflect.Descriptor instead. +func (*InflightFundView) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{58} +} + +func (x *InflightFundView) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *InflightFundView) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *InflightFundView) GetType_() string { + if x != nil { + return x.Type_ + } + return "" +} + +func (x *InflightFundView) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *InflightFundView) GetCurrentValue() string { + if x != nil { + return x.CurrentValue + } + return "" +} + +func (x *InflightFundView) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *InflightFundView) GetDestinationChain() string { + if x != nil { + return x.DestinationChain + } + return "" +} + +func (x *InflightFundView) GetSourcePositionId() uint64 { + if x != nil { + return x.SourcePositionId + } + return 0 +} + +func (x *InflightFundView) GetDestinationPositionId() uint64 { + if x != nil { + return x.DestinationPositionId + } + return 0 +} + +func (x *InflightFundView) GetInitiatedAt() *timestamppb.Timestamp { + if x != nil { + return x.InitiatedAt + } + return nil +} + +func (x *InflightFundView) GetExpectedAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedAt + } + return nil +} + +func (x *InflightFundView) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *InflightFundView) GetTimeRemaining() string { + if x != nil { + return x.TimeRemaining + } + return "" +} + +type QueryInflightFundsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InflightFunds []*InflightFundView `protobuf:"bytes,1,rep,name=inflight_funds,json=inflightFunds,proto3" json:"inflight_funds,omitempty"` + TotalInflight string `protobuf:"bytes,2,opt,name=total_inflight,json=totalInflight,proto3" json:"total_inflight,omitempty"` + PendingDeployment string `protobuf:"bytes,3,opt,name=pending_deployment,json=pendingDeployment,proto3" json:"pending_deployment,omitempty"` + PendingWithdrawalDistribution string `protobuf:"bytes,4,opt,name=pending_withdrawal_distribution,json=pendingWithdrawalDistribution,proto3" json:"pending_withdrawal_distribution,omitempty"` + ByRoute map[string]string `protobuf:"bytes,5,rep,name=by_route,json=byRoute,proto3" json:"by_route,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ByType map[string]string `protobuf:"bytes,6,rep,name=by_type,json=byType,proto3" json:"by_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ByStatus map[string]string `protobuf:"bytes,7,rep,name=by_status,json=byStatus,proto3" json:"by_status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *QueryInflightFundsResponse) Reset() { + *x = QueryInflightFundsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryInflightFundsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryInflightFundsResponse) ProtoMessage() {} + +// Deprecated: Use QueryInflightFundsResponse.ProtoReflect.Descriptor instead. +func (*QueryInflightFundsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{59} +} + +func (x *QueryInflightFundsResponse) GetInflightFunds() []*InflightFundView { + if x != nil { + return x.InflightFunds + } + return nil +} + +func (x *QueryInflightFundsResponse) GetTotalInflight() string { + if x != nil { + return x.TotalInflight + } + return "" +} + +func (x *QueryInflightFundsResponse) GetPendingDeployment() string { + if x != nil { + return x.PendingDeployment + } + return "" +} + +func (x *QueryInflightFundsResponse) GetPendingWithdrawalDistribution() string { + if x != nil { + return x.PendingWithdrawalDistribution + } + return "" +} + +func (x *QueryInflightFundsResponse) GetByRoute() map[string]string { + if x != nil { + return x.ByRoute + } + return nil +} + +func (x *QueryInflightFundsResponse) GetByType() map[string]string { + if x != nil { + return x.ByType + } + return nil +} + +func (x *QueryInflightFundsResponse) GetByStatus() map[string]string { + if x != nil { + return x.ByStatus + } + return nil +} + +type QueryStaleInflightFundsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryStaleInflightFundsRequest) Reset() { + *x = QueryStaleInflightFundsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryStaleInflightFundsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryStaleInflightFundsRequest) ProtoMessage() {} + +// Deprecated: Use QueryStaleInflightFundsRequest.ProtoReflect.Descriptor instead. +func (*QueryStaleInflightFundsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{60} +} + +type StaleInflightFundView struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Type_ string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + SourceChain string `protobuf:"bytes,5,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + DestinationChain string `protobuf:"bytes,6,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"` + InitiatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=initiated_at,json=initiatedAt,proto3" json:"initiated_at,omitempty"` + ExpectedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expected_at,json=expectedAt,proto3" json:"expected_at,omitempty"` + HoursOverdue string `protobuf:"bytes,9,opt,name=hours_overdue,json=hoursOverdue,proto3" json:"hours_overdue,omitempty"` + LastKnownStatus string `protobuf:"bytes,10,opt,name=last_known_status,json=lastKnownStatus,proto3" json:"last_known_status,omitempty"` + RecommendedAction string `protobuf:"bytes,11,opt,name=recommended_action,json=recommendedAction,proto3" json:"recommended_action,omitempty"` +} + +func (x *StaleInflightFundView) Reset() { + *x = StaleInflightFundView{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StaleInflightFundView) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StaleInflightFundView) ProtoMessage() {} + +// Deprecated: Use StaleInflightFundView.ProtoReflect.Descriptor instead. +func (*StaleInflightFundView) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{61} +} + +func (x *StaleInflightFundView) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *StaleInflightFundView) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *StaleInflightFundView) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *StaleInflightFundView) GetType_() string { + if x != nil { + return x.Type_ + } + return "" +} + +func (x *StaleInflightFundView) GetSourceChain() string { + if x != nil { + return x.SourceChain + } + return "" +} + +func (x *StaleInflightFundView) GetDestinationChain() string { + if x != nil { + return x.DestinationChain + } + return "" +} + +func (x *StaleInflightFundView) GetInitiatedAt() *timestamppb.Timestamp { + if x != nil { + return x.InitiatedAt + } + return nil +} + +func (x *StaleInflightFundView) GetExpectedAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedAt + } + return nil +} + +func (x *StaleInflightFundView) GetHoursOverdue() string { + if x != nil { + return x.HoursOverdue + } + return "" +} + +func (x *StaleInflightFundView) GetLastKnownStatus() string { + if x != nil { + return x.LastKnownStatus + } + return "" +} + +func (x *StaleInflightFundView) GetRecommendedAction() string { + if x != nil { + return x.RecommendedAction + } + return "" +} + +type QueryStaleInflightFundsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StaleFunds []*StaleInflightFundView `protobuf:"bytes,1,rep,name=stale_funds,json=staleFunds,proto3" json:"stale_funds,omitempty"` + TotalStaleValue string `protobuf:"bytes,2,opt,name=total_stale_value,json=totalStaleValue,proto3" json:"total_stale_value,omitempty"` + TotalStaleCount uint64 `protobuf:"varint,3,opt,name=total_stale_count,json=totalStaleCount,proto3" json:"total_stale_count,omitempty"` + OldestStaleHours string `protobuf:"bytes,4,opt,name=oldest_stale_hours,json=oldestStaleHours,proto3" json:"oldest_stale_hours,omitempty"` +} + +func (x *QueryStaleInflightFundsResponse) Reset() { + *x = QueryStaleInflightFundsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryStaleInflightFundsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryStaleInflightFundsResponse) ProtoMessage() {} + +// Deprecated: Use QueryStaleInflightFundsResponse.ProtoReflect.Descriptor instead. +func (*QueryStaleInflightFundsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{62} +} + +func (x *QueryStaleInflightFundsResponse) GetStaleFunds() []*StaleInflightFundView { + if x != nil { + return x.StaleFunds + } + return nil +} + +func (x *QueryStaleInflightFundsResponse) GetTotalStaleValue() string { + if x != nil { + return x.TotalStaleValue + } + return "" +} + +func (x *QueryStaleInflightFundsResponse) GetTotalStaleCount() uint64 { + if x != nil { + return x.TotalStaleCount + } + return 0 +} + +func (x *QueryStaleInflightFundsResponse) GetOldestStaleHours() string { + if x != nil { + return x.OldestStaleHours + } + return "" +} + +// Vault-wide remote positions +type QueryVaultRemotePositionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryVaultRemotePositionsRequest) Reset() { + *x = QueryVaultRemotePositionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultRemotePositionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultRemotePositionsRequest) ProtoMessage() {} + +// Deprecated: Use QueryVaultRemotePositionsRequest.ProtoReflect.Descriptor instead. +func (*QueryVaultRemotePositionsRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{63} +} + +type VaultRemotePosition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + VaultAddress string `protobuf:"bytes,2,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + SharesHeld string `protobuf:"bytes,4,opt,name=shares_held,json=sharesHeld,proto3" json:"shares_held,omitempty"` + SharePrice string `protobuf:"bytes,5,opt,name=share_price,json=sharePrice,proto3" json:"share_price,omitempty"` + Principal string `protobuf:"bytes,6,opt,name=principal,proto3" json:"principal,omitempty"` + CurrentValue string `protobuf:"bytes,7,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + Apy string `protobuf:"bytes,8,opt,name=apy,proto3" json:"apy,omitempty"` // Dec string + Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` // ACTIVE, WITHDRAWING, CLOSED + LastUpdate *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` +} + +func (x *VaultRemotePosition) Reset() { + *x = VaultRemotePosition{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VaultRemotePosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VaultRemotePosition) ProtoMessage() {} + +// Deprecated: Use VaultRemotePosition.ProtoReflect.Descriptor instead. +func (*VaultRemotePosition) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{64} +} + +func (x *VaultRemotePosition) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *VaultRemotePosition) GetVaultAddress() string { + if x != nil { + return x.VaultAddress + } + return "" +} + +func (x *VaultRemotePosition) GetChainId() uint32 { + if x != nil { + return x.ChainId + } + return 0 +} + +func (x *VaultRemotePosition) GetSharesHeld() string { + if x != nil { + return x.SharesHeld + } + return "" +} + +func (x *VaultRemotePosition) GetSharePrice() string { + if x != nil { + return x.SharePrice + } + return "" +} + +func (x *VaultRemotePosition) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +func (x *VaultRemotePosition) GetCurrentValue() string { + if x != nil { + return x.CurrentValue + } + return "" +} + +func (x *VaultRemotePosition) GetApy() string { + if x != nil { + return x.Apy + } + return "" +} + +func (x *VaultRemotePosition) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *VaultRemotePosition) GetLastUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastUpdate + } + return nil +} + +type QueryVaultRemotePositionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Positions []*VaultRemotePosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` + TotalPositions uint64 `protobuf:"varint,2,opt,name=total_positions,json=totalPositions,proto3" json:"total_positions,omitempty"` + TotalValue string `protobuf:"bytes,3,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` +} + +func (x *QueryVaultRemotePositionsResponse) Reset() { + *x = QueryVaultRemotePositionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_query_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryVaultRemotePositionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryVaultRemotePositionsResponse) ProtoMessage() {} + +// Deprecated: Use QueryVaultRemotePositionsResponse.ProtoReflect.Descriptor instead. +func (*QueryVaultRemotePositionsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_query_proto_rawDescGZIP(), []int{65} +} + +func (x *QueryVaultRemotePositionsResponse) GetPositions() []*VaultRemotePosition { + if x != nil { + return x.Positions + } + return nil +} + +func (x *QueryVaultRemotePositionsResponse) GetTotalPositions() uint64 { + if x != nil { + return x.TotalPositions + } + return 0 +} + +func (x *QueryVaultRemotePositionsResponse) GetTotalValue() string { + if x != nil { + return x.TotalValue + } + return "" +} + +var File_noble_dollar_vaults_v2_query_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_query_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x2a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x24, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, 0x0a, + 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xfa, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x41, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, + 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, + 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x61, 0x76, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x73, 0x22, 0x5f, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x56, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, + 0x6c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4c, 0x0a, 0x06, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x47, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x13, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, + 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x62, 0x0a, 0x12, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, + 0x4e, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0xad, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, + 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x75, 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x22, + 0x97, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, + 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x1a, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x57, 0x69, 0x74, 0x68, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x09, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x46, + 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0xab, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x59, 0x69, + 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x25, + 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, + 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, + 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6e, + 0x61, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4e, + 0x61, 0x76, 0x22, 0x18, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x17, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x13, 0x0a, 0x11, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x59, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x5e, 0x0a, 0x14, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5c, 0x0a, 0x15, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x53, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x66, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, + 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x01, + 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x45, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x38, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, + 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x1c, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, 0x6b, + 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x67, 0x0a, 0x1b, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0xbc, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x53, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x74, 0x68, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x7e, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x35, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x46, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x72, + 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, + 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x66, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, 0x69, + 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x66, + 0x75, 0x6e, 0x64, 0x22, 0x9b, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, + 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x05, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x05, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3e, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x77, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, + 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, + 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xb8, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xc0, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, + 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x06, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, + 0x6c, 0x65, 0x72, 0x74, 0x57, 0x69, 0x74, 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x12, 0x47, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xec, 0x01, 0x0a, 0x1d, 0x53, 0x74, 0x61, 0x6c, 0x65, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x57, 0x69, 0x74, + 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x46, 0x0a, 0x05, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x6c, + 0x65, 0x72, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x12, 0x43, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x66, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x04, 0x66, 0x75, 0x6e, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x41, + 0x56, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa7, 0x01, 0x0a, 0x10, 0x4e, 0x41, 0x56, + 0x42, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x6f, + 0x63, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, + 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6c, 0x69, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6c, 0x69, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x22, 0xec, 0x03, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x41, 0x56, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x61, 0x76, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6e, 0x61, 0x76, 0x12, 0x1d, 0x0a, 0x0a, 0x79, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x79, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x63, 0x63, 0x72, 0x75, 0x65, + 0x64, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x6f, + 0x63, 0x61, 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x66, 0x75, 0x6e, 0x64, + 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x69, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x77, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x6e, 0x61, 0x76, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x64, + 0x6f, 0x77, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x4e, 0x41, 0x56, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x56, + 0x69, 0x65, 0x77, 0x52, 0x0c, 0x6e, 0x61, 0x76, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x64, 0x6f, 0x77, + 0x6e, 0x22, 0x65, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc0, 0x02, 0x0a, 0x13, 0x57, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x49, 0x74, 0x65, 0x6d, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, + 0x2c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x21, 0x0a, 0x0c, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xfa, 0x02, 0x0a, 0x1c, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x10, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x49, + 0x74, 0x65, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x70, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, + 0x2f, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x71, + 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, + 0x12, 0x21, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, + 0x64, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb0, 0x03, 0x0a, 0x14, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, + 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x5f, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x66, 0x75, + 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x47, 0x0a, 0x0c, 0x63, 0x6c, 0x61, + 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, + 0x41, 0x74, 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x63, 0x6c, + 0x61, 0x69, 0x6d, 0x65, 0x64, 0x41, 0x74, 0x22, 0xb0, 0x02, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0b, 0x77, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x12, 0x23, + 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x65, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x61, + 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, + 0x64, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a, 0x17, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd5, 0x01, 0x0a, 0x18, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, + 0x0d, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x59, 0x69, 0x65, + 0x6c, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x64, 0x5f, 0x67, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x6e, + 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x47, 0x61, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, + 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x22, 0x51, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x56, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0x91, 0x03, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x56, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x63, 0x65, 0x6e, + 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, + 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2c, 0x0a, + 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x57, + 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x73, + 0x75, 0x73, 0x70, 0x69, 0x63, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, + 0x74, 0x79, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x73, + 0x75, 0x73, 0x70, 0x69, 0x63, 0x69, 0x6f, 0x75, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x3a, 0x0a, 0x19, 0x63, 0x6f, 0x6f, 0x6c, 0x64, 0x6f, 0x77, + 0x6e, 0x5f, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x63, 0x6f, 0x6f, 0x6c, 0x64, 0x6f, + 0x77, 0x6e, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x63, + 0x6f, 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x76, 0x65, 0x6c, 0x6f, 0x63, + 0x69, 0x74, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x69, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x22, 0xf7, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x56, 0x69, 0x65, 0x77, 0x12, 0x2a, 0x0a, 0x11, 0x77, 0x69, 0x74, 0x68, + 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x5f, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x10, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x5f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, + 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6f, 0x6c, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x63, 0x6f, 0x6f, 0x6c, 0x64, + 0x6f, 0x77, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x76, 0x65, 0x6c, + 0x6f, 0x63, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x70, 0x61, 0x73, 0x73, + 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, + 0x74, 0x79, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x61, 0x73, 0x73, 0x65, 0x64, 0x22, 0xc6, 0x01, + 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x79, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x79, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x56, 0x69, + 0x65, 0x77, 0x52, 0x06, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, + 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x77, 0x61, + 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x6c, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, + 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xd8, 0x02, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, + 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x70, + 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, + 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, + 0x0a, 0x0d, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x6f, 0x72, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x65, 0x73, + 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, + 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, + 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x46, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, + 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x4c, 0x69, 0x71, 0x75, 0x69, 0x64, 0x69, 0x74, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x68, 0x65, + 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x61, 0x68, 0x65, 0x61, 0x64, 0x49, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x22, + 0x1b, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xaa, 0x04, 0x0a, + 0x10, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x56, 0x69, 0x65, + 0x77, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x15, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x0c, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, + 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x61, 0x69, + 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, + 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0xd9, 0x05, 0x0a, 0x1a, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0e, 0x69, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x5f, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x56, 0x69, 0x65, 0x77, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x0d, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x12, + 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x49, 0x6e, + 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x70, 0x6c, 0x6f, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x1f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1d, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, + 0x08, 0x62, 0x79, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, + 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x07, 0x62, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x57, 0x0a, 0x07, 0x62, 0x79, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x62, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x5d, 0x0a, 0x09, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x79, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x42, 0x79, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, + 0x0b, 0x42, 0x79, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x42, 0x79, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x20, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, + 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xe5, 0x03, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x56, 0x69, 0x65, + 0x77, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, + 0x47, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, + 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x64, 0x75, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x4f, 0x76, 0x65, + 0x72, 0x64, 0x75, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0xfd, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, + 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x66, 0x75, 0x6e, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, + 0x75, 0x6e, 0x64, 0x56, 0x69, 0x65, 0x77, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x73, + 0x74, 0x61, 0x6c, 0x65, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6c, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, + 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x6c, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x6c, + 0x65, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, + 0x6c, 0x64, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x48, 0x6f, 0x75, 0x72, 0x73, 0x22, + 0x22, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0xec, 0x02, 0x0a, 0x13, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x48, 0x65, 0x6c, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0d, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x61, 0x70, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x45, 0x0a, 0x0b, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, + 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x22, 0xbe, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, + 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x32, 0xa2, 0x23, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x9a, 0x01, + 0x0a, 0x0a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x09, 0x56, + 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, + 0x1d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x92, + 0x01, 0x0a, 0x09, 0x41, 0x6c, 0x6c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x56, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x12, 0xa7, 0x01, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2c, 0x12, 0x2a, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xab, 0x01, + 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, + 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x09, + 0x59, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, + 0x12, 0x1d, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x12, + 0x7d, 0x0a, 0x03, 0x4e, 0x41, 0x56, 0x12, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x41, 0x56, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x41, + 0x56, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1d, 0x12, 0x1b, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x61, 0x76, 0x12, 0xb2, + 0x01, 0x0a, 0x10, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x73, 0x12, 0xb9, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x72, + 0x6f, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, + 0xc3, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, + 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x7b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xbc, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x14, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, + 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0xb3, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x46, 0x75, 0x6e, 0x64, 0x12, 0x30, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, + 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x38, 0x12, 0x36, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, 0x73, + 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x2f, + 0x7b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x11, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x55, 0x73, 0x65, 0x72, + 0x12, 0x35, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, + 0x6e, 0x64, 0x73, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x69, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x36, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, + 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x12, 0xba, 0x01, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x38, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x72, 0x6f, + 0x73, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x12, 0xae, 0x01, + 0x0a, 0x0f, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x12, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0xb8, + 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x73, 0x12, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x2f, + 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x0b, 0x55, 0x73, + 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x56, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x12, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x56, 0x65, + 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x56, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x76, 0x65, 0x6c, + 0x6f, 0x63, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, + 0xae, 0x01, 0x0a, 0x0f, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x12, 0x33, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x12, 0xba, 0x01, 0x0a, 0x12, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x57, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x36, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x57, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x37, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, + 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, + 0x12, 0x2b, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, + 0x74, 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0xa6, 0x01, + 0x0a, 0x0d, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x12, + 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, + 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, + 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x5f, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0xbb, 0x01, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x6c, 0x65, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x36, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x73, 0x74, 0x61, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x66, + 0x75, 0x6e, 0x64, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x29, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x89, 0x01, 0x0a, + 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2a, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xdc, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, + 0x03, 0x4e, 0x44, 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, + 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, + 0x62, 0x6c, 0x65, 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_query_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_query_proto_rawDescData = file_noble_dollar_vaults_v2_query_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_query_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_query_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_query_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_query_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 69) +var file_noble_dollar_vaults_v2_query_proto_goTypes = []interface{}{ + (*QueryVaultInfoRequest)(nil), // 0: noble.dollar.vaults.v2.QueryVaultInfoRequest + (*QueryVaultInfoResponse)(nil), // 1: noble.dollar.vaults.v2.QueryVaultInfoResponse + (*QueryAllVaultsRequest)(nil), // 2: noble.dollar.vaults.v2.QueryAllVaultsRequest + (*QueryAllVaultsResponse)(nil), // 3: noble.dollar.vaults.v2.QueryAllVaultsResponse + (*QueryVaultRequest)(nil), // 4: noble.dollar.vaults.v2.QueryVaultRequest + (*QueryVaultResponse)(nil), // 5: noble.dollar.vaults.v2.QueryVaultResponse + (*QueryUserPositionRequest)(nil), // 6: noble.dollar.vaults.v2.QueryUserPositionRequest + (*QueryUserPositionResponse)(nil), // 7: noble.dollar.vaults.v2.QueryUserPositionResponse + (*QueryUserPositionsRequest)(nil), // 8: noble.dollar.vaults.v2.QueryUserPositionsRequest + (*QueryUserPositionsResponse)(nil), // 9: noble.dollar.vaults.v2.QueryUserPositionsResponse + (*UserPositionWithVault)(nil), // 10: noble.dollar.vaults.v2.UserPositionWithVault + (*QueryYieldInfoRequest)(nil), // 11: noble.dollar.vaults.v2.QueryYieldInfoRequest + (*QueryYieldInfoResponse)(nil), // 12: noble.dollar.vaults.v2.QueryYieldInfoResponse + (*QueryVaultStatsRequest)(nil), // 13: noble.dollar.vaults.v2.QueryVaultStatsRequest + (*QueryVaultStatsResponse)(nil), // 14: noble.dollar.vaults.v2.QueryVaultStatsResponse + (*QueryStatsRequest)(nil), // 15: noble.dollar.vaults.v2.QueryStatsRequest + (*QueryStatsResponse)(nil), // 16: noble.dollar.vaults.v2.QueryStatsResponse + (*QueryAllStatsRequest)(nil), // 17: noble.dollar.vaults.v2.QueryAllStatsRequest + (*QueryAllStatsResponse)(nil), // 18: noble.dollar.vaults.v2.QueryAllStatsResponse + (*QueryParamsRequest)(nil), // 19: noble.dollar.vaults.v2.QueryParamsRequest + (*QueryParamsResponse)(nil), // 20: noble.dollar.vaults.v2.QueryParamsResponse + (*QueryCrossChainRoutesRequest)(nil), // 21: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest + (*QueryCrossChainRoutesResponse)(nil), // 22: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse + (*QueryCrossChainRouteRequest)(nil), // 23: noble.dollar.vaults.v2.QueryCrossChainRouteRequest + (*QueryCrossChainRouteResponse)(nil), // 24: noble.dollar.vaults.v2.QueryCrossChainRouteResponse + (*QueryRemotePositionRequest)(nil), // 25: noble.dollar.vaults.v2.QueryRemotePositionRequest + (*QueryRemotePositionResponse)(nil), // 26: noble.dollar.vaults.v2.QueryRemotePositionResponse + (*QueryRemotePositionsRequest)(nil), // 27: noble.dollar.vaults.v2.QueryRemotePositionsRequest + (*QueryRemotePositionsResponse)(nil), // 28: noble.dollar.vaults.v2.QueryRemotePositionsResponse + (*RemotePositionWithRoute)(nil), // 29: noble.dollar.vaults.v2.RemotePositionWithRoute + (*QueryInflightFundRequest)(nil), // 30: noble.dollar.vaults.v2.QueryInflightFundRequest + (*QueryInflightFundResponse)(nil), // 31: noble.dollar.vaults.v2.QueryInflightFundResponse + (*QueryInflightFundsUserRequest)(nil), // 32: noble.dollar.vaults.v2.QueryInflightFundsUserRequest + (*QueryInflightFundsUserResponse)(nil), // 33: noble.dollar.vaults.v2.QueryInflightFundsUserResponse + (*QueryCrossChainSnapshotRequest)(nil), // 34: noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest + (*QueryCrossChainSnapshotResponse)(nil), // 35: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse + (*QueryStaleInflightAlertsRequest)(nil), // 36: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest + (*QueryStaleInflightAlertsResponse)(nil), // 37: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse + (*StaleInflightAlertWithDetails)(nil), // 38: noble.dollar.vaults.v2.StaleInflightAlertWithDetails + (*QueryNAVRequest)(nil), // 39: noble.dollar.vaults.v2.QueryNAVRequest + (*NAVBreakdownView)(nil), // 40: noble.dollar.vaults.v2.NAVBreakdownView + (*QueryNAVResponse)(nil), // 41: noble.dollar.vaults.v2.QueryNAVResponse + (*QueryWithdrawalQueueRequest)(nil), // 42: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest + (*WithdrawalQueueItem)(nil), // 43: noble.dollar.vaults.v2.WithdrawalQueueItem + (*QueryWithdrawalQueueResponse)(nil), // 44: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse + (*QueryUserWithdrawalsRequest)(nil), // 45: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest + (*WithdrawalStatusItem)(nil), // 46: noble.dollar.vaults.v2.WithdrawalStatusItem + (*QueryUserWithdrawalsResponse)(nil), // 47: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse + (*QueryUserBalanceRequest)(nil), // 48: noble.dollar.vaults.v2.QueryUserBalanceRequest + (*QueryUserBalanceResponse)(nil), // 49: noble.dollar.vaults.v2.QueryUserBalanceResponse + (*QueryDepositVelocityRequest)(nil), // 50: noble.dollar.vaults.v2.QueryDepositVelocityRequest + (*QueryDepositVelocityResponse)(nil), // 51: noble.dollar.vaults.v2.QueryDepositVelocityResponse + (*QuerySimulateDepositRequest)(nil), // 52: noble.dollar.vaults.v2.QuerySimulateDepositRequest + (*CheckResultsView)(nil), // 53: noble.dollar.vaults.v2.CheckResultsView + (*QuerySimulateDepositResponse)(nil), // 54: noble.dollar.vaults.v2.QuerySimulateDepositResponse + (*QuerySimulateWithdrawalRequest)(nil), // 55: noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest + (*QuerySimulateWithdrawalResponse)(nil), // 56: noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse + (*QueryInflightFundsRequest)(nil), // 57: noble.dollar.vaults.v2.QueryInflightFundsRequest + (*InflightFundView)(nil), // 58: noble.dollar.vaults.v2.InflightFundView + (*QueryInflightFundsResponse)(nil), // 59: noble.dollar.vaults.v2.QueryInflightFundsResponse + (*QueryStaleInflightFundsRequest)(nil), // 60: noble.dollar.vaults.v2.QueryStaleInflightFundsRequest + (*StaleInflightFundView)(nil), // 61: noble.dollar.vaults.v2.StaleInflightFundView + (*QueryStaleInflightFundsResponse)(nil), // 62: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse + (*QueryVaultRemotePositionsRequest)(nil), // 63: noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest + (*VaultRemotePosition)(nil), // 64: noble.dollar.vaults.v2.VaultRemotePosition + (*QueryVaultRemotePositionsResponse)(nil), // 65: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse + nil, // 66: noble.dollar.vaults.v2.QueryInflightFundsResponse.ByRouteEntry + nil, // 67: noble.dollar.vaults.v2.QueryInflightFundsResponse.ByTypeEntry + nil, // 68: noble.dollar.vaults.v2.QueryInflightFundsResponse.ByStatusEntry + (*VaultConfig)(nil), // 69: noble.dollar.vaults.v2.VaultConfig + (*v1beta1.PageRequest)(nil), // 70: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 71: cosmos.base.query.v1beta1.PageResponse + (*UserPosition)(nil), // 72: noble.dollar.vaults.v2.UserPosition + (*VaultStatsEntry)(nil), // 73: noble.dollar.vaults.v2.VaultStatsEntry + (*Params)(nil), // 74: noble.dollar.vaults.v2.Params + (*CrossChainRoute)(nil), // 75: noble.dollar.vaults.v2.CrossChainRoute + (*RemotePosition)(nil), // 76: noble.dollar.vaults.v2.RemotePosition + (*InflightFund)(nil), // 77: noble.dollar.vaults.v2.InflightFund + (*CrossChainPositionSnapshot)(nil), // 78: noble.dollar.vaults.v2.CrossChainPositionSnapshot + (*StaleInflightAlert)(nil), // 79: noble.dollar.vaults.v2.StaleInflightAlert + (*timestamppb.Timestamp)(nil), // 80: google.protobuf.Timestamp +} +var file_noble_dollar_vaults_v2_query_proto_depIdxs = []int32{ + 69, // 0: noble.dollar.vaults.v2.QueryVaultInfoResponse.config:type_name -> noble.dollar.vaults.v2.VaultConfig + 70, // 1: noble.dollar.vaults.v2.QueryAllVaultsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 1, // 2: noble.dollar.vaults.v2.QueryAllVaultsResponse.vaults:type_name -> noble.dollar.vaults.v2.QueryVaultInfoResponse + 71, // 3: noble.dollar.vaults.v2.QueryAllVaultsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 1, // 4: noble.dollar.vaults.v2.QueryVaultResponse.vaults:type_name -> noble.dollar.vaults.v2.QueryVaultInfoResponse + 72, // 5: noble.dollar.vaults.v2.QueryUserPositionResponse.position:type_name -> noble.dollar.vaults.v2.UserPosition + 70, // 6: noble.dollar.vaults.v2.QueryUserPositionsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 10, // 7: noble.dollar.vaults.v2.QueryUserPositionsResponse.positions:type_name -> noble.dollar.vaults.v2.UserPositionWithVault + 71, // 8: noble.dollar.vaults.v2.QueryUserPositionsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 72, // 9: noble.dollar.vaults.v2.UserPositionWithVault.position:type_name -> noble.dollar.vaults.v2.UserPosition + 73, // 10: noble.dollar.vaults.v2.QueryVaultStatsResponse.stats:type_name -> noble.dollar.vaults.v2.VaultStatsEntry + 73, // 11: noble.dollar.vaults.v2.QueryStatsResponse.stats:type_name -> noble.dollar.vaults.v2.VaultStatsEntry + 70, // 12: noble.dollar.vaults.v2.QueryAllStatsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 73, // 13: noble.dollar.vaults.v2.QueryAllStatsResponse.stats:type_name -> noble.dollar.vaults.v2.VaultStatsEntry + 74, // 14: noble.dollar.vaults.v2.QueryParamsResponse.params:type_name -> noble.dollar.vaults.v2.Params + 70, // 15: noble.dollar.vaults.v2.QueryCrossChainRoutesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 75, // 16: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.routes:type_name -> noble.dollar.vaults.v2.CrossChainRoute + 71, // 17: noble.dollar.vaults.v2.QueryCrossChainRoutesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 75, // 18: noble.dollar.vaults.v2.QueryCrossChainRouteResponse.route:type_name -> noble.dollar.vaults.v2.CrossChainRoute + 76, // 19: noble.dollar.vaults.v2.QueryRemotePositionResponse.position:type_name -> noble.dollar.vaults.v2.RemotePosition + 70, // 20: noble.dollar.vaults.v2.QueryRemotePositionsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 29, // 21: noble.dollar.vaults.v2.QueryRemotePositionsResponse.positions:type_name -> noble.dollar.vaults.v2.RemotePositionWithRoute + 71, // 22: noble.dollar.vaults.v2.QueryRemotePositionsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 76, // 23: noble.dollar.vaults.v2.RemotePositionWithRoute.position:type_name -> noble.dollar.vaults.v2.RemotePosition + 77, // 24: noble.dollar.vaults.v2.QueryInflightFundResponse.fund:type_name -> noble.dollar.vaults.v2.InflightFund + 70, // 25: noble.dollar.vaults.v2.QueryInflightFundsUserRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 77, // 26: noble.dollar.vaults.v2.QueryInflightFundsUserResponse.funds:type_name -> noble.dollar.vaults.v2.InflightFund + 71, // 27: noble.dollar.vaults.v2.QueryInflightFundsUserResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 78, // 28: noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse.snapshot:type_name -> noble.dollar.vaults.v2.CrossChainPositionSnapshot + 70, // 29: noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 30: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.alerts:type_name -> noble.dollar.vaults.v2.StaleInflightAlertWithDetails + 71, // 31: noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 79, // 32: noble.dollar.vaults.v2.StaleInflightAlertWithDetails.alert:type_name -> noble.dollar.vaults.v2.StaleInflightAlert + 75, // 33: noble.dollar.vaults.v2.StaleInflightAlertWithDetails.route:type_name -> noble.dollar.vaults.v2.CrossChainRoute + 77, // 34: noble.dollar.vaults.v2.StaleInflightAlertWithDetails.fund:type_name -> noble.dollar.vaults.v2.InflightFund + 80, // 35: noble.dollar.vaults.v2.QueryNAVResponse.last_update:type_name -> google.protobuf.Timestamp + 40, // 36: noble.dollar.vaults.v2.QueryNAVResponse.nav_breakdown:type_name -> noble.dollar.vaults.v2.NAVBreakdownView + 70, // 37: noble.dollar.vaults.v2.QueryWithdrawalQueueRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 80, // 38: noble.dollar.vaults.v2.WithdrawalQueueItem.timestamp:type_name -> google.protobuf.Timestamp + 43, // 39: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pending_requests:type_name -> noble.dollar.vaults.v2.WithdrawalQueueItem + 71, // 40: noble.dollar.vaults.v2.QueryWithdrawalQueueResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 70, // 41: noble.dollar.vaults.v2.QueryUserWithdrawalsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 80, // 42: noble.dollar.vaults.v2.WithdrawalStatusItem.timestamp:type_name -> google.protobuf.Timestamp + 80, // 43: noble.dollar.vaults.v2.WithdrawalStatusItem.claimable_at:type_name -> google.protobuf.Timestamp + 80, // 44: noble.dollar.vaults.v2.WithdrawalStatusItem.claimed_at:type_name -> google.protobuf.Timestamp + 46, // 45: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.withdrawals:type_name -> noble.dollar.vaults.v2.WithdrawalStatusItem + 71, // 46: noble.dollar.vaults.v2.QueryUserWithdrawalsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 53, // 47: noble.dollar.vaults.v2.QuerySimulateDepositResponse.checks:type_name -> noble.dollar.vaults.v2.CheckResultsView + 80, // 48: noble.dollar.vaults.v2.InflightFundView.initiated_at:type_name -> google.protobuf.Timestamp + 80, // 49: noble.dollar.vaults.v2.InflightFundView.expected_at:type_name -> google.protobuf.Timestamp + 58, // 50: noble.dollar.vaults.v2.QueryInflightFundsResponse.inflight_funds:type_name -> noble.dollar.vaults.v2.InflightFundView + 66, // 51: noble.dollar.vaults.v2.QueryInflightFundsResponse.by_route:type_name -> noble.dollar.vaults.v2.QueryInflightFundsResponse.ByRouteEntry + 67, // 52: noble.dollar.vaults.v2.QueryInflightFundsResponse.by_type:type_name -> noble.dollar.vaults.v2.QueryInflightFundsResponse.ByTypeEntry + 68, // 53: noble.dollar.vaults.v2.QueryInflightFundsResponse.by_status:type_name -> noble.dollar.vaults.v2.QueryInflightFundsResponse.ByStatusEntry + 80, // 54: noble.dollar.vaults.v2.StaleInflightFundView.initiated_at:type_name -> google.protobuf.Timestamp + 80, // 55: noble.dollar.vaults.v2.StaleInflightFundView.expected_at:type_name -> google.protobuf.Timestamp + 61, // 56: noble.dollar.vaults.v2.QueryStaleInflightFundsResponse.stale_funds:type_name -> noble.dollar.vaults.v2.StaleInflightFundView + 80, // 57: noble.dollar.vaults.v2.VaultRemotePosition.last_update:type_name -> google.protobuf.Timestamp + 64, // 58: noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse.positions:type_name -> noble.dollar.vaults.v2.VaultRemotePosition + 13, // 59: noble.dollar.vaults.v2.Query.VaultStats:input_type -> noble.dollar.vaults.v2.QueryVaultStatsRequest + 0, // 60: noble.dollar.vaults.v2.Query.VaultInfo:input_type -> noble.dollar.vaults.v2.QueryVaultInfoRequest + 2, // 61: noble.dollar.vaults.v2.Query.AllVaults:input_type -> noble.dollar.vaults.v2.QueryAllVaultsRequest + 6, // 62: noble.dollar.vaults.v2.Query.UserPosition:input_type -> noble.dollar.vaults.v2.QueryUserPositionRequest + 8, // 63: noble.dollar.vaults.v2.Query.UserPositions:input_type -> noble.dollar.vaults.v2.QueryUserPositionsRequest + 11, // 64: noble.dollar.vaults.v2.Query.YieldInfo:input_type -> noble.dollar.vaults.v2.QueryYieldInfoRequest + 39, // 65: noble.dollar.vaults.v2.Query.NAV:input_type -> noble.dollar.vaults.v2.QueryNAVRequest + 21, // 66: noble.dollar.vaults.v2.Query.CrossChainRoutes:input_type -> noble.dollar.vaults.v2.QueryCrossChainRoutesRequest + 23, // 67: noble.dollar.vaults.v2.Query.CrossChainRoute:input_type -> noble.dollar.vaults.v2.QueryCrossChainRouteRequest + 25, // 68: noble.dollar.vaults.v2.Query.RemotePosition:input_type -> noble.dollar.vaults.v2.QueryRemotePositionRequest + 27, // 69: noble.dollar.vaults.v2.Query.RemotePositions:input_type -> noble.dollar.vaults.v2.QueryRemotePositionsRequest + 63, // 70: noble.dollar.vaults.v2.Query.VaultRemotePositions:input_type -> noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest + 30, // 71: noble.dollar.vaults.v2.Query.InflightFund:input_type -> noble.dollar.vaults.v2.QueryInflightFundRequest + 32, // 72: noble.dollar.vaults.v2.Query.InflightFundsUser:input_type -> noble.dollar.vaults.v2.QueryInflightFundsUserRequest + 34, // 73: noble.dollar.vaults.v2.Query.CrossChainSnapshot:input_type -> noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest + 36, // 74: noble.dollar.vaults.v2.Query.StaleInflightAlerts:input_type -> noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest + 42, // 75: noble.dollar.vaults.v2.Query.WithdrawalQueue:input_type -> noble.dollar.vaults.v2.QueryWithdrawalQueueRequest + 45, // 76: noble.dollar.vaults.v2.Query.UserWithdrawals:input_type -> noble.dollar.vaults.v2.QueryUserWithdrawalsRequest + 48, // 77: noble.dollar.vaults.v2.Query.UserBalance:input_type -> noble.dollar.vaults.v2.QueryUserBalanceRequest + 50, // 78: noble.dollar.vaults.v2.Query.DepositVelocity:input_type -> noble.dollar.vaults.v2.QueryDepositVelocityRequest + 52, // 79: noble.dollar.vaults.v2.Query.SimulateDeposit:input_type -> noble.dollar.vaults.v2.QuerySimulateDepositRequest + 55, // 80: noble.dollar.vaults.v2.Query.SimulateWithdrawal:input_type -> noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest + 57, // 81: noble.dollar.vaults.v2.Query.InflightFunds:input_type -> noble.dollar.vaults.v2.QueryInflightFundsRequest + 60, // 82: noble.dollar.vaults.v2.Query.StaleInflightFunds:input_type -> noble.dollar.vaults.v2.QueryStaleInflightFundsRequest + 15, // 83: noble.dollar.vaults.v2.Query.Stats:input_type -> noble.dollar.vaults.v2.QueryStatsRequest + 19, // 84: noble.dollar.vaults.v2.Query.Params:input_type -> noble.dollar.vaults.v2.QueryParamsRequest + 14, // 85: noble.dollar.vaults.v2.Query.VaultStats:output_type -> noble.dollar.vaults.v2.QueryVaultStatsResponse + 1, // 86: noble.dollar.vaults.v2.Query.VaultInfo:output_type -> noble.dollar.vaults.v2.QueryVaultInfoResponse + 3, // 87: noble.dollar.vaults.v2.Query.AllVaults:output_type -> noble.dollar.vaults.v2.QueryAllVaultsResponse + 7, // 88: noble.dollar.vaults.v2.Query.UserPosition:output_type -> noble.dollar.vaults.v2.QueryUserPositionResponse + 9, // 89: noble.dollar.vaults.v2.Query.UserPositions:output_type -> noble.dollar.vaults.v2.QueryUserPositionsResponse + 12, // 90: noble.dollar.vaults.v2.Query.YieldInfo:output_type -> noble.dollar.vaults.v2.QueryYieldInfoResponse + 41, // 91: noble.dollar.vaults.v2.Query.NAV:output_type -> noble.dollar.vaults.v2.QueryNAVResponse + 22, // 92: noble.dollar.vaults.v2.Query.CrossChainRoutes:output_type -> noble.dollar.vaults.v2.QueryCrossChainRoutesResponse + 24, // 93: noble.dollar.vaults.v2.Query.CrossChainRoute:output_type -> noble.dollar.vaults.v2.QueryCrossChainRouteResponse + 26, // 94: noble.dollar.vaults.v2.Query.RemotePosition:output_type -> noble.dollar.vaults.v2.QueryRemotePositionResponse + 28, // 95: noble.dollar.vaults.v2.Query.RemotePositions:output_type -> noble.dollar.vaults.v2.QueryRemotePositionsResponse + 65, // 96: noble.dollar.vaults.v2.Query.VaultRemotePositions:output_type -> noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse + 31, // 97: noble.dollar.vaults.v2.Query.InflightFund:output_type -> noble.dollar.vaults.v2.QueryInflightFundResponse + 33, // 98: noble.dollar.vaults.v2.Query.InflightFundsUser:output_type -> noble.dollar.vaults.v2.QueryInflightFundsUserResponse + 35, // 99: noble.dollar.vaults.v2.Query.CrossChainSnapshot:output_type -> noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse + 37, // 100: noble.dollar.vaults.v2.Query.StaleInflightAlerts:output_type -> noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse + 44, // 101: noble.dollar.vaults.v2.Query.WithdrawalQueue:output_type -> noble.dollar.vaults.v2.QueryWithdrawalQueueResponse + 47, // 102: noble.dollar.vaults.v2.Query.UserWithdrawals:output_type -> noble.dollar.vaults.v2.QueryUserWithdrawalsResponse + 49, // 103: noble.dollar.vaults.v2.Query.UserBalance:output_type -> noble.dollar.vaults.v2.QueryUserBalanceResponse + 51, // 104: noble.dollar.vaults.v2.Query.DepositVelocity:output_type -> noble.dollar.vaults.v2.QueryDepositVelocityResponse + 54, // 105: noble.dollar.vaults.v2.Query.SimulateDeposit:output_type -> noble.dollar.vaults.v2.QuerySimulateDepositResponse + 56, // 106: noble.dollar.vaults.v2.Query.SimulateWithdrawal:output_type -> noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse + 59, // 107: noble.dollar.vaults.v2.Query.InflightFunds:output_type -> noble.dollar.vaults.v2.QueryInflightFundsResponse + 62, // 108: noble.dollar.vaults.v2.Query.StaleInflightFunds:output_type -> noble.dollar.vaults.v2.QueryStaleInflightFundsResponse + 16, // 109: noble.dollar.vaults.v2.Query.Stats:output_type -> noble.dollar.vaults.v2.QueryStatsResponse + 20, // 110: noble.dollar.vaults.v2.Query.Params:output_type -> noble.dollar.vaults.v2.QueryParamsResponse + 85, // [85:111] is the sub-list for method output_type + 59, // [59:85] is the sub-list for method input_type + 59, // [59:59] is the sub-list for extension type_name + 59, // [59:59] is the sub-list for extension extendee + 0, // [0:59] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_query_proto_init() } +func file_noble_dollar_vaults_v2_query_proto_init() { + if File_noble_dollar_vaults_v2_query_proto != nil { + return + } + file_noble_dollar_vaults_v2_cross_chain_proto_init() + file_noble_dollar_vaults_v2_genesis_proto_init() + file_noble_dollar_vaults_v2_vaults_proto_init() + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllVaultsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllVaultsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserPositionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserPositionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserPositionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserPositionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserPositionWithVault); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryYieldInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryYieldInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllStatsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAllStatsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCrossChainRoutesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCrossChainRoutesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCrossChainRouteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCrossChainRouteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemotePositionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemotePositionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemotePositionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryRemotePositionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemotePositionWithRoute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInflightFundRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInflightFundResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInflightFundsUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInflightFundsUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCrossChainSnapshotRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryCrossChainSnapshotResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStaleInflightAlertsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStaleInflightAlertsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StaleInflightAlertWithDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNAVRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVBreakdownView); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNAVResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWithdrawalQueueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawalQueueItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWithdrawalQueueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserWithdrawalsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawalStatusItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserWithdrawalsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUserBalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDepositVelocityRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDepositVelocityResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySimulateDepositRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckResultsView); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySimulateDepositResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySimulateWithdrawalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySimulateWithdrawalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInflightFundsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InflightFundView); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInflightFundsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStaleInflightFundsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StaleInflightFundView); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStaleInflightFundsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultRemotePositionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VaultRemotePosition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_query_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryVaultRemotePositionsResponse); 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_noble_dollar_vaults_v2_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 69, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_noble_dollar_vaults_v2_query_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_query_proto_depIdxs, + MessageInfos: file_noble_dollar_vaults_v2_query_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_query_proto = out.File + file_noble_dollar_vaults_v2_query_proto_rawDesc = nil + file_noble_dollar_vaults_v2_query_proto_goTypes = nil + file_noble_dollar_vaults_v2_query_proto_depIdxs = nil +} diff --git a/api/vaults/v2/query_grpc.pb.go b/api/vaults/v2/query_grpc.pb.go new file mode 100644 index 00000000..f8a0945d --- /dev/null +++ b/api/vaults/v2/query_grpc.pb.go @@ -0,0 +1,1127 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: noble/dollar/vaults/v2/query.proto + +package vaultsv2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Query_VaultStats_FullMethodName = "/noble.dollar.vaults.v2.Query/VaultStats" + Query_VaultInfo_FullMethodName = "/noble.dollar.vaults.v2.Query/VaultInfo" + Query_AllVaults_FullMethodName = "/noble.dollar.vaults.v2.Query/AllVaults" + Query_UserPosition_FullMethodName = "/noble.dollar.vaults.v2.Query/UserPosition" + Query_UserPositions_FullMethodName = "/noble.dollar.vaults.v2.Query/UserPositions" + Query_YieldInfo_FullMethodName = "/noble.dollar.vaults.v2.Query/YieldInfo" + Query_NAV_FullMethodName = "/noble.dollar.vaults.v2.Query/NAV" + Query_CrossChainRoutes_FullMethodName = "/noble.dollar.vaults.v2.Query/CrossChainRoutes" + Query_CrossChainRoute_FullMethodName = "/noble.dollar.vaults.v2.Query/CrossChainRoute" + Query_RemotePosition_FullMethodName = "/noble.dollar.vaults.v2.Query/RemotePosition" + Query_RemotePositions_FullMethodName = "/noble.dollar.vaults.v2.Query/RemotePositions" + Query_VaultRemotePositions_FullMethodName = "/noble.dollar.vaults.v2.Query/VaultRemotePositions" + Query_InflightFund_FullMethodName = "/noble.dollar.vaults.v2.Query/InflightFund" + Query_InflightFundsUser_FullMethodName = "/noble.dollar.vaults.v2.Query/InflightFundsUser" + Query_CrossChainSnapshot_FullMethodName = "/noble.dollar.vaults.v2.Query/CrossChainSnapshot" + Query_StaleInflightAlerts_FullMethodName = "/noble.dollar.vaults.v2.Query/StaleInflightAlerts" + Query_WithdrawalQueue_FullMethodName = "/noble.dollar.vaults.v2.Query/WithdrawalQueue" + Query_UserWithdrawals_FullMethodName = "/noble.dollar.vaults.v2.Query/UserWithdrawals" + Query_UserBalance_FullMethodName = "/noble.dollar.vaults.v2.Query/UserBalance" + Query_DepositVelocity_FullMethodName = "/noble.dollar.vaults.v2.Query/DepositVelocity" + Query_SimulateDeposit_FullMethodName = "/noble.dollar.vaults.v2.Query/SimulateDeposit" + Query_SimulateWithdrawal_FullMethodName = "/noble.dollar.vaults.v2.Query/SimulateWithdrawal" + Query_InflightFunds_FullMethodName = "/noble.dollar.vaults.v2.Query/InflightFunds" + Query_StaleInflightFunds_FullMethodName = "/noble.dollar.vaults.v2.Query/StaleInflightFunds" + Query_Stats_FullMethodName = "/noble.dollar.vaults.v2.Query/Stats" + Query_Params_FullMethodName = "/noble.dollar.vaults.v2.Query/Params" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Query defines the gRPC querier service for V2 vaults +type QueryClient interface { + // VaultStats returns statistics for the primary V2 vault + VaultStats(ctx context.Context, in *QueryVaultStatsRequest, opts ...grpc.CallOption) (*QueryVaultStatsResponse, error) + // VaultInfo returns configuration and state for a specific vault type + VaultInfo(ctx context.Context, in *QueryVaultInfoRequest, opts ...grpc.CallOption) (*QueryVaultInfoResponse, error) + // AllVaults returns information for all vault types + AllVaults(ctx context.Context, in *QueryAllVaultsRequest, opts ...grpc.CallOption) (*QueryAllVaultsResponse, error) + // UserPosition returns a user's position in a specific vault + UserPosition(ctx context.Context, in *QueryUserPositionRequest, opts ...grpc.CallOption) (*QueryUserPositionResponse, error) + // UserPositions returns all of a user's positions across vault types + UserPositions(ctx context.Context, in *QueryUserPositionsRequest, opts ...grpc.CallOption) (*QueryUserPositionsResponse, error) + // YieldInfo returns the current yield information for a vault type + YieldInfo(ctx context.Context, in *QueryYieldInfoRequest, opts ...grpc.CallOption) (*QueryYieldInfoResponse, error) + // NAV returns current NAV with breakdown (spec-aligned) + NAV(ctx context.Context, in *QueryNAVRequest, opts ...grpc.CallOption) (*QueryNAVResponse, error) + // CrossChainRoutes returns all available cross-chain routes + CrossChainRoutes(ctx context.Context, in *QueryCrossChainRoutesRequest, opts ...grpc.CallOption) (*QueryCrossChainRoutesResponse, error) + // CrossChainRoute returns information for a specific route + CrossChainRoute(ctx context.Context, in *QueryCrossChainRouteRequest, opts ...grpc.CallOption) (*QueryCrossChainRouteResponse, error) + // RemotePosition returns a user's remote position on a specific route + RemotePosition(ctx context.Context, in *QueryRemotePositionRequest, opts ...grpc.CallOption) (*QueryRemotePositionResponse, error) + // RemotePositions returns all remote positions for a user + RemotePositions(ctx context.Context, in *QueryRemotePositionsRequest, opts ...grpc.CallOption) (*QueryRemotePositionsResponse, error) + // VaultRemotePositions returns all remote positions for the vault (spec-aligned) + VaultRemotePositions(ctx context.Context, in *QueryVaultRemotePositionsRequest, opts ...grpc.CallOption) (*QueryVaultRemotePositionsResponse, error) + // InflightFund returns information about an in-flight operation + InflightFund(ctx context.Context, in *QueryInflightFundRequest, opts ...grpc.CallOption) (*QueryInflightFundResponse, error) + // InflightFundsUser returns all in-flight operations for a user + InflightFundsUser(ctx context.Context, in *QueryInflightFundsUserRequest, opts ...grpc.CallOption) (*QueryInflightFundsUserResponse, error) + // CrossChainSnapshot returns cross-chain position snapshot for a vault + CrossChainSnapshot(ctx context.Context, in *QueryCrossChainSnapshotRequest, opts ...grpc.CallOption) (*QueryCrossChainSnapshotResponse, error) + // StaleInflightAlerts returns stale inflight alerts for a user or route + StaleInflightAlerts(ctx context.Context, in *QueryStaleInflightAlertsRequest, opts ...grpc.CallOption) (*QueryStaleInflightAlertsResponse, error) + // WithdrawalQueue returns the current withdrawal queue (spec-aligned) + WithdrawalQueue(ctx context.Context, in *QueryWithdrawalQueueRequest, opts ...grpc.CallOption) (*QueryWithdrawalQueueResponse, error) + // UserWithdrawals returns all withdrawal requests for a user (spec-aligned) + UserWithdrawals(ctx context.Context, in *QueryUserWithdrawalsRequest, opts ...grpc.CallOption) (*QueryUserWithdrawalsResponse, error) + // UserBalance returns deposit balance and yield for a user (spec-aligned) + UserBalance(ctx context.Context, in *QueryUserBalanceRequest, opts ...grpc.CallOption) (*QueryUserBalanceResponse, error) + // DepositVelocity returns deposit velocity metrics (spec-aligned) + DepositVelocity(ctx context.Context, in *QueryDepositVelocityRequest, opts ...grpc.CallOption) (*QueryDepositVelocityResponse, error) + // SimulateDeposit (spec-aligned) + SimulateDeposit(ctx context.Context, in *QuerySimulateDepositRequest, opts ...grpc.CallOption) (*QuerySimulateDepositResponse, error) + // SimulateWithdrawal (spec-aligned) + SimulateWithdrawal(ctx context.Context, in *QuerySimulateWithdrawalRequest, opts ...grpc.CallOption) (*QuerySimulateWithdrawalResponse, error) + // InflightFunds (spec-aligned aggregate view) + InflightFunds(ctx context.Context, in *QueryInflightFundsRequest, opts ...grpc.CallOption) (*QueryInflightFundsResponse, error) + // StaleInflightFunds (spec-aligned aggregate view) + StaleInflightFunds(ctx context.Context, in *QueryStaleInflightFundsRequest, opts ...grpc.CallOption) (*QueryStaleInflightFundsResponse, error) + // Stats returns statistics for a vault type + Stats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) + // Params returns the module parameters + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) VaultStats(ctx context.Context, in *QueryVaultStatsRequest, opts ...grpc.CallOption) (*QueryVaultStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryVaultStatsResponse) + err := c.cc.Invoke(ctx, Query_VaultStats_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) VaultInfo(ctx context.Context, in *QueryVaultInfoRequest, opts ...grpc.CallOption) (*QueryVaultInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryVaultInfoResponse) + err := c.cc.Invoke(ctx, Query_VaultInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllVaults(ctx context.Context, in *QueryAllVaultsRequest, opts ...grpc.CallOption) (*QueryAllVaultsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryAllVaultsResponse) + err := c.cc.Invoke(ctx, Query_AllVaults_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserPosition(ctx context.Context, in *QueryUserPositionRequest, opts ...grpc.CallOption) (*QueryUserPositionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryUserPositionResponse) + err := c.cc.Invoke(ctx, Query_UserPosition_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserPositions(ctx context.Context, in *QueryUserPositionsRequest, opts ...grpc.CallOption) (*QueryUserPositionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryUserPositionsResponse) + err := c.cc.Invoke(ctx, Query_UserPositions_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) YieldInfo(ctx context.Context, in *QueryYieldInfoRequest, opts ...grpc.CallOption) (*QueryYieldInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryYieldInfoResponse) + err := c.cc.Invoke(ctx, Query_YieldInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NAV(ctx context.Context, in *QueryNAVRequest, opts ...grpc.CallOption) (*QueryNAVResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryNAVResponse) + err := c.cc.Invoke(ctx, Query_NAV_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CrossChainRoutes(ctx context.Context, in *QueryCrossChainRoutesRequest, opts ...grpc.CallOption) (*QueryCrossChainRoutesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryCrossChainRoutesResponse) + err := c.cc.Invoke(ctx, Query_CrossChainRoutes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CrossChainRoute(ctx context.Context, in *QueryCrossChainRouteRequest, opts ...grpc.CallOption) (*QueryCrossChainRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryCrossChainRouteResponse) + err := c.cc.Invoke(ctx, Query_CrossChainRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RemotePosition(ctx context.Context, in *QueryRemotePositionRequest, opts ...grpc.CallOption) (*QueryRemotePositionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryRemotePositionResponse) + err := c.cc.Invoke(ctx, Query_RemotePosition_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RemotePositions(ctx context.Context, in *QueryRemotePositionsRequest, opts ...grpc.CallOption) (*QueryRemotePositionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryRemotePositionsResponse) + err := c.cc.Invoke(ctx, Query_RemotePositions_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) VaultRemotePositions(ctx context.Context, in *QueryVaultRemotePositionsRequest, opts ...grpc.CallOption) (*QueryVaultRemotePositionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryVaultRemotePositionsResponse) + err := c.cc.Invoke(ctx, Query_VaultRemotePositions_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InflightFund(ctx context.Context, in *QueryInflightFundRequest, opts ...grpc.CallOption) (*QueryInflightFundResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryInflightFundResponse) + err := c.cc.Invoke(ctx, Query_InflightFund_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InflightFundsUser(ctx context.Context, in *QueryInflightFundsUserRequest, opts ...grpc.CallOption) (*QueryInflightFundsUserResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryInflightFundsUserResponse) + err := c.cc.Invoke(ctx, Query_InflightFundsUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CrossChainSnapshot(ctx context.Context, in *QueryCrossChainSnapshotRequest, opts ...grpc.CallOption) (*QueryCrossChainSnapshotResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryCrossChainSnapshotResponse) + err := c.cc.Invoke(ctx, Query_CrossChainSnapshot_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) StaleInflightAlerts(ctx context.Context, in *QueryStaleInflightAlertsRequest, opts ...grpc.CallOption) (*QueryStaleInflightAlertsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryStaleInflightAlertsResponse) + err := c.cc.Invoke(ctx, Query_StaleInflightAlerts_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) WithdrawalQueue(ctx context.Context, in *QueryWithdrawalQueueRequest, opts ...grpc.CallOption) (*QueryWithdrawalQueueResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryWithdrawalQueueResponse) + err := c.cc.Invoke(ctx, Query_WithdrawalQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserWithdrawals(ctx context.Context, in *QueryUserWithdrawalsRequest, opts ...grpc.CallOption) (*QueryUserWithdrawalsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryUserWithdrawalsResponse) + err := c.cc.Invoke(ctx, Query_UserWithdrawals_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserBalance(ctx context.Context, in *QueryUserBalanceRequest, opts ...grpc.CallOption) (*QueryUserBalanceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryUserBalanceResponse) + err := c.cc.Invoke(ctx, Query_UserBalance_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DepositVelocity(ctx context.Context, in *QueryDepositVelocityRequest, opts ...grpc.CallOption) (*QueryDepositVelocityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryDepositVelocityResponse) + err := c.cc.Invoke(ctx, Query_DepositVelocity_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) SimulateDeposit(ctx context.Context, in *QuerySimulateDepositRequest, opts ...grpc.CallOption) (*QuerySimulateDepositResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QuerySimulateDepositResponse) + err := c.cc.Invoke(ctx, Query_SimulateDeposit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) SimulateWithdrawal(ctx context.Context, in *QuerySimulateWithdrawalRequest, opts ...grpc.CallOption) (*QuerySimulateWithdrawalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QuerySimulateWithdrawalResponse) + err := c.cc.Invoke(ctx, Query_SimulateWithdrawal_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InflightFunds(ctx context.Context, in *QueryInflightFundsRequest, opts ...grpc.CallOption) (*QueryInflightFundsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryInflightFundsResponse) + err := c.cc.Invoke(ctx, Query_InflightFunds_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) StaleInflightFunds(ctx context.Context, in *QueryStaleInflightFundsRequest, opts ...grpc.CallOption) (*QueryStaleInflightFundsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryStaleInflightFundsResponse) + err := c.cc.Invoke(ctx, Query_StaleInflightFunds_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Stats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryStatsResponse) + err := c.cc.Invoke(ctx, Query_Stats_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility. +// +// Query defines the gRPC querier service for V2 vaults +type QueryServer interface { + // VaultStats returns statistics for the primary V2 vault + VaultStats(context.Context, *QueryVaultStatsRequest) (*QueryVaultStatsResponse, error) + // VaultInfo returns configuration and state for a specific vault type + VaultInfo(context.Context, *QueryVaultInfoRequest) (*QueryVaultInfoResponse, error) + // AllVaults returns information for all vault types + AllVaults(context.Context, *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) + // UserPosition returns a user's position in a specific vault + UserPosition(context.Context, *QueryUserPositionRequest) (*QueryUserPositionResponse, error) + // UserPositions returns all of a user's positions across vault types + UserPositions(context.Context, *QueryUserPositionsRequest) (*QueryUserPositionsResponse, error) + // YieldInfo returns the current yield information for a vault type + YieldInfo(context.Context, *QueryYieldInfoRequest) (*QueryYieldInfoResponse, error) + // NAV returns current NAV with breakdown (spec-aligned) + NAV(context.Context, *QueryNAVRequest) (*QueryNAVResponse, error) + // CrossChainRoutes returns all available cross-chain routes + CrossChainRoutes(context.Context, *QueryCrossChainRoutesRequest) (*QueryCrossChainRoutesResponse, error) + // CrossChainRoute returns information for a specific route + CrossChainRoute(context.Context, *QueryCrossChainRouteRequest) (*QueryCrossChainRouteResponse, error) + // RemotePosition returns a user's remote position on a specific route + RemotePosition(context.Context, *QueryRemotePositionRequest) (*QueryRemotePositionResponse, error) + // RemotePositions returns all remote positions for a user + RemotePositions(context.Context, *QueryRemotePositionsRequest) (*QueryRemotePositionsResponse, error) + // VaultRemotePositions returns all remote positions for the vault (spec-aligned) + VaultRemotePositions(context.Context, *QueryVaultRemotePositionsRequest) (*QueryVaultRemotePositionsResponse, error) + // InflightFund returns information about an in-flight operation + InflightFund(context.Context, *QueryInflightFundRequest) (*QueryInflightFundResponse, error) + // InflightFundsUser returns all in-flight operations for a user + InflightFundsUser(context.Context, *QueryInflightFundsUserRequest) (*QueryInflightFundsUserResponse, error) + // CrossChainSnapshot returns cross-chain position snapshot for a vault + CrossChainSnapshot(context.Context, *QueryCrossChainSnapshotRequest) (*QueryCrossChainSnapshotResponse, error) + // StaleInflightAlerts returns stale inflight alerts for a user or route + StaleInflightAlerts(context.Context, *QueryStaleInflightAlertsRequest) (*QueryStaleInflightAlertsResponse, error) + // WithdrawalQueue returns the current withdrawal queue (spec-aligned) + WithdrawalQueue(context.Context, *QueryWithdrawalQueueRequest) (*QueryWithdrawalQueueResponse, error) + // UserWithdrawals returns all withdrawal requests for a user (spec-aligned) + UserWithdrawals(context.Context, *QueryUserWithdrawalsRequest) (*QueryUserWithdrawalsResponse, error) + // UserBalance returns deposit balance and yield for a user (spec-aligned) + UserBalance(context.Context, *QueryUserBalanceRequest) (*QueryUserBalanceResponse, error) + // DepositVelocity returns deposit velocity metrics (spec-aligned) + DepositVelocity(context.Context, *QueryDepositVelocityRequest) (*QueryDepositVelocityResponse, error) + // SimulateDeposit (spec-aligned) + SimulateDeposit(context.Context, *QuerySimulateDepositRequest) (*QuerySimulateDepositResponse, error) + // SimulateWithdrawal (spec-aligned) + SimulateWithdrawal(context.Context, *QuerySimulateWithdrawalRequest) (*QuerySimulateWithdrawalResponse, error) + // InflightFunds (spec-aligned aggregate view) + InflightFunds(context.Context, *QueryInflightFundsRequest) (*QueryInflightFundsResponse, error) + // StaleInflightFunds (spec-aligned aggregate view) + StaleInflightFunds(context.Context, *QueryStaleInflightFundsRequest) (*QueryStaleInflightFundsResponse, error) + // Stats returns statistics for a vault type + Stats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error) + // Params returns the module parameters + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQueryServer struct{} + +func (UnimplementedQueryServer) VaultStats(context.Context, *QueryVaultStatsRequest) (*QueryVaultStatsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VaultStats not implemented") +} +func (UnimplementedQueryServer) VaultInfo(context.Context, *QueryVaultInfoRequest) (*QueryVaultInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VaultInfo not implemented") +} +func (UnimplementedQueryServer) AllVaults(context.Context, *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllVaults not implemented") +} +func (UnimplementedQueryServer) UserPosition(context.Context, *QueryUserPositionRequest) (*QueryUserPositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserPosition not implemented") +} +func (UnimplementedQueryServer) UserPositions(context.Context, *QueryUserPositionsRequest) (*QueryUserPositionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserPositions not implemented") +} +func (UnimplementedQueryServer) YieldInfo(context.Context, *QueryYieldInfoRequest) (*QueryYieldInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method YieldInfo not implemented") +} +func (UnimplementedQueryServer) NAV(context.Context, *QueryNAVRequest) (*QueryNAVResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NAV not implemented") +} +func (UnimplementedQueryServer) CrossChainRoutes(context.Context, *QueryCrossChainRoutesRequest) (*QueryCrossChainRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CrossChainRoutes not implemented") +} +func (UnimplementedQueryServer) CrossChainRoute(context.Context, *QueryCrossChainRouteRequest) (*QueryCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CrossChainRoute not implemented") +} +func (UnimplementedQueryServer) RemotePosition(context.Context, *QueryRemotePositionRequest) (*QueryRemotePositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemotePosition not implemented") +} +func (UnimplementedQueryServer) RemotePositions(context.Context, *QueryRemotePositionsRequest) (*QueryRemotePositionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemotePositions not implemented") +} +func (UnimplementedQueryServer) VaultRemotePositions(context.Context, *QueryVaultRemotePositionsRequest) (*QueryVaultRemotePositionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VaultRemotePositions not implemented") +} +func (UnimplementedQueryServer) InflightFund(context.Context, *QueryInflightFundRequest) (*QueryInflightFundResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InflightFund not implemented") +} +func (UnimplementedQueryServer) InflightFundsUser(context.Context, *QueryInflightFundsUserRequest) (*QueryInflightFundsUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InflightFundsUser not implemented") +} +func (UnimplementedQueryServer) CrossChainSnapshot(context.Context, *QueryCrossChainSnapshotRequest) (*QueryCrossChainSnapshotResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CrossChainSnapshot not implemented") +} +func (UnimplementedQueryServer) StaleInflightAlerts(context.Context, *QueryStaleInflightAlertsRequest) (*QueryStaleInflightAlertsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StaleInflightAlerts not implemented") +} +func (UnimplementedQueryServer) WithdrawalQueue(context.Context, *QueryWithdrawalQueueRequest) (*QueryWithdrawalQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WithdrawalQueue not implemented") +} +func (UnimplementedQueryServer) UserWithdrawals(context.Context, *QueryUserWithdrawalsRequest) (*QueryUserWithdrawalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserWithdrawals not implemented") +} +func (UnimplementedQueryServer) UserBalance(context.Context, *QueryUserBalanceRequest) (*QueryUserBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserBalance not implemented") +} +func (UnimplementedQueryServer) DepositVelocity(context.Context, *QueryDepositVelocityRequest) (*QueryDepositVelocityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositVelocity not implemented") +} +func (UnimplementedQueryServer) SimulateDeposit(context.Context, *QuerySimulateDepositRequest) (*QuerySimulateDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateDeposit not implemented") +} +func (UnimplementedQueryServer) SimulateWithdrawal(context.Context, *QuerySimulateWithdrawalRequest) (*QuerySimulateWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateWithdrawal not implemented") +} +func (UnimplementedQueryServer) InflightFunds(context.Context, *QueryInflightFundsRequest) (*QueryInflightFundsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InflightFunds not implemented") +} +func (UnimplementedQueryServer) StaleInflightFunds(context.Context, *QueryStaleInflightFundsRequest) (*QueryStaleInflightFundsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StaleInflightFunds not implemented") +} +func (UnimplementedQueryServer) Stats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stats not implemented") +} +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} +func (UnimplementedQueryServer) testEmbeddedByValue() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + // If the following call pancis, it indicates UnimplementedQueryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_VaultStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).VaultStats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_VaultStats_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).VaultStats(ctx, req.(*QueryVaultStatsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_VaultInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).VaultInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_VaultInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).VaultInfo(ctx, req.(*QueryVaultInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AllVaults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllVaultsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllVaults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_AllVaults_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllVaults(ctx, req.(*QueryAllVaultsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserPositionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserPosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_UserPosition_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserPosition(ctx, req.(*QueryUserPositionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserPositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserPositionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserPositions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_UserPositions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserPositions(ctx, req.(*QueryUserPositionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_YieldInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryYieldInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).YieldInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_YieldInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).YieldInfo(ctx, req.(*QueryYieldInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NAV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNAVRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NAV(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_NAV_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NAV(ctx, req.(*QueryNAVRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CrossChainRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCrossChainRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CrossChainRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_CrossChainRoutes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CrossChainRoutes(ctx, req.(*QueryCrossChainRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCrossChainRouteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_CrossChainRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CrossChainRoute(ctx, req.(*QueryCrossChainRouteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RemotePosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRemotePositionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RemotePosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RemotePosition_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RemotePosition(ctx, req.(*QueryRemotePositionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RemotePositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRemotePositionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RemotePositions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_RemotePositions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RemotePositions(ctx, req.(*QueryRemotePositionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_VaultRemotePositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultRemotePositionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).VaultRemotePositions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_VaultRemotePositions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).VaultRemotePositions(ctx, req.(*QueryVaultRemotePositionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InflightFund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInflightFundRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InflightFund(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_InflightFund_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InflightFund(ctx, req.(*QueryInflightFundRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InflightFundsUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInflightFundsUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InflightFundsUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_InflightFundsUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InflightFundsUser(ctx, req.(*QueryInflightFundsUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CrossChainSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCrossChainSnapshotRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CrossChainSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_CrossChainSnapshot_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CrossChainSnapshot(ctx, req.(*QueryCrossChainSnapshotRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_StaleInflightAlerts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStaleInflightAlertsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).StaleInflightAlerts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_StaleInflightAlerts_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).StaleInflightAlerts(ctx, req.(*QueryStaleInflightAlertsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_WithdrawalQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryWithdrawalQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).WithdrawalQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_WithdrawalQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).WithdrawalQueue(ctx, req.(*QueryWithdrawalQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserWithdrawals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserWithdrawalsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserWithdrawals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_UserWithdrawals_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserWithdrawals(ctx, req.(*QueryUserWithdrawalsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_UserBalance_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserBalance(ctx, req.(*QueryUserBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DepositVelocity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDepositVelocityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DepositVelocity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_DepositVelocity_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DepositVelocity(ctx, req.(*QueryDepositVelocityRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_SimulateDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySimulateDepositRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).SimulateDeposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_SimulateDeposit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SimulateDeposit(ctx, req.(*QuerySimulateDepositRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_SimulateWithdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySimulateWithdrawalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).SimulateWithdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_SimulateWithdrawal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SimulateWithdrawal(ctx, req.(*QuerySimulateWithdrawalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InflightFunds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInflightFundsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InflightFunds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_InflightFunds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InflightFunds(ctx, req.(*QueryInflightFundsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_StaleInflightFunds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStaleInflightFundsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).StaleInflightFunds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_StaleInflightFunds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).StaleInflightFunds(ctx, req.(*QueryStaleInflightFundsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Stats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Stats_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Stats(ctx, req.(*QueryStatsRequest)) + } + 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: Query_Params_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "noble.dollar.vaults.v2.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "VaultStats", + Handler: _Query_VaultStats_Handler, + }, + { + MethodName: "VaultInfo", + Handler: _Query_VaultInfo_Handler, + }, + { + MethodName: "AllVaults", + Handler: _Query_AllVaults_Handler, + }, + { + MethodName: "UserPosition", + Handler: _Query_UserPosition_Handler, + }, + { + MethodName: "UserPositions", + Handler: _Query_UserPositions_Handler, + }, + { + MethodName: "YieldInfo", + Handler: _Query_YieldInfo_Handler, + }, + { + MethodName: "NAV", + Handler: _Query_NAV_Handler, + }, + { + MethodName: "CrossChainRoutes", + Handler: _Query_CrossChainRoutes_Handler, + }, + { + MethodName: "CrossChainRoute", + Handler: _Query_CrossChainRoute_Handler, + }, + { + MethodName: "RemotePosition", + Handler: _Query_RemotePosition_Handler, + }, + { + MethodName: "RemotePositions", + Handler: _Query_RemotePositions_Handler, + }, + { + MethodName: "VaultRemotePositions", + Handler: _Query_VaultRemotePositions_Handler, + }, + { + MethodName: "InflightFund", + Handler: _Query_InflightFund_Handler, + }, + { + MethodName: "InflightFundsUser", + Handler: _Query_InflightFundsUser_Handler, + }, + { + MethodName: "CrossChainSnapshot", + Handler: _Query_CrossChainSnapshot_Handler, + }, + { + MethodName: "StaleInflightAlerts", + Handler: _Query_StaleInflightAlerts_Handler, + }, + { + MethodName: "WithdrawalQueue", + Handler: _Query_WithdrawalQueue_Handler, + }, + { + MethodName: "UserWithdrawals", + Handler: _Query_UserWithdrawals_Handler, + }, + { + MethodName: "UserBalance", + Handler: _Query_UserBalance_Handler, + }, + { + MethodName: "DepositVelocity", + Handler: _Query_DepositVelocity_Handler, + }, + { + MethodName: "SimulateDeposit", + Handler: _Query_SimulateDeposit_Handler, + }, + { + MethodName: "SimulateWithdrawal", + Handler: _Query_SimulateWithdrawal_Handler, + }, + { + MethodName: "InflightFunds", + Handler: _Query_InflightFunds_Handler, + }, + { + MethodName: "StaleInflightFunds", + Handler: _Query_StaleInflightFunds_Handler, + }, + { + MethodName: "Stats", + Handler: _Query_Stats_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "noble/dollar/vaults/v2/query.proto", +} diff --git a/api/vaults/v2/tx.pulsar.go b/api/vaults/v2/tx.pulsar.go new file mode 100644 index 00000000..b4eefdbc --- /dev/null +++ b/api/vaults/v2/tx.pulsar.go @@ -0,0 +1,26528 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgDeposit protoreflect.MessageDescriptor + fd_MsgDeposit_depositor protoreflect.FieldDescriptor + fd_MsgDeposit_amount protoreflect.FieldDescriptor + fd_MsgDeposit_receive_yield protoreflect.FieldDescriptor + fd_MsgDeposit_receive_yield_override protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgDeposit = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgDeposit") + fd_MsgDeposit_depositor = md_MsgDeposit.Fields().ByName("depositor") + fd_MsgDeposit_amount = md_MsgDeposit.Fields().ByName("amount") + fd_MsgDeposit_receive_yield = md_MsgDeposit.Fields().ByName("receive_yield") + fd_MsgDeposit_receive_yield_override = md_MsgDeposit.Fields().ByName("receive_yield_override") +} + +var _ protoreflect.Message = (*fastReflection_MsgDeposit)(nil) + +type fastReflection_MsgDeposit MsgDeposit + +func (x *MsgDeposit) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDeposit)(x) +} + +func (x *MsgDeposit) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_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_MsgDeposit_messageType fastReflection_MsgDeposit_messageType +var _ protoreflect.MessageType = fastReflection_MsgDeposit_messageType{} + +type fastReflection_MsgDeposit_messageType struct{} + +func (x fastReflection_MsgDeposit_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDeposit)(nil) +} +func (x fastReflection_MsgDeposit_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDeposit) +} +func (x fastReflection_MsgDeposit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDeposit +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDeposit) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDeposit +} + +// 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_MsgDeposit) Type() protoreflect.MessageType { + return _fastReflection_MsgDeposit_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDeposit) New() protoreflect.Message { + return new(fastReflection_MsgDeposit) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDeposit) Interface() protoreflect.ProtoMessage { + return (*MsgDeposit)(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_MsgDeposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Depositor != "" { + value := protoreflect.ValueOfString(x.Depositor) + if !f(fd_MsgDeposit_depositor, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgDeposit_amount, value) { + return + } + } + if x.ReceiveYield != false { + value := protoreflect.ValueOfBool(x.ReceiveYield) + if !f(fd_MsgDeposit_receive_yield, value) { + return + } + } + if x.ReceiveYieldOverride != false { + value := protoreflect.ValueOfBool(x.ReceiveYieldOverride) + if !f(fd_MsgDeposit_receive_yield_override, 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_MsgDeposit) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDeposit.depositor": + return x.Depositor != "" + case "noble.dollar.vaults.v2.MsgDeposit.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield": + return x.ReceiveYield != false + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield_override": + return x.ReceiveYieldOverride != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDeposit 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_MsgDeposit) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDeposit.depositor": + x.Depositor = "" + case "noble.dollar.vaults.v2.MsgDeposit.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield": + x.ReceiveYield = false + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield_override": + x.ReceiveYieldOverride = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDeposit 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_MsgDeposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgDeposit.depositor": + value := x.Depositor + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgDeposit.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield": + value := x.ReceiveYield + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield_override": + value := x.ReceiveYieldOverride + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDeposit 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_MsgDeposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDeposit.depositor": + x.Depositor = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgDeposit.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield": + x.ReceiveYield = value.Bool() + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield_override": + x.ReceiveYieldOverride = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDeposit 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_MsgDeposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDeposit.depositor": + panic(fmt.Errorf("field depositor of message noble.dollar.vaults.v2.MsgDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgDeposit.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.MsgDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield": + panic(fmt.Errorf("field receive_yield of message noble.dollar.vaults.v2.MsgDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield_override": + panic(fmt.Errorf("field receive_yield_override of message noble.dollar.vaults.v2.MsgDeposit is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDeposit 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_MsgDeposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDeposit.depositor": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgDeposit.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.MsgDeposit.receive_yield_override": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDeposit 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_MsgDeposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgDeposit", 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_MsgDeposit) 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_MsgDeposit) 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_MsgDeposit) 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_MsgDeposit) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDeposit) + 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.Depositor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ReceiveYield { + n += 2 + } + if x.ReceiveYieldOverride { + n += 2 + } + 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().(*MsgDeposit) + 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.ReceiveYieldOverride { + i-- + if x.ReceiveYieldOverride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if x.ReceiveYield { + i-- + if x.ReceiveYield { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(x.Depositor) > 0 { + i -= len(x.Depositor) + copy(dAtA[i:], x.Depositor) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Depositor))) + 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().(*MsgDeposit) + 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: MsgDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeposit: 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 Depositor", 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.Depositor = 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 Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceiveYield", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ReceiveYield = bool(v != 0) + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceiveYieldOverride", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ReceiveYieldOverride = bool(v != 0) + 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, + } +} + +var ( + md_MsgDepositResponse protoreflect.MessageDescriptor + fd_MsgDepositResponse_amount_deposited protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgDepositResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgDepositResponse") + fd_MsgDepositResponse_amount_deposited = md_MsgDepositResponse.Fields().ByName("amount_deposited") +} + +var _ protoreflect.Message = (*fastReflection_MsgDepositResponse)(nil) + +type fastReflection_MsgDepositResponse MsgDepositResponse + +func (x *MsgDepositResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDepositResponse)(x) +} + +func (x *MsgDepositResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[1] + 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_MsgDepositResponse_messageType fastReflection_MsgDepositResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDepositResponse_messageType{} + +type fastReflection_MsgDepositResponse_messageType struct{} + +func (x fastReflection_MsgDepositResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDepositResponse)(nil) +} +func (x fastReflection_MsgDepositResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDepositResponse) +} +func (x fastReflection_MsgDepositResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDepositResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDepositResponse +} + +// 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_MsgDepositResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDepositResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDepositResponse) New() protoreflect.Message { + return new(fastReflection_MsgDepositResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDepositResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDepositResponse)(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_MsgDepositResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.AmountDeposited != "" { + value := protoreflect.ValueOfString(x.AmountDeposited) + if !f(fd_MsgDepositResponse_amount_deposited, 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_MsgDepositResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDepositResponse.amount_deposited": + return x.AmountDeposited != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDepositResponse 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_MsgDepositResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDepositResponse.amount_deposited": + x.AmountDeposited = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDepositResponse 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_MsgDepositResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgDepositResponse.amount_deposited": + value := x.AmountDeposited + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDepositResponse 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_MsgDepositResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDepositResponse.amount_deposited": + x.AmountDeposited = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDepositResponse 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_MsgDepositResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDepositResponse.amount_deposited": + panic(fmt.Errorf("field amount_deposited of message noble.dollar.vaults.v2.MsgDepositResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDepositResponse 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_MsgDepositResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDepositResponse.amount_deposited": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDepositResponse 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_MsgDepositResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgDepositResponse", 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_MsgDepositResponse) 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_MsgDepositResponse) 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_MsgDepositResponse) 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_MsgDepositResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDepositResponse) + 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.AmountDeposited) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgDepositResponse) + 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 len(x.AmountDeposited) > 0 { + i -= len(x.AmountDeposited) + copy(dAtA[i:], x.AmountDeposited) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountDeposited))) + 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().(*MsgDepositResponse) + 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: MsgDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDepositResponse: 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 AmountDeposited", 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.AmountDeposited = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgSetYieldPreference protoreflect.MessageDescriptor + fd_MsgSetYieldPreference_user protoreflect.FieldDescriptor + fd_MsgSetYieldPreference_receive_yield protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgSetYieldPreference = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgSetYieldPreference") + fd_MsgSetYieldPreference_user = md_MsgSetYieldPreference.Fields().ByName("user") + fd_MsgSetYieldPreference_receive_yield = md_MsgSetYieldPreference.Fields().ByName("receive_yield") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetYieldPreference)(nil) + +type fastReflection_MsgSetYieldPreference MsgSetYieldPreference + +func (x *MsgSetYieldPreference) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetYieldPreference)(x) +} + +func (x *MsgSetYieldPreference) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[2] + 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_MsgSetYieldPreference_messageType fastReflection_MsgSetYieldPreference_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetYieldPreference_messageType{} + +type fastReflection_MsgSetYieldPreference_messageType struct{} + +func (x fastReflection_MsgSetYieldPreference_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetYieldPreference)(nil) +} +func (x fastReflection_MsgSetYieldPreference_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetYieldPreference) +} +func (x fastReflection_MsgSetYieldPreference_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetYieldPreference +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetYieldPreference) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetYieldPreference +} + +// 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_MsgSetYieldPreference) Type() protoreflect.MessageType { + return _fastReflection_MsgSetYieldPreference_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetYieldPreference) New() protoreflect.Message { + return new(fastReflection_MsgSetYieldPreference) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetYieldPreference) Interface() protoreflect.ProtoMessage { + return (*MsgSetYieldPreference)(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_MsgSetYieldPreference) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.User != "" { + value := protoreflect.ValueOfString(x.User) + if !f(fd_MsgSetYieldPreference_user, value) { + return + } + } + if x.ReceiveYield != false { + value := protoreflect.ValueOfBool(x.ReceiveYield) + if !f(fd_MsgSetYieldPreference_receive_yield, 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_MsgSetYieldPreference) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreference.user": + return x.User != "" + case "noble.dollar.vaults.v2.MsgSetYieldPreference.receive_yield": + return x.ReceiveYield != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreference")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreference 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_MsgSetYieldPreference) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreference.user": + x.User = "" + case "noble.dollar.vaults.v2.MsgSetYieldPreference.receive_yield": + x.ReceiveYield = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreference")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreference 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_MsgSetYieldPreference) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreference.user": + value := x.User + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgSetYieldPreference.receive_yield": + value := x.ReceiveYield + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreference")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreference 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_MsgSetYieldPreference) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreference.user": + x.User = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgSetYieldPreference.receive_yield": + x.ReceiveYield = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreference")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreference 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_MsgSetYieldPreference) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreference.user": + panic(fmt.Errorf("field user of message noble.dollar.vaults.v2.MsgSetYieldPreference is not mutable")) + case "noble.dollar.vaults.v2.MsgSetYieldPreference.receive_yield": + panic(fmt.Errorf("field receive_yield of message noble.dollar.vaults.v2.MsgSetYieldPreference is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreference")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreference 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_MsgSetYieldPreference) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreference.user": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgSetYieldPreference.receive_yield": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreference")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreference 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_MsgSetYieldPreference) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgSetYieldPreference", 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_MsgSetYieldPreference) 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_MsgSetYieldPreference) 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_MsgSetYieldPreference) 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_MsgSetYieldPreference) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetYieldPreference) + 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.User) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ReceiveYield { + n += 2 + } + 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().(*MsgSetYieldPreference) + 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.ReceiveYield { + i-- + if x.ReceiveYield { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(x.User) > 0 { + i -= len(x.User) + copy(dAtA[i:], x.User) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.User))) + 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().(*MsgSetYieldPreference) + 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: MsgSetYieldPreference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetYieldPreference: 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 User", 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.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceiveYield", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ReceiveYield = bool(v != 0) + 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, + } +} + +var ( + md_MsgSetYieldPreferenceResponse protoreflect.MessageDescriptor + fd_MsgSetYieldPreferenceResponse_previous_preference protoreflect.FieldDescriptor + fd_MsgSetYieldPreferenceResponse_new_preference protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgSetYieldPreferenceResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgSetYieldPreferenceResponse") + fd_MsgSetYieldPreferenceResponse_previous_preference = md_MsgSetYieldPreferenceResponse.Fields().ByName("previous_preference") + fd_MsgSetYieldPreferenceResponse_new_preference = md_MsgSetYieldPreferenceResponse.Fields().ByName("new_preference") +} + +var _ protoreflect.Message = (*fastReflection_MsgSetYieldPreferenceResponse)(nil) + +type fastReflection_MsgSetYieldPreferenceResponse MsgSetYieldPreferenceResponse + +func (x *MsgSetYieldPreferenceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSetYieldPreferenceResponse)(x) +} + +func (x *MsgSetYieldPreferenceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[3] + 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_MsgSetYieldPreferenceResponse_messageType fastReflection_MsgSetYieldPreferenceResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSetYieldPreferenceResponse_messageType{} + +type fastReflection_MsgSetYieldPreferenceResponse_messageType struct{} + +func (x fastReflection_MsgSetYieldPreferenceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSetYieldPreferenceResponse)(nil) +} +func (x fastReflection_MsgSetYieldPreferenceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSetYieldPreferenceResponse) +} +func (x fastReflection_MsgSetYieldPreferenceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetYieldPreferenceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSetYieldPreferenceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSetYieldPreferenceResponse +} + +// 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_MsgSetYieldPreferenceResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSetYieldPreferenceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSetYieldPreferenceResponse) New() protoreflect.Message { + return new(fastReflection_MsgSetYieldPreferenceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSetYieldPreferenceResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSetYieldPreferenceResponse)(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_MsgSetYieldPreferenceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousPreference != false { + value := protoreflect.ValueOfBool(x.PreviousPreference) + if !f(fd_MsgSetYieldPreferenceResponse_previous_preference, value) { + return + } + } + if x.NewPreference != false { + value := protoreflect.ValueOfBool(x.NewPreference) + if !f(fd_MsgSetYieldPreferenceResponse_new_preference, 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_MsgSetYieldPreferenceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.previous_preference": + return x.PreviousPreference != false + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.new_preference": + return x.NewPreference != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse 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_MsgSetYieldPreferenceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.previous_preference": + x.PreviousPreference = false + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.new_preference": + x.NewPreference = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse 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_MsgSetYieldPreferenceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.previous_preference": + value := x.PreviousPreference + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.new_preference": + value := x.NewPreference + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse 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_MsgSetYieldPreferenceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.previous_preference": + x.PreviousPreference = value.Bool() + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.new_preference": + x.NewPreference = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse 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_MsgSetYieldPreferenceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.previous_preference": + panic(fmt.Errorf("field previous_preference of message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.new_preference": + panic(fmt.Errorf("field new_preference of message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse 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_MsgSetYieldPreferenceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.previous_preference": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse.new_preference": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse 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_MsgSetYieldPreferenceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse", 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_MsgSetYieldPreferenceResponse) 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_MsgSetYieldPreferenceResponse) 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_MsgSetYieldPreferenceResponse) 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_MsgSetYieldPreferenceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSetYieldPreferenceResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PreviousPreference { + n += 2 + } + if x.NewPreference { + n += 2 + } + 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().(*MsgSetYieldPreferenceResponse) + 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.NewPreference { + i-- + if x.NewPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if x.PreviousPreference { + i-- + if x.PreviousPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + 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().(*MsgSetYieldPreferenceResponse) + 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: MsgSetYieldPreferenceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetYieldPreferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousPreference", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.PreviousPreference = bool(v != 0) + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewPreference", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.NewPreference = bool(v != 0) + 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, + } +} + +var ( + md_MsgUpdateVaultConfig protoreflect.MessageDescriptor + fd_MsgUpdateVaultConfig_authority protoreflect.FieldDescriptor + fd_MsgUpdateVaultConfig_config protoreflect.FieldDescriptor + fd_MsgUpdateVaultConfig_reason protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateVaultConfig = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateVaultConfig") + fd_MsgUpdateVaultConfig_authority = md_MsgUpdateVaultConfig.Fields().ByName("authority") + fd_MsgUpdateVaultConfig_config = md_MsgUpdateVaultConfig.Fields().ByName("config") + fd_MsgUpdateVaultConfig_reason = md_MsgUpdateVaultConfig.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateVaultConfig)(nil) + +type fastReflection_MsgUpdateVaultConfig MsgUpdateVaultConfig + +func (x *MsgUpdateVaultConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateVaultConfig)(x) +} + +func (x *MsgUpdateVaultConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[4] + 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_MsgUpdateVaultConfig_messageType fastReflection_MsgUpdateVaultConfig_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateVaultConfig_messageType{} + +type fastReflection_MsgUpdateVaultConfig_messageType struct{} + +func (x fastReflection_MsgUpdateVaultConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateVaultConfig)(nil) +} +func (x fastReflection_MsgUpdateVaultConfig_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateVaultConfig) +} +func (x fastReflection_MsgUpdateVaultConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateVaultConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateVaultConfig) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateVaultConfig +} + +// 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_MsgUpdateVaultConfig) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateVaultConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateVaultConfig) New() protoreflect.Message { + return new(fastReflection_MsgUpdateVaultConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateVaultConfig) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateVaultConfig)(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_MsgUpdateVaultConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateVaultConfig_authority, value) { + return + } + } + if x.Config != nil { + value := protoreflect.ValueOfMessage(x.Config.ProtoReflect()) + if !f(fd_MsgUpdateVaultConfig_config, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgUpdateVaultConfig_reason, 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_MsgUpdateVaultConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.config": + return x.Config != nil + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.reason": + return x.Reason != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfig 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_MsgUpdateVaultConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.config": + x.Config = nil + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.reason": + x.Reason = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfig 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_MsgUpdateVaultConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.config": + value := x.Config + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfig 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_MsgUpdateVaultConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.config": + x.Config = value.Message().Interface().(*VaultConfig) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.reason": + x.Reason = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfig 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_MsgUpdateVaultConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.config": + if x.Config == nil { + x.Config = new(VaultConfig) + } + return protoreflect.ValueOfMessage(x.Config.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateVaultConfig is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.MsgUpdateVaultConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfig 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_MsgUpdateVaultConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.config": + m := new(VaultConfig) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfig.reason": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfig 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_MsgUpdateVaultConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateVaultConfig", 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_MsgUpdateVaultConfig) 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_MsgUpdateVaultConfig) 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_MsgUpdateVaultConfig) 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_MsgUpdateVaultConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateVaultConfig) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Config != nil { + l = options.Size(x.Config) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateVaultConfig) + 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 len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x1a + } + if x.Config != nil { + encoded, err := options.Marshal(x.Config) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateVaultConfig) + 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: MsgUpdateVaultConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateVaultConfig: 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 Authority", 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.Authority = 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 Config", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Config == nil { + x.Config = &VaultConfig{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Config); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateVaultConfigResponse protoreflect.MessageDescriptor + fd_MsgUpdateVaultConfigResponse_previous_config protoreflect.FieldDescriptor + fd_MsgUpdateVaultConfigResponse_new_config protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateVaultConfigResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateVaultConfigResponse") + fd_MsgUpdateVaultConfigResponse_previous_config = md_MsgUpdateVaultConfigResponse.Fields().ByName("previous_config") + fd_MsgUpdateVaultConfigResponse_new_config = md_MsgUpdateVaultConfigResponse.Fields().ByName("new_config") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateVaultConfigResponse)(nil) + +type fastReflection_MsgUpdateVaultConfigResponse MsgUpdateVaultConfigResponse + +func (x *MsgUpdateVaultConfigResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateVaultConfigResponse)(x) +} + +func (x *MsgUpdateVaultConfigResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[5] + 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_MsgUpdateVaultConfigResponse_messageType fastReflection_MsgUpdateVaultConfigResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateVaultConfigResponse_messageType{} + +type fastReflection_MsgUpdateVaultConfigResponse_messageType struct{} + +func (x fastReflection_MsgUpdateVaultConfigResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateVaultConfigResponse)(nil) +} +func (x fastReflection_MsgUpdateVaultConfigResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateVaultConfigResponse) +} +func (x fastReflection_MsgUpdateVaultConfigResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateVaultConfigResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateVaultConfigResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateVaultConfigResponse +} + +// 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_MsgUpdateVaultConfigResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateVaultConfigResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateVaultConfigResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateVaultConfigResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateVaultConfigResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateVaultConfigResponse)(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_MsgUpdateVaultConfigResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousConfig != "" { + value := protoreflect.ValueOfString(x.PreviousConfig) + if !f(fd_MsgUpdateVaultConfigResponse_previous_config, value) { + return + } + } + if x.NewConfig != "" { + value := protoreflect.ValueOfString(x.NewConfig) + if !f(fd_MsgUpdateVaultConfigResponse_new_config, 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_MsgUpdateVaultConfigResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.previous_config": + return x.PreviousConfig != "" + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.new_config": + return x.NewConfig != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse 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_MsgUpdateVaultConfigResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.previous_config": + x.PreviousConfig = "" + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.new_config": + x.NewConfig = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse 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_MsgUpdateVaultConfigResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.previous_config": + value := x.PreviousConfig + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.new_config": + value := x.NewConfig + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse 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_MsgUpdateVaultConfigResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.previous_config": + x.PreviousConfig = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.new_config": + x.NewConfig = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse 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_MsgUpdateVaultConfigResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.previous_config": + panic(fmt.Errorf("field previous_config of message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.new_config": + panic(fmt.Errorf("field new_config of message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse 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_MsgUpdateVaultConfigResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.previous_config": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse.new_config": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse 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_MsgUpdateVaultConfigResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse", 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_MsgUpdateVaultConfigResponse) 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_MsgUpdateVaultConfigResponse) 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_MsgUpdateVaultConfigResponse) 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_MsgUpdateVaultConfigResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateVaultConfigResponse) + 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.PreviousConfig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewConfig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateVaultConfigResponse) + 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 len(x.NewConfig) > 0 { + i -= len(x.NewConfig) + copy(dAtA[i:], x.NewConfig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewConfig))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousConfig) > 0 { + i -= len(x.PreviousConfig) + copy(dAtA[i:], x.PreviousConfig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousConfig))) + 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().(*MsgUpdateVaultConfigResponse) + 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: MsgUpdateVaultConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateVaultConfigResponse: 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 PreviousConfig", 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.PreviousConfig = 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 NewConfig", 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.NewConfig = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateParams protoreflect.MessageDescriptor + fd_MsgUpdateParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateParams_params protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateParams = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateParams") + fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") + fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) + +type fastReflection_MsgUpdateParams MsgUpdateParams + +func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(x) +} + +func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[6] + 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_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} + +type fastReflection_MsgUpdateParams_messageType struct{} + +func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(nil) +} +func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} +func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// 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_MsgUpdateParams) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateParams_authority, value) { + return + } + } + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateParams.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateParams.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateParams.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateParams.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateParams.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateParams.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateParams.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateParams.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParams 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_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateParams.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateParams.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParams")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParams 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_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParams) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateParams) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateParams) + 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: 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 Authority", 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.Authority = 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 Params", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateParamsResponse protoreflect.MessageDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateParamsResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateParamsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) + +type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse + +func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(x) +} + +func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[7] + 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_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} + +type fastReflection_MsgUpdateParamsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(nil) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// 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_MsgUpdateParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParamsResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + 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().(*MsgUpdateParamsResponse) + 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 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().(*MsgUpdateParamsResponse) + 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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, + } +} + +var ( + md_MsgCreateCrossChainRoute protoreflect.MessageDescriptor + fd_MsgCreateCrossChainRoute_authority protoreflect.FieldDescriptor + fd_MsgCreateCrossChainRoute_route protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCreateCrossChainRoute = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCreateCrossChainRoute") + fd_MsgCreateCrossChainRoute_authority = md_MsgCreateCrossChainRoute.Fields().ByName("authority") + fd_MsgCreateCrossChainRoute_route = md_MsgCreateCrossChainRoute.Fields().ByName("route") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateCrossChainRoute)(nil) + +type fastReflection_MsgCreateCrossChainRoute MsgCreateCrossChainRoute + +func (x *MsgCreateCrossChainRoute) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateCrossChainRoute)(x) +} + +func (x *MsgCreateCrossChainRoute) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[8] + 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_MsgCreateCrossChainRoute_messageType fastReflection_MsgCreateCrossChainRoute_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateCrossChainRoute_messageType{} + +type fastReflection_MsgCreateCrossChainRoute_messageType struct{} + +func (x fastReflection_MsgCreateCrossChainRoute_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateCrossChainRoute)(nil) +} +func (x fastReflection_MsgCreateCrossChainRoute_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateCrossChainRoute) +} +func (x fastReflection_MsgCreateCrossChainRoute_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateCrossChainRoute +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateCrossChainRoute) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateCrossChainRoute +} + +// 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_MsgCreateCrossChainRoute) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateCrossChainRoute_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateCrossChainRoute) New() protoreflect.Message { + return new(fastReflection_MsgCreateCrossChainRoute) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateCrossChainRoute) Interface() protoreflect.ProtoMessage { + return (*MsgCreateCrossChainRoute)(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_MsgCreateCrossChainRoute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgCreateCrossChainRoute_authority, value) { + return + } + } + if x.Route != nil { + value := protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + if !f(fd_MsgCreateCrossChainRoute_route, 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_MsgCreateCrossChainRoute) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route": + return x.Route != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRoute 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_MsgCreateCrossChainRoute) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route": + x.Route = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRoute 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_MsgCreateCrossChainRoute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route": + value := x.Route + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRoute 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_MsgCreateCrossChainRoute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route": + x.Route = value.Message().Interface().(*CrossChainRoute) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRoute 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_MsgCreateCrossChainRoute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route": + if x.Route == nil { + x.Route = new(CrossChainRoute) + } + return protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgCreateCrossChainRoute is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRoute 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_MsgCreateCrossChainRoute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route": + m := new(CrossChainRoute) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRoute 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_MsgCreateCrossChainRoute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCreateCrossChainRoute", 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_MsgCreateCrossChainRoute) 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_MsgCreateCrossChainRoute) 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_MsgCreateCrossChainRoute) 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_MsgCreateCrossChainRoute) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateCrossChainRoute) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Route != nil { + l = options.Size(x.Route) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCreateCrossChainRoute) + 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.Route != nil { + encoded, err := options.Marshal(x.Route) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgCreateCrossChainRoute) + 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: MsgCreateCrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCrossChainRoute: 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 Authority", 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.Authority = 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 Route", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Route == nil { + x.Route = &CrossChainRoute{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Route); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgCreateCrossChainRouteResponse protoreflect.MessageDescriptor + fd_MsgCreateCrossChainRouteResponse_route_id protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCreateCrossChainRouteResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCreateCrossChainRouteResponse") + fd_MsgCreateCrossChainRouteResponse_route_id = md_MsgCreateCrossChainRouteResponse.Fields().ByName("route_id") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateCrossChainRouteResponse)(nil) + +type fastReflection_MsgCreateCrossChainRouteResponse MsgCreateCrossChainRouteResponse + +func (x *MsgCreateCrossChainRouteResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateCrossChainRouteResponse)(x) +} + +func (x *MsgCreateCrossChainRouteResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[9] + 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_MsgCreateCrossChainRouteResponse_messageType fastReflection_MsgCreateCrossChainRouteResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateCrossChainRouteResponse_messageType{} + +type fastReflection_MsgCreateCrossChainRouteResponse_messageType struct{} + +func (x fastReflection_MsgCreateCrossChainRouteResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateCrossChainRouteResponse)(nil) +} +func (x fastReflection_MsgCreateCrossChainRouteResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateCrossChainRouteResponse) +} +func (x fastReflection_MsgCreateCrossChainRouteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateCrossChainRouteResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateCrossChainRouteResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateCrossChainRouteResponse +} + +// 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_MsgCreateCrossChainRouteResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateCrossChainRouteResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateCrossChainRouteResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateCrossChainRouteResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateCrossChainRouteResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateCrossChainRouteResponse)(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_MsgCreateCrossChainRouteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgCreateCrossChainRouteResponse_route_id, 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_MsgCreateCrossChainRouteResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse.route_id": + return x.RouteId != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse 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_MsgCreateCrossChainRouteResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse.route_id": + x.RouteId = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse 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_MsgCreateCrossChainRouteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse 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_MsgCreateCrossChainRouteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse.route_id": + x.RouteId = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse 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_MsgCreateCrossChainRouteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse 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_MsgCreateCrossChainRouteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse 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_MsgCreateCrossChainRouteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse", 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_MsgCreateCrossChainRouteResponse) 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_MsgCreateCrossChainRouteResponse) 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_MsgCreateCrossChainRouteResponse) 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_MsgCreateCrossChainRouteResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateCrossChainRouteResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + 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().(*MsgCreateCrossChainRouteResponse) + 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.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgCreateCrossChainRouteResponse) + 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: MsgCreateCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(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, + } +} + +var ( + md_MsgUpdateCrossChainRoute protoreflect.MessageDescriptor + fd_MsgUpdateCrossChainRoute_authority protoreflect.FieldDescriptor + fd_MsgUpdateCrossChainRoute_route_id protoreflect.FieldDescriptor + fd_MsgUpdateCrossChainRoute_route protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateCrossChainRoute = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateCrossChainRoute") + fd_MsgUpdateCrossChainRoute_authority = md_MsgUpdateCrossChainRoute.Fields().ByName("authority") + fd_MsgUpdateCrossChainRoute_route_id = md_MsgUpdateCrossChainRoute.Fields().ByName("route_id") + fd_MsgUpdateCrossChainRoute_route = md_MsgUpdateCrossChainRoute.Fields().ByName("route") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateCrossChainRoute)(nil) + +type fastReflection_MsgUpdateCrossChainRoute MsgUpdateCrossChainRoute + +func (x *MsgUpdateCrossChainRoute) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateCrossChainRoute)(x) +} + +func (x *MsgUpdateCrossChainRoute) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[10] + 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_MsgUpdateCrossChainRoute_messageType fastReflection_MsgUpdateCrossChainRoute_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateCrossChainRoute_messageType{} + +type fastReflection_MsgUpdateCrossChainRoute_messageType struct{} + +func (x fastReflection_MsgUpdateCrossChainRoute_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateCrossChainRoute)(nil) +} +func (x fastReflection_MsgUpdateCrossChainRoute_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateCrossChainRoute) +} +func (x fastReflection_MsgUpdateCrossChainRoute_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateCrossChainRoute +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateCrossChainRoute) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateCrossChainRoute +} + +// 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_MsgUpdateCrossChainRoute) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateCrossChainRoute_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateCrossChainRoute) New() protoreflect.Message { + return new(fastReflection_MsgUpdateCrossChainRoute) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateCrossChainRoute) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateCrossChainRoute)(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_MsgUpdateCrossChainRoute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateCrossChainRoute_authority, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgUpdateCrossChainRoute_route_id, value) { + return + } + } + if x.Route != nil { + value := protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + if !f(fd_MsgUpdateCrossChainRoute_route, 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_MsgUpdateCrossChainRoute) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route": + return x.Route != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute 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_MsgUpdateCrossChainRoute) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route": + x.Route = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute 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_MsgUpdateCrossChainRoute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route": + value := x.Route + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute 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_MsgUpdateCrossChainRoute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route": + x.Route = value.Message().Interface().(*CrossChainRoute) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute 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_MsgUpdateCrossChainRoute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route": + if x.Route == nil { + x.Route = new(CrossChainRoute) + } + return protoreflect.ValueOfMessage(x.Route.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute 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_MsgUpdateCrossChainRoute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route": + m := new(CrossChainRoute) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRoute 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_MsgUpdateCrossChainRoute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateCrossChainRoute", 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_MsgUpdateCrossChainRoute) 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_MsgUpdateCrossChainRoute) 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_MsgUpdateCrossChainRoute) 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_MsgUpdateCrossChainRoute) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateCrossChainRoute) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + if x.Route != nil { + l = options.Size(x.Route) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateCrossChainRoute) + 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.Route != nil { + encoded, err := options.Marshal(x.Route) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateCrossChainRoute) + 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: MsgUpdateCrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateCrossChainRoute: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Route == nil { + x.Route = &CrossChainRoute{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Route); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateCrossChainRouteResponse protoreflect.MessageDescriptor + fd_MsgUpdateCrossChainRouteResponse_route_id protoreflect.FieldDescriptor + fd_MsgUpdateCrossChainRouteResponse_previous_config protoreflect.FieldDescriptor + fd_MsgUpdateCrossChainRouteResponse_new_config protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateCrossChainRouteResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateCrossChainRouteResponse") + fd_MsgUpdateCrossChainRouteResponse_route_id = md_MsgUpdateCrossChainRouteResponse.Fields().ByName("route_id") + fd_MsgUpdateCrossChainRouteResponse_previous_config = md_MsgUpdateCrossChainRouteResponse.Fields().ByName("previous_config") + fd_MsgUpdateCrossChainRouteResponse_new_config = md_MsgUpdateCrossChainRouteResponse.Fields().ByName("new_config") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateCrossChainRouteResponse)(nil) + +type fastReflection_MsgUpdateCrossChainRouteResponse MsgUpdateCrossChainRouteResponse + +func (x *MsgUpdateCrossChainRouteResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateCrossChainRouteResponse)(x) +} + +func (x *MsgUpdateCrossChainRouteResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[11] + 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_MsgUpdateCrossChainRouteResponse_messageType fastReflection_MsgUpdateCrossChainRouteResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateCrossChainRouteResponse_messageType{} + +type fastReflection_MsgUpdateCrossChainRouteResponse_messageType struct{} + +func (x fastReflection_MsgUpdateCrossChainRouteResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateCrossChainRouteResponse)(nil) +} +func (x fastReflection_MsgUpdateCrossChainRouteResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateCrossChainRouteResponse) +} +func (x fastReflection_MsgUpdateCrossChainRouteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateCrossChainRouteResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateCrossChainRouteResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateCrossChainRouteResponse +} + +// 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_MsgUpdateCrossChainRouteResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateCrossChainRouteResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateCrossChainRouteResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateCrossChainRouteResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateCrossChainRouteResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateCrossChainRouteResponse)(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_MsgUpdateCrossChainRouteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgUpdateCrossChainRouteResponse_route_id, value) { + return + } + } + if x.PreviousConfig != "" { + value := protoreflect.ValueOfString(x.PreviousConfig) + if !f(fd_MsgUpdateCrossChainRouteResponse_previous_config, value) { + return + } + } + if x.NewConfig != "" { + value := protoreflect.ValueOfString(x.NewConfig) + if !f(fd_MsgUpdateCrossChainRouteResponse_new_config, 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_MsgUpdateCrossChainRouteResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.previous_config": + return x.PreviousConfig != "" + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.new_config": + return x.NewConfig != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse 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_MsgUpdateCrossChainRouteResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.previous_config": + x.PreviousConfig = "" + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.new_config": + x.NewConfig = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse 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_MsgUpdateCrossChainRouteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.previous_config": + value := x.PreviousConfig + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.new_config": + value := x.NewConfig + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse 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_MsgUpdateCrossChainRouteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.previous_config": + x.PreviousConfig = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.new_config": + x.NewConfig = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse 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_MsgUpdateCrossChainRouteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.previous_config": + panic(fmt.Errorf("field previous_config of message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.new_config": + panic(fmt.Errorf("field new_config of message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse 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_MsgUpdateCrossChainRouteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.previous_config": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse.new_config": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse 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_MsgUpdateCrossChainRouteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse", 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_MsgUpdateCrossChainRouteResponse) 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_MsgUpdateCrossChainRouteResponse) 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_MsgUpdateCrossChainRouteResponse) 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_MsgUpdateCrossChainRouteResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateCrossChainRouteResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.PreviousConfig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewConfig) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateCrossChainRouteResponse) + 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 len(x.NewConfig) > 0 { + i -= len(x.NewConfig) + copy(dAtA[i:], x.NewConfig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewConfig))) + i-- + dAtA[i] = 0x1a + } + if len(x.PreviousConfig) > 0 { + i -= len(x.PreviousConfig) + copy(dAtA[i:], x.PreviousConfig) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousConfig))) + i-- + dAtA[i] = 0x12 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgUpdateCrossChainRouteResponse) + 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: MsgUpdateCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousConfig", 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.PreviousConfig = 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 NewConfig", 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.NewConfig = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgDisableCrossChainRoute protoreflect.MessageDescriptor + fd_MsgDisableCrossChainRoute_authority protoreflect.FieldDescriptor + fd_MsgDisableCrossChainRoute_route_id protoreflect.FieldDescriptor + fd_MsgDisableCrossChainRoute_reason protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgDisableCrossChainRoute = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgDisableCrossChainRoute") + fd_MsgDisableCrossChainRoute_authority = md_MsgDisableCrossChainRoute.Fields().ByName("authority") + fd_MsgDisableCrossChainRoute_route_id = md_MsgDisableCrossChainRoute.Fields().ByName("route_id") + fd_MsgDisableCrossChainRoute_reason = md_MsgDisableCrossChainRoute.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgDisableCrossChainRoute)(nil) + +type fastReflection_MsgDisableCrossChainRoute MsgDisableCrossChainRoute + +func (x *MsgDisableCrossChainRoute) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDisableCrossChainRoute)(x) +} + +func (x *MsgDisableCrossChainRoute) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[12] + 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_MsgDisableCrossChainRoute_messageType fastReflection_MsgDisableCrossChainRoute_messageType +var _ protoreflect.MessageType = fastReflection_MsgDisableCrossChainRoute_messageType{} + +type fastReflection_MsgDisableCrossChainRoute_messageType struct{} + +func (x fastReflection_MsgDisableCrossChainRoute_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDisableCrossChainRoute)(nil) +} +func (x fastReflection_MsgDisableCrossChainRoute_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDisableCrossChainRoute) +} +func (x fastReflection_MsgDisableCrossChainRoute_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableCrossChainRoute +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDisableCrossChainRoute) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableCrossChainRoute +} + +// 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_MsgDisableCrossChainRoute) Type() protoreflect.MessageType { + return _fastReflection_MsgDisableCrossChainRoute_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDisableCrossChainRoute) New() protoreflect.Message { + return new(fastReflection_MsgDisableCrossChainRoute) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDisableCrossChainRoute) Interface() protoreflect.ProtoMessage { + return (*MsgDisableCrossChainRoute)(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_MsgDisableCrossChainRoute) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgDisableCrossChainRoute_authority, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgDisableCrossChainRoute_route_id, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgDisableCrossChainRoute_reason, 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_MsgDisableCrossChainRoute) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.reason": + return x.Reason != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRoute 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_MsgDisableCrossChainRoute) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.reason": + x.Reason = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRoute 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_MsgDisableCrossChainRoute) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRoute 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_MsgDisableCrossChainRoute) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.reason": + x.Reason = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRoute 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_MsgDisableCrossChainRoute) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgDisableCrossChainRoute is not mutable")) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgDisableCrossChainRoute is not mutable")) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.MsgDisableCrossChainRoute is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRoute 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_MsgDisableCrossChainRoute) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRoute.reason": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRoute")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRoute 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_MsgDisableCrossChainRoute) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgDisableCrossChainRoute", 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_MsgDisableCrossChainRoute) 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_MsgDisableCrossChainRoute) 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_MsgDisableCrossChainRoute) 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_MsgDisableCrossChainRoute) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDisableCrossChainRoute) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgDisableCrossChainRoute) + 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 len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgDisableCrossChainRoute) + 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: MsgDisableCrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDisableCrossChainRoute: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgDisableCrossChainRouteResponse protoreflect.MessageDescriptor + fd_MsgDisableCrossChainRouteResponse_route_id protoreflect.FieldDescriptor + fd_MsgDisableCrossChainRouteResponse_affected_positions protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgDisableCrossChainRouteResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgDisableCrossChainRouteResponse") + fd_MsgDisableCrossChainRouteResponse_route_id = md_MsgDisableCrossChainRouteResponse.Fields().ByName("route_id") + fd_MsgDisableCrossChainRouteResponse_affected_positions = md_MsgDisableCrossChainRouteResponse.Fields().ByName("affected_positions") +} + +var _ protoreflect.Message = (*fastReflection_MsgDisableCrossChainRouteResponse)(nil) + +type fastReflection_MsgDisableCrossChainRouteResponse MsgDisableCrossChainRouteResponse + +func (x *MsgDisableCrossChainRouteResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDisableCrossChainRouteResponse)(x) +} + +func (x *MsgDisableCrossChainRouteResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[13] + 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_MsgDisableCrossChainRouteResponse_messageType fastReflection_MsgDisableCrossChainRouteResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDisableCrossChainRouteResponse_messageType{} + +type fastReflection_MsgDisableCrossChainRouteResponse_messageType struct{} + +func (x fastReflection_MsgDisableCrossChainRouteResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDisableCrossChainRouteResponse)(nil) +} +func (x fastReflection_MsgDisableCrossChainRouteResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDisableCrossChainRouteResponse) +} +func (x fastReflection_MsgDisableCrossChainRouteResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableCrossChainRouteResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDisableCrossChainRouteResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDisableCrossChainRouteResponse +} + +// 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_MsgDisableCrossChainRouteResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDisableCrossChainRouteResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDisableCrossChainRouteResponse) New() protoreflect.Message { + return new(fastReflection_MsgDisableCrossChainRouteResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDisableCrossChainRouteResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDisableCrossChainRouteResponse)(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_MsgDisableCrossChainRouteResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgDisableCrossChainRouteResponse_route_id, value) { + return + } + } + if x.AffectedPositions != int64(0) { + value := protoreflect.ValueOfInt64(x.AffectedPositions) + if !f(fd_MsgDisableCrossChainRouteResponse_affected_positions, 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_MsgDisableCrossChainRouteResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.affected_positions": + return x.AffectedPositions != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse 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_MsgDisableCrossChainRouteResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.affected_positions": + x.AffectedPositions = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse 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_MsgDisableCrossChainRouteResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.affected_positions": + value := x.AffectedPositions + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse 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_MsgDisableCrossChainRouteResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.affected_positions": + x.AffectedPositions = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse 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_MsgDisableCrossChainRouteResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.affected_positions": + panic(fmt.Errorf("field affected_positions of message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse 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_MsgDisableCrossChainRouteResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse.affected_positions": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse 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_MsgDisableCrossChainRouteResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse", 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_MsgDisableCrossChainRouteResponse) 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_MsgDisableCrossChainRouteResponse) 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_MsgDisableCrossChainRouteResponse) 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_MsgDisableCrossChainRouteResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDisableCrossChainRouteResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + if x.AffectedPositions != 0 { + n += 1 + runtime.Sov(uint64(x.AffectedPositions)) + } + 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().(*MsgDisableCrossChainRouteResponse) + 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.AffectedPositions != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.AffectedPositions)) + i-- + dAtA[i] = 0x10 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgDisableCrossChainRouteResponse) + 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: MsgDisableCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDisableCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AffectedPositions", wireType) + } + x.AffectedPositions = 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.AffectedPositions |= int64(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, + } +} + +var ( + md_MsgRemoteDeposit protoreflect.MessageDescriptor + fd_MsgRemoteDeposit_depositor protoreflect.FieldDescriptor + fd_MsgRemoteDeposit_route_id protoreflect.FieldDescriptor + fd_MsgRemoteDeposit_amount protoreflect.FieldDescriptor + fd_MsgRemoteDeposit_remote_address protoreflect.FieldDescriptor + fd_MsgRemoteDeposit_min_shares protoreflect.FieldDescriptor + fd_MsgRemoteDeposit_gas_limit protoreflect.FieldDescriptor + fd_MsgRemoteDeposit_gas_price protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRemoteDeposit = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRemoteDeposit") + fd_MsgRemoteDeposit_depositor = md_MsgRemoteDeposit.Fields().ByName("depositor") + fd_MsgRemoteDeposit_route_id = md_MsgRemoteDeposit.Fields().ByName("route_id") + fd_MsgRemoteDeposit_amount = md_MsgRemoteDeposit.Fields().ByName("amount") + fd_MsgRemoteDeposit_remote_address = md_MsgRemoteDeposit.Fields().ByName("remote_address") + fd_MsgRemoteDeposit_min_shares = md_MsgRemoteDeposit.Fields().ByName("min_shares") + fd_MsgRemoteDeposit_gas_limit = md_MsgRemoteDeposit.Fields().ByName("gas_limit") + fd_MsgRemoteDeposit_gas_price = md_MsgRemoteDeposit.Fields().ByName("gas_price") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoteDeposit)(nil) + +type fastReflection_MsgRemoteDeposit MsgRemoteDeposit + +func (x *MsgRemoteDeposit) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoteDeposit)(x) +} + +func (x *MsgRemoteDeposit) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[14] + 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_MsgRemoteDeposit_messageType fastReflection_MsgRemoteDeposit_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoteDeposit_messageType{} + +type fastReflection_MsgRemoteDeposit_messageType struct{} + +func (x fastReflection_MsgRemoteDeposit_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoteDeposit)(nil) +} +func (x fastReflection_MsgRemoteDeposit_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoteDeposit) +} +func (x fastReflection_MsgRemoteDeposit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteDeposit +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoteDeposit) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteDeposit +} + +// 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_MsgRemoteDeposit) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoteDeposit_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoteDeposit) New() protoreflect.Message { + return new(fastReflection_MsgRemoteDeposit) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoteDeposit) Interface() protoreflect.ProtoMessage { + return (*MsgRemoteDeposit)(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_MsgRemoteDeposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Depositor != "" { + value := protoreflect.ValueOfString(x.Depositor) + if !f(fd_MsgRemoteDeposit_depositor, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgRemoteDeposit_route_id, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgRemoteDeposit_amount, value) { + return + } + } + if x.RemoteAddress != "" { + value := protoreflect.ValueOfString(x.RemoteAddress) + if !f(fd_MsgRemoteDeposit_remote_address, value) { + return + } + } + if x.MinShares != "" { + value := protoreflect.ValueOfString(x.MinShares) + if !f(fd_MsgRemoteDeposit_min_shares, value) { + return + } + } + if x.GasLimit != uint64(0) { + value := protoreflect.ValueOfUint64(x.GasLimit) + if !f(fd_MsgRemoteDeposit_gas_limit, value) { + return + } + } + if x.GasPrice != "" { + value := protoreflect.ValueOfString(x.GasPrice) + if !f(fd_MsgRemoteDeposit_gas_price, 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_MsgRemoteDeposit) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDeposit.depositor": + return x.Depositor != "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.remote_address": + return x.RemoteAddress != "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.min_shares": + return x.MinShares != "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_limit": + return x.GasLimit != uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_price": + return x.GasPrice != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDeposit 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_MsgRemoteDeposit) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDeposit.depositor": + x.Depositor = "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.remote_address": + x.RemoteAddress = "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.min_shares": + x.MinShares = "" + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_limit": + x.GasLimit = uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_price": + x.GasPrice = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDeposit 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_MsgRemoteDeposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDeposit.depositor": + value := x.Depositor + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.remote_address": + value := x.RemoteAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.min_shares": + value := x.MinShares + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_limit": + value := x.GasLimit + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_price": + value := x.GasPrice + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDeposit 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_MsgRemoteDeposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDeposit.depositor": + x.Depositor = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.remote_address": + x.RemoteAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.min_shares": + x.MinShares = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_limit": + x.GasLimit = value.Uint() + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_price": + x.GasPrice = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDeposit 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_MsgRemoteDeposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDeposit.depositor": + panic(fmt.Errorf("field depositor of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.remote_address": + panic(fmt.Errorf("field remote_address of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.min_shares": + panic(fmt.Errorf("field min_shares of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_limit": + panic(fmt.Errorf("field gas_limit of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_price": + panic(fmt.Errorf("field gas_price of message noble.dollar.vaults.v2.MsgRemoteDeposit is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDeposit 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_MsgRemoteDeposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDeposit.depositor": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteDeposit.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteDeposit.remote_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteDeposit.min_shares": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_limit": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRemoteDeposit.gas_price": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDeposit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDeposit 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_MsgRemoteDeposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRemoteDeposit", 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_MsgRemoteDeposit) 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_MsgRemoteDeposit) 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_MsgRemoteDeposit) 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_MsgRemoteDeposit) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoteDeposit) + 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.Depositor) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RemoteAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinShares) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.GasLimit != 0 { + n += 1 + runtime.Sov(uint64(x.GasLimit)) + } + l = len(x.GasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRemoteDeposit) + 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 len(x.GasPrice) > 0 { + i -= len(x.GasPrice) + copy(dAtA[i:], x.GasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GasPrice))) + i-- + dAtA[i] = 0x3a + } + if x.GasLimit != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.GasLimit)) + i-- + dAtA[i] = 0x30 + } + if len(x.MinShares) > 0 { + i -= len(x.MinShares) + copy(dAtA[i:], x.MinShares) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinShares))) + i-- + dAtA[i] = 0x2a + } + if len(x.RemoteAddress) > 0 { + i -= len(x.RemoteAddress) + copy(dAtA[i:], x.RemoteAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RemoteAddress))) + i-- + dAtA[i] = 0x22 + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Depositor) > 0 { + i -= len(x.Depositor) + copy(dAtA[i:], x.Depositor) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Depositor))) + 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().(*MsgRemoteDeposit) + 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: MsgRemoteDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoteDeposit: 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 Depositor", 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.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = 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 RemoteAddress", 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.RemoteAddress = 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 MinShares", 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.MinShares = 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 GasLimit", wireType) + } + x.GasLimit = 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.GasLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasPrice", 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.GasPrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRemoteDepositResponse protoreflect.MessageDescriptor + fd_MsgRemoteDepositResponse_nonce protoreflect.FieldDescriptor + fd_MsgRemoteDepositResponse_route_id protoreflect.FieldDescriptor + fd_MsgRemoteDepositResponse_shares_allocated protoreflect.FieldDescriptor + fd_MsgRemoteDepositResponse_amount_sent protoreflect.FieldDescriptor + fd_MsgRemoteDepositResponse_expected_completion protoreflect.FieldDescriptor + fd_MsgRemoteDepositResponse_provider_tracking protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRemoteDepositResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRemoteDepositResponse") + fd_MsgRemoteDepositResponse_nonce = md_MsgRemoteDepositResponse.Fields().ByName("nonce") + fd_MsgRemoteDepositResponse_route_id = md_MsgRemoteDepositResponse.Fields().ByName("route_id") + fd_MsgRemoteDepositResponse_shares_allocated = md_MsgRemoteDepositResponse.Fields().ByName("shares_allocated") + fd_MsgRemoteDepositResponse_amount_sent = md_MsgRemoteDepositResponse.Fields().ByName("amount_sent") + fd_MsgRemoteDepositResponse_expected_completion = md_MsgRemoteDepositResponse.Fields().ByName("expected_completion") + fd_MsgRemoteDepositResponse_provider_tracking = md_MsgRemoteDepositResponse.Fields().ByName("provider_tracking") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoteDepositResponse)(nil) + +type fastReflection_MsgRemoteDepositResponse MsgRemoteDepositResponse + +func (x *MsgRemoteDepositResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoteDepositResponse)(x) +} + +func (x *MsgRemoteDepositResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[15] + 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_MsgRemoteDepositResponse_messageType fastReflection_MsgRemoteDepositResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoteDepositResponse_messageType{} + +type fastReflection_MsgRemoteDepositResponse_messageType struct{} + +func (x fastReflection_MsgRemoteDepositResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoteDepositResponse)(nil) +} +func (x fastReflection_MsgRemoteDepositResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoteDepositResponse) +} +func (x fastReflection_MsgRemoteDepositResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteDepositResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoteDepositResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteDepositResponse +} + +// 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_MsgRemoteDepositResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoteDepositResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoteDepositResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoteDepositResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoteDepositResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoteDepositResponse)(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_MsgRemoteDepositResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgRemoteDepositResponse_nonce, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgRemoteDepositResponse_route_id, value) { + return + } + } + if x.SharesAllocated != "" { + value := protoreflect.ValueOfString(x.SharesAllocated) + if !f(fd_MsgRemoteDepositResponse_shares_allocated, value) { + return + } + } + if x.AmountSent != "" { + value := protoreflect.ValueOfString(x.AmountSent) + if !f(fd_MsgRemoteDepositResponse_amount_sent, value) { + return + } + } + if x.ExpectedCompletion != nil { + value := protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + if !f(fd_MsgRemoteDepositResponse_expected_completion, value) { + return + } + } + if x.ProviderTracking != nil { + value := protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + if !f(fd_MsgRemoteDepositResponse_provider_tracking, 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_MsgRemoteDepositResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.nonce": + return x.Nonce != uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.shares_allocated": + return x.SharesAllocated != "" + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.amount_sent": + return x.AmountSent != "" + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion": + return x.ExpectedCompletion != nil + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking": + return x.ProviderTracking != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDepositResponse 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_MsgRemoteDepositResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.nonce": + x.Nonce = uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.shares_allocated": + x.SharesAllocated = "" + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.amount_sent": + x.AmountSent = "" + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion": + x.ExpectedCompletion = nil + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking": + x.ProviderTracking = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDepositResponse 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_MsgRemoteDepositResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.shares_allocated": + value := x.SharesAllocated + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.amount_sent": + value := x.AmountSent + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion": + value := x.ExpectedCompletion + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking": + value := x.ProviderTracking + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDepositResponse 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_MsgRemoteDepositResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.nonce": + x.Nonce = value.Uint() + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.shares_allocated": + x.SharesAllocated = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.amount_sent": + x.AmountSent = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion": + x.ExpectedCompletion = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking": + x.ProviderTracking = value.Message().Interface().(*ProviderTrackingInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDepositResponse 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_MsgRemoteDepositResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion": + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking": + if x.ProviderTracking == nil { + x.ProviderTracking = new(ProviderTrackingInfo) + } + return protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.nonce": + panic(fmt.Errorf("field nonce of message noble.dollar.vaults.v2.MsgRemoteDepositResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgRemoteDepositResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.shares_allocated": + panic(fmt.Errorf("field shares_allocated of message noble.dollar.vaults.v2.MsgRemoteDepositResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.amount_sent": + panic(fmt.Errorf("field amount_sent of message noble.dollar.vaults.v2.MsgRemoteDepositResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDepositResponse 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_MsgRemoteDepositResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.shares_allocated": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.amount_sent": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking": + m := new(ProviderTrackingInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteDepositResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteDepositResponse 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_MsgRemoteDepositResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRemoteDepositResponse", 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_MsgRemoteDepositResponse) 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_MsgRemoteDepositResponse) 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_MsgRemoteDepositResponse) 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_MsgRemoteDepositResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoteDepositResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.SharesAllocated) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountSent) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedCompletion != nil { + l = options.Size(x.ExpectedCompletion) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ProviderTracking != nil { + l = options.Size(x.ProviderTracking) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRemoteDepositResponse) + 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.ProviderTracking != nil { + encoded, err := options.Marshal(x.ProviderTracking) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.ExpectedCompletion != nil { + encoded, err := options.Marshal(x.ExpectedCompletion) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if len(x.AmountSent) > 0 { + i -= len(x.AmountSent) + copy(dAtA[i:], x.AmountSent) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountSent))) + i-- + dAtA[i] = 0x22 + } + if len(x.SharesAllocated) > 0 { + i -= len(x.SharesAllocated) + copy(dAtA[i:], x.SharesAllocated) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesAllocated))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgRemoteDepositResponse) + 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: MsgRemoteDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoteDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 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.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharesAllocated", 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.SharesAllocated = 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 AmountSent", 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.AmountSent = 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 ExpectedCompletion", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedCompletion); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ProviderTracking == nil { + x.ProviderTracking = &ProviderTrackingInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProviderTracking); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRemoteWithdraw protoreflect.MessageDescriptor + fd_MsgRemoteWithdraw_withdrawer protoreflect.FieldDescriptor + fd_MsgRemoteWithdraw_route_id protoreflect.FieldDescriptor + fd_MsgRemoteWithdraw_shares protoreflect.FieldDescriptor + fd_MsgRemoteWithdraw_min_amount protoreflect.FieldDescriptor + fd_MsgRemoteWithdraw_gas_limit protoreflect.FieldDescriptor + fd_MsgRemoteWithdraw_gas_price protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRemoteWithdraw = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRemoteWithdraw") + fd_MsgRemoteWithdraw_withdrawer = md_MsgRemoteWithdraw.Fields().ByName("withdrawer") + fd_MsgRemoteWithdraw_route_id = md_MsgRemoteWithdraw.Fields().ByName("route_id") + fd_MsgRemoteWithdraw_shares = md_MsgRemoteWithdraw.Fields().ByName("shares") + fd_MsgRemoteWithdraw_min_amount = md_MsgRemoteWithdraw.Fields().ByName("min_amount") + fd_MsgRemoteWithdraw_gas_limit = md_MsgRemoteWithdraw.Fields().ByName("gas_limit") + fd_MsgRemoteWithdraw_gas_price = md_MsgRemoteWithdraw.Fields().ByName("gas_price") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoteWithdraw)(nil) + +type fastReflection_MsgRemoteWithdraw MsgRemoteWithdraw + +func (x *MsgRemoteWithdraw) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoteWithdraw)(x) +} + +func (x *MsgRemoteWithdraw) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[16] + 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_MsgRemoteWithdraw_messageType fastReflection_MsgRemoteWithdraw_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoteWithdraw_messageType{} + +type fastReflection_MsgRemoteWithdraw_messageType struct{} + +func (x fastReflection_MsgRemoteWithdraw_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoteWithdraw)(nil) +} +func (x fastReflection_MsgRemoteWithdraw_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoteWithdraw) +} +func (x fastReflection_MsgRemoteWithdraw_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteWithdraw +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoteWithdraw) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteWithdraw +} + +// 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_MsgRemoteWithdraw) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoteWithdraw_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoteWithdraw) New() protoreflect.Message { + return new(fastReflection_MsgRemoteWithdraw) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoteWithdraw) Interface() protoreflect.ProtoMessage { + return (*MsgRemoteWithdraw)(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_MsgRemoteWithdraw) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Withdrawer != "" { + value := protoreflect.ValueOfString(x.Withdrawer) + if !f(fd_MsgRemoteWithdraw_withdrawer, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgRemoteWithdraw_route_id, value) { + return + } + } + if x.Shares != "" { + value := protoreflect.ValueOfString(x.Shares) + if !f(fd_MsgRemoteWithdraw_shares, value) { + return + } + } + if x.MinAmount != "" { + value := protoreflect.ValueOfString(x.MinAmount) + if !f(fd_MsgRemoteWithdraw_min_amount, value) { + return + } + } + if x.GasLimit != uint64(0) { + value := protoreflect.ValueOfUint64(x.GasLimit) + if !f(fd_MsgRemoteWithdraw_gas_limit, value) { + return + } + } + if x.GasPrice != "" { + value := protoreflect.ValueOfString(x.GasPrice) + if !f(fd_MsgRemoteWithdraw_gas_price, 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_MsgRemoteWithdraw) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.withdrawer": + return x.Withdrawer != "" + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.shares": + return x.Shares != "" + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.min_amount": + return x.MinAmount != "" + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_limit": + return x.GasLimit != uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_price": + return x.GasPrice != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdraw 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_MsgRemoteWithdraw) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.withdrawer": + x.Withdrawer = "" + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.shares": + x.Shares = "" + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.min_amount": + x.MinAmount = "" + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_limit": + x.GasLimit = uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_price": + x.GasPrice = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdraw 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_MsgRemoteWithdraw) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.withdrawer": + value := x.Withdrawer + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.shares": + value := x.Shares + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.min_amount": + value := x.MinAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_limit": + value := x.GasLimit + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_price": + value := x.GasPrice + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdraw 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_MsgRemoteWithdraw) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.withdrawer": + x.Withdrawer = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.shares": + x.Shares = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.min_amount": + x.MinAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_limit": + x.GasLimit = value.Uint() + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_price": + x.GasPrice = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdraw 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_MsgRemoteWithdraw) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.withdrawer": + panic(fmt.Errorf("field withdrawer of message noble.dollar.vaults.v2.MsgRemoteWithdraw is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgRemoteWithdraw is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.shares": + panic(fmt.Errorf("field shares of message noble.dollar.vaults.v2.MsgRemoteWithdraw is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.min_amount": + panic(fmt.Errorf("field min_amount of message noble.dollar.vaults.v2.MsgRemoteWithdraw is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_limit": + panic(fmt.Errorf("field gas_limit of message noble.dollar.vaults.v2.MsgRemoteWithdraw is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_price": + panic(fmt.Errorf("field gas_price of message noble.dollar.vaults.v2.MsgRemoteWithdraw is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdraw 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_MsgRemoteWithdraw) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.withdrawer": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.shares": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.min_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_limit": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRemoteWithdraw.gas_price": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdraw")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdraw 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_MsgRemoteWithdraw) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRemoteWithdraw", 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_MsgRemoteWithdraw) 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_MsgRemoteWithdraw) 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_MsgRemoteWithdraw) 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_MsgRemoteWithdraw) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoteWithdraw) + 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.Withdrawer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.Shares) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.GasLimit != 0 { + n += 1 + runtime.Sov(uint64(x.GasLimit)) + } + l = len(x.GasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRemoteWithdraw) + 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 len(x.GasPrice) > 0 { + i -= len(x.GasPrice) + copy(dAtA[i:], x.GasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GasPrice))) + i-- + dAtA[i] = 0x32 + } + if x.GasLimit != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.GasLimit)) + i-- + dAtA[i] = 0x28 + } + if len(x.MinAmount) > 0 { + i -= len(x.MinAmount) + copy(dAtA[i:], x.MinAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinAmount))) + i-- + dAtA[i] = 0x22 + } + if len(x.Shares) > 0 { + i -= len(x.Shares) + copy(dAtA[i:], x.Shares) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Shares))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Withdrawer) > 0 { + i -= len(x.Withdrawer) + copy(dAtA[i:], x.Withdrawer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Withdrawer))) + 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().(*MsgRemoteWithdraw) + 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: MsgRemoteWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoteWithdraw: 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 Withdrawer", 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.Withdrawer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Shares", 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.Shares = 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 MinAmount", 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.MinAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) + } + x.GasLimit = 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.GasLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasPrice", 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.GasPrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRemoteWithdrawResponse protoreflect.MessageDescriptor + fd_MsgRemoteWithdrawResponse_nonce protoreflect.FieldDescriptor + fd_MsgRemoteWithdrawResponse_route_id protoreflect.FieldDescriptor + fd_MsgRemoteWithdrawResponse_shares_withdrawn protoreflect.FieldDescriptor + fd_MsgRemoteWithdrawResponse_expected_amount protoreflect.FieldDescriptor + fd_MsgRemoteWithdrawResponse_expected_completion protoreflect.FieldDescriptor + fd_MsgRemoteWithdrawResponse_provider_tracking protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRemoteWithdrawResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRemoteWithdrawResponse") + fd_MsgRemoteWithdrawResponse_nonce = md_MsgRemoteWithdrawResponse.Fields().ByName("nonce") + fd_MsgRemoteWithdrawResponse_route_id = md_MsgRemoteWithdrawResponse.Fields().ByName("route_id") + fd_MsgRemoteWithdrawResponse_shares_withdrawn = md_MsgRemoteWithdrawResponse.Fields().ByName("shares_withdrawn") + fd_MsgRemoteWithdrawResponse_expected_amount = md_MsgRemoteWithdrawResponse.Fields().ByName("expected_amount") + fd_MsgRemoteWithdrawResponse_expected_completion = md_MsgRemoteWithdrawResponse.Fields().ByName("expected_completion") + fd_MsgRemoteWithdrawResponse_provider_tracking = md_MsgRemoteWithdrawResponse.Fields().ByName("provider_tracking") +} + +var _ protoreflect.Message = (*fastReflection_MsgRemoteWithdrawResponse)(nil) + +type fastReflection_MsgRemoteWithdrawResponse MsgRemoteWithdrawResponse + +func (x *MsgRemoteWithdrawResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRemoteWithdrawResponse)(x) +} + +func (x *MsgRemoteWithdrawResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[17] + 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_MsgRemoteWithdrawResponse_messageType fastReflection_MsgRemoteWithdrawResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRemoteWithdrawResponse_messageType{} + +type fastReflection_MsgRemoteWithdrawResponse_messageType struct{} + +func (x fastReflection_MsgRemoteWithdrawResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRemoteWithdrawResponse)(nil) +} +func (x fastReflection_MsgRemoteWithdrawResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRemoteWithdrawResponse) +} +func (x fastReflection_MsgRemoteWithdrawResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteWithdrawResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRemoteWithdrawResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRemoteWithdrawResponse +} + +// 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_MsgRemoteWithdrawResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRemoteWithdrawResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRemoteWithdrawResponse) New() protoreflect.Message { + return new(fastReflection_MsgRemoteWithdrawResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRemoteWithdrawResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRemoteWithdrawResponse)(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_MsgRemoteWithdrawResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgRemoteWithdrawResponse_nonce, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgRemoteWithdrawResponse_route_id, value) { + return + } + } + if x.SharesWithdrawn != "" { + value := protoreflect.ValueOfString(x.SharesWithdrawn) + if !f(fd_MsgRemoteWithdrawResponse_shares_withdrawn, value) { + return + } + } + if x.ExpectedAmount != "" { + value := protoreflect.ValueOfString(x.ExpectedAmount) + if !f(fd_MsgRemoteWithdrawResponse_expected_amount, value) { + return + } + } + if x.ExpectedCompletion != nil { + value := protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + if !f(fd_MsgRemoteWithdrawResponse_expected_completion, value) { + return + } + } + if x.ProviderTracking != nil { + value := protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + if !f(fd_MsgRemoteWithdrawResponse_provider_tracking, 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_MsgRemoteWithdrawResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.nonce": + return x.Nonce != uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.shares_withdrawn": + return x.SharesWithdrawn != "" + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_amount": + return x.ExpectedAmount != "" + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion": + return x.ExpectedCompletion != nil + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking": + return x.ProviderTracking != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse 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_MsgRemoteWithdrawResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.nonce": + x.Nonce = uint64(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.shares_withdrawn": + x.SharesWithdrawn = "" + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_amount": + x.ExpectedAmount = "" + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion": + x.ExpectedCompletion = nil + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking": + x.ProviderTracking = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse 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_MsgRemoteWithdrawResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.shares_withdrawn": + value := x.SharesWithdrawn + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_amount": + value := x.ExpectedAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion": + value := x.ExpectedCompletion + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking": + value := x.ProviderTracking + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse 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_MsgRemoteWithdrawResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.nonce": + x.Nonce = value.Uint() + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.shares_withdrawn": + x.SharesWithdrawn = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_amount": + x.ExpectedAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion": + x.ExpectedCompletion = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking": + x.ProviderTracking = value.Message().Interface().(*ProviderTrackingInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse 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_MsgRemoteWithdrawResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion": + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking": + if x.ProviderTracking == nil { + x.ProviderTracking = new(ProviderTrackingInfo) + } + return protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.nonce": + panic(fmt.Errorf("field nonce of message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.shares_withdrawn": + panic(fmt.Errorf("field shares_withdrawn of message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_amount": + panic(fmt.Errorf("field expected_amount of message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse 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_MsgRemoteWithdrawResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.shares_withdrawn": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking": + m := new(ProviderTrackingInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRemoteWithdrawResponse 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_MsgRemoteWithdrawResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRemoteWithdrawResponse", 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_MsgRemoteWithdrawResponse) 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_MsgRemoteWithdrawResponse) 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_MsgRemoteWithdrawResponse) 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_MsgRemoteWithdrawResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRemoteWithdrawResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + l = len(x.SharesWithdrawn) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ExpectedAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedCompletion != nil { + l = options.Size(x.ExpectedCompletion) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ProviderTracking != nil { + l = options.Size(x.ProviderTracking) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRemoteWithdrawResponse) + 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.ProviderTracking != nil { + encoded, err := options.Marshal(x.ProviderTracking) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if x.ExpectedCompletion != nil { + encoded, err := options.Marshal(x.ExpectedCompletion) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if len(x.ExpectedAmount) > 0 { + i -= len(x.ExpectedAmount) + copy(dAtA[i:], x.ExpectedAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpectedAmount))) + i-- + dAtA[i] = 0x22 + } + if len(x.SharesWithdrawn) > 0 { + i -= len(x.SharesWithdrawn) + copy(dAtA[i:], x.SharesWithdrawn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesWithdrawn))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgRemoteWithdrawResponse) + 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: MsgRemoteWithdrawResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoteWithdrawResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 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.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SharesWithdrawn", 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.SharesWithdrawn = 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 ExpectedAmount", 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.ExpectedAmount = 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 ExpectedCompletion", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedCompletion); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ProviderTracking == nil { + x.ProviderTracking = &ProviderTrackingInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProviderTracking); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgProcessInFlightPosition protoreflect.MessageDescriptor + fd_MsgProcessInFlightPosition_authority protoreflect.FieldDescriptor + fd_MsgProcessInFlightPosition_nonce protoreflect.FieldDescriptor + fd_MsgProcessInFlightPosition_result_status protoreflect.FieldDescriptor + fd_MsgProcessInFlightPosition_result_amount protoreflect.FieldDescriptor + fd_MsgProcessInFlightPosition_error_message protoreflect.FieldDescriptor + fd_MsgProcessInFlightPosition_provider_tracking protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgProcessInFlightPosition = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgProcessInFlightPosition") + fd_MsgProcessInFlightPosition_authority = md_MsgProcessInFlightPosition.Fields().ByName("authority") + fd_MsgProcessInFlightPosition_nonce = md_MsgProcessInFlightPosition.Fields().ByName("nonce") + fd_MsgProcessInFlightPosition_result_status = md_MsgProcessInFlightPosition.Fields().ByName("result_status") + fd_MsgProcessInFlightPosition_result_amount = md_MsgProcessInFlightPosition.Fields().ByName("result_amount") + fd_MsgProcessInFlightPosition_error_message = md_MsgProcessInFlightPosition.Fields().ByName("error_message") + fd_MsgProcessInFlightPosition_provider_tracking = md_MsgProcessInFlightPosition.Fields().ByName("provider_tracking") +} + +var _ protoreflect.Message = (*fastReflection_MsgProcessInFlightPosition)(nil) + +type fastReflection_MsgProcessInFlightPosition MsgProcessInFlightPosition + +func (x *MsgProcessInFlightPosition) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgProcessInFlightPosition)(x) +} + +func (x *MsgProcessInFlightPosition) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[18] + 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_MsgProcessInFlightPosition_messageType fastReflection_MsgProcessInFlightPosition_messageType +var _ protoreflect.MessageType = fastReflection_MsgProcessInFlightPosition_messageType{} + +type fastReflection_MsgProcessInFlightPosition_messageType struct{} + +func (x fastReflection_MsgProcessInFlightPosition_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgProcessInFlightPosition)(nil) +} +func (x fastReflection_MsgProcessInFlightPosition_messageType) New() protoreflect.Message { + return new(fastReflection_MsgProcessInFlightPosition) +} +func (x fastReflection_MsgProcessInFlightPosition_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessInFlightPosition +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgProcessInFlightPosition) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessInFlightPosition +} + +// 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_MsgProcessInFlightPosition) Type() protoreflect.MessageType { + return _fastReflection_MsgProcessInFlightPosition_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgProcessInFlightPosition) New() protoreflect.Message { + return new(fastReflection_MsgProcessInFlightPosition) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgProcessInFlightPosition) Interface() protoreflect.ProtoMessage { + return (*MsgProcessInFlightPosition)(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_MsgProcessInFlightPosition) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgProcessInFlightPosition_authority, value) { + return + } + } + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgProcessInFlightPosition_nonce, value) { + return + } + } + if x.ResultStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.ResultStatus)) + if !f(fd_MsgProcessInFlightPosition_result_status, value) { + return + } + } + if x.ResultAmount != "" { + value := protoreflect.ValueOfString(x.ResultAmount) + if !f(fd_MsgProcessInFlightPosition_result_amount, value) { + return + } + } + if x.ErrorMessage != "" { + value := protoreflect.ValueOfString(x.ErrorMessage) + if !f(fd_MsgProcessInFlightPosition_error_message, value) { + return + } + } + if x.ProviderTracking != nil { + value := protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + if !f(fd_MsgProcessInFlightPosition_provider_tracking, 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_MsgProcessInFlightPosition) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.nonce": + return x.Nonce != uint64(0) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status": + return x.ResultStatus != 0 + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_amount": + return x.ResultAmount != "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.error_message": + return x.ErrorMessage != "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking": + return x.ProviderTracking != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPosition 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_MsgProcessInFlightPosition) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.nonce": + x.Nonce = uint64(0) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status": + x.ResultStatus = 0 + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_amount": + x.ResultAmount = "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.error_message": + x.ErrorMessage = "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking": + x.ProviderTracking = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPosition 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_MsgProcessInFlightPosition) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status": + value := x.ResultStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_amount": + value := x.ResultAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.error_message": + value := x.ErrorMessage + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking": + value := x.ProviderTracking + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPosition 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_MsgProcessInFlightPosition) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.nonce": + x.Nonce = value.Uint() + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status": + x.ResultStatus = (InflightStatus)(value.Enum()) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_amount": + x.ResultAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.error_message": + x.ErrorMessage = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking": + x.ProviderTracking = value.Message().Interface().(*ProviderTrackingInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPosition 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_MsgProcessInFlightPosition) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking": + if x.ProviderTracking == nil { + x.ProviderTracking = new(ProviderTrackingInfo) + } + return protoreflect.ValueOfMessage(x.ProviderTracking.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgProcessInFlightPosition is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.nonce": + panic(fmt.Errorf("field nonce of message noble.dollar.vaults.v2.MsgProcessInFlightPosition is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status": + panic(fmt.Errorf("field result_status of message noble.dollar.vaults.v2.MsgProcessInFlightPosition is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_amount": + panic(fmt.Errorf("field result_amount of message noble.dollar.vaults.v2.MsgProcessInFlightPosition is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.error_message": + panic(fmt.Errorf("field error_message of message noble.dollar.vaults.v2.MsgProcessInFlightPosition is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPosition 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_MsgProcessInFlightPosition) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.error_message": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking": + m := new(ProviderTrackingInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPosition 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_MsgProcessInFlightPosition) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgProcessInFlightPosition", 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_MsgProcessInFlightPosition) 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_MsgProcessInFlightPosition) 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_MsgProcessInFlightPosition) 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_MsgProcessInFlightPosition) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgProcessInFlightPosition) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.ResultStatus != 0 { + n += 1 + runtime.Sov(uint64(x.ResultStatus)) + } + l = len(x.ResultAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ErrorMessage) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ProviderTracking != nil { + l = options.Size(x.ProviderTracking) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgProcessInFlightPosition) + 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.ProviderTracking != nil { + encoded, err := options.Marshal(x.ProviderTracking) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.ErrorMessage) > 0 { + i -= len(x.ErrorMessage) + copy(dAtA[i:], x.ErrorMessage) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ErrorMessage))) + i-- + dAtA[i] = 0x2a + } + if len(x.ResultAmount) > 0 { + i -= len(x.ResultAmount) + copy(dAtA[i:], x.ResultAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ResultAmount))) + i-- + dAtA[i] = 0x22 + } + if x.ResultStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ResultStatus)) + i-- + dAtA[i] = 0x18 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x10 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgProcessInFlightPosition) + 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: MsgProcessInFlightPosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProcessInFlightPosition: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 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.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResultStatus", wireType) + } + x.ResultStatus = 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.ResultStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResultAmount", 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.ResultAmount = 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 ErrorMessage", 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.ErrorMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ProviderTracking == nil { + x.ProviderTracking = &ProviderTrackingInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ProviderTracking); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgProcessInFlightPositionResponse protoreflect.MessageDescriptor + fd_MsgProcessInFlightPositionResponse_nonce protoreflect.FieldDescriptor + fd_MsgProcessInFlightPositionResponse_final_status protoreflect.FieldDescriptor + fd_MsgProcessInFlightPositionResponse_amount_processed protoreflect.FieldDescriptor + fd_MsgProcessInFlightPositionResponse_shares_affected protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgProcessInFlightPositionResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgProcessInFlightPositionResponse") + fd_MsgProcessInFlightPositionResponse_nonce = md_MsgProcessInFlightPositionResponse.Fields().ByName("nonce") + fd_MsgProcessInFlightPositionResponse_final_status = md_MsgProcessInFlightPositionResponse.Fields().ByName("final_status") + fd_MsgProcessInFlightPositionResponse_amount_processed = md_MsgProcessInFlightPositionResponse.Fields().ByName("amount_processed") + fd_MsgProcessInFlightPositionResponse_shares_affected = md_MsgProcessInFlightPositionResponse.Fields().ByName("shares_affected") +} + +var _ protoreflect.Message = (*fastReflection_MsgProcessInFlightPositionResponse)(nil) + +type fastReflection_MsgProcessInFlightPositionResponse MsgProcessInFlightPositionResponse + +func (x *MsgProcessInFlightPositionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgProcessInFlightPositionResponse)(x) +} + +func (x *MsgProcessInFlightPositionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[19] + 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_MsgProcessInFlightPositionResponse_messageType fastReflection_MsgProcessInFlightPositionResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgProcessInFlightPositionResponse_messageType{} + +type fastReflection_MsgProcessInFlightPositionResponse_messageType struct{} + +func (x fastReflection_MsgProcessInFlightPositionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgProcessInFlightPositionResponse)(nil) +} +func (x fastReflection_MsgProcessInFlightPositionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgProcessInFlightPositionResponse) +} +func (x fastReflection_MsgProcessInFlightPositionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessInFlightPositionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgProcessInFlightPositionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessInFlightPositionResponse +} + +// 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_MsgProcessInFlightPositionResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgProcessInFlightPositionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgProcessInFlightPositionResponse) New() protoreflect.Message { + return new(fastReflection_MsgProcessInFlightPositionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgProcessInFlightPositionResponse) Interface() protoreflect.ProtoMessage { + return (*MsgProcessInFlightPositionResponse)(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_MsgProcessInFlightPositionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != uint64(0) { + value := protoreflect.ValueOfUint64(x.Nonce) + if !f(fd_MsgProcessInFlightPositionResponse_nonce, value) { + return + } + } + if x.FinalStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.FinalStatus)) + if !f(fd_MsgProcessInFlightPositionResponse_final_status, value) { + return + } + } + if x.AmountProcessed != "" { + value := protoreflect.ValueOfString(x.AmountProcessed) + if !f(fd_MsgProcessInFlightPositionResponse_amount_processed, value) { + return + } + } + if x.SharesAffected != "" { + value := protoreflect.ValueOfString(x.SharesAffected) + if !f(fd_MsgProcessInFlightPositionResponse_shares_affected, 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_MsgProcessInFlightPositionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.nonce": + return x.Nonce != uint64(0) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status": + return x.FinalStatus != 0 + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.amount_processed": + return x.AmountProcessed != "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.shares_affected": + return x.SharesAffected != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse 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_MsgProcessInFlightPositionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.nonce": + x.Nonce = uint64(0) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status": + x.FinalStatus = 0 + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.amount_processed": + x.AmountProcessed = "" + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.shares_affected": + x.SharesAffected = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse 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_MsgProcessInFlightPositionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status": + value := x.FinalStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.amount_processed": + value := x.AmountProcessed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.shares_affected": + value := x.SharesAffected + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse 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_MsgProcessInFlightPositionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.nonce": + x.Nonce = value.Uint() + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status": + x.FinalStatus = (InflightStatus)(value.Enum()) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.amount_processed": + x.AmountProcessed = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.shares_affected": + x.SharesAffected = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse 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_MsgProcessInFlightPositionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.nonce": + panic(fmt.Errorf("field nonce of message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status": + panic(fmt.Errorf("field final_status of message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.amount_processed": + panic(fmt.Errorf("field amount_processed of message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.shares_affected": + panic(fmt.Errorf("field shares_affected of message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse 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_MsgProcessInFlightPositionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.nonce": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.amount_processed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.shares_affected": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse 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_MsgProcessInFlightPositionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse", 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_MsgProcessInFlightPositionResponse) 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_MsgProcessInFlightPositionResponse) 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_MsgProcessInFlightPositionResponse) 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_MsgProcessInFlightPositionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgProcessInFlightPositionResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) + } + if x.FinalStatus != 0 { + n += 1 + runtime.Sov(uint64(x.FinalStatus)) + } + l = len(x.AmountProcessed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SharesAffected) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgProcessInFlightPositionResponse) + 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 len(x.SharesAffected) > 0 { + i -= len(x.SharesAffected) + copy(dAtA[i:], x.SharesAffected) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SharesAffected))) + i-- + dAtA[i] = 0x22 + } + if len(x.AmountProcessed) > 0 { + i -= len(x.AmountProcessed) + copy(dAtA[i:], x.AmountProcessed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountProcessed))) + i-- + dAtA[i] = 0x1a + } + if x.FinalStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FinalStatus)) + i-- + dAtA[i] = 0x10 + } + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgProcessInFlightPositionResponse) + 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: MsgProcessInFlightPositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProcessInFlightPositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + x.Nonce = 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.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FinalStatus", wireType) + } + x.FinalStatus = 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.FinalStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AmountProcessed", 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.AmountProcessed = 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 SharesAffected", 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.SharesAffected = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRequestWithdrawal protoreflect.MessageDescriptor + fd_MsgRequestWithdrawal_requester protoreflect.FieldDescriptor + fd_MsgRequestWithdrawal_amount protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRequestWithdrawal = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRequestWithdrawal") + fd_MsgRequestWithdrawal_requester = md_MsgRequestWithdrawal.Fields().ByName("requester") + fd_MsgRequestWithdrawal_amount = md_MsgRequestWithdrawal.Fields().ByName("amount") +} + +var _ protoreflect.Message = (*fastReflection_MsgRequestWithdrawal)(nil) + +type fastReflection_MsgRequestWithdrawal MsgRequestWithdrawal + +func (x *MsgRequestWithdrawal) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestWithdrawal)(x) +} + +func (x *MsgRequestWithdrawal) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[20] + 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_MsgRequestWithdrawal_messageType fastReflection_MsgRequestWithdrawal_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestWithdrawal_messageType{} + +type fastReflection_MsgRequestWithdrawal_messageType struct{} + +func (x fastReflection_MsgRequestWithdrawal_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestWithdrawal)(nil) +} +func (x fastReflection_MsgRequestWithdrawal_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestWithdrawal) +} +func (x fastReflection_MsgRequestWithdrawal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestWithdrawal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRequestWithdrawal) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestWithdrawal +} + +// 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_MsgRequestWithdrawal) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestWithdrawal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRequestWithdrawal) New() protoreflect.Message { + return new(fastReflection_MsgRequestWithdrawal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRequestWithdrawal) Interface() protoreflect.ProtoMessage { + return (*MsgRequestWithdrawal)(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_MsgRequestWithdrawal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Requester != "" { + value := protoreflect.ValueOfString(x.Requester) + if !f(fd_MsgRequestWithdrawal_requester, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgRequestWithdrawal_amount, 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_MsgRequestWithdrawal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.requester": + return x.Requester != "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.amount": + return x.Amount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawal 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_MsgRequestWithdrawal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.requester": + x.Requester = "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.amount": + x.Amount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawal 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_MsgRequestWithdrawal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.requester": + value := x.Requester + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawal 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_MsgRequestWithdrawal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.requester": + x.Requester = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.amount": + x.Amount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawal 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_MsgRequestWithdrawal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.requester": + panic(fmt.Errorf("field requester of message noble.dollar.vaults.v2.MsgRequestWithdrawal is not mutable")) + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.MsgRequestWithdrawal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawal 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_MsgRequestWithdrawal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.requester": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRequestWithdrawal.amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawal 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_MsgRequestWithdrawal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRequestWithdrawal", 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_MsgRequestWithdrawal) 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_MsgRequestWithdrawal) 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_MsgRequestWithdrawal) 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_MsgRequestWithdrawal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRequestWithdrawal) + 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.Requester) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRequestWithdrawal) + 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 len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(x.Requester) > 0 { + i -= len(x.Requester) + copy(dAtA[i:], x.Requester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Requester))) + 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().(*MsgRequestWithdrawal) + 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: MsgRequestWithdrawal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestWithdrawal: 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 Requester", 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.Requester = 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 Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRequestWithdrawalResponse protoreflect.MessageDescriptor + fd_MsgRequestWithdrawalResponse_request_id protoreflect.FieldDescriptor + fd_MsgRequestWithdrawalResponse_amount_locked protoreflect.FieldDescriptor + fd_MsgRequestWithdrawalResponse_yield_portion protoreflect.FieldDescriptor + fd_MsgRequestWithdrawalResponse_expected_claimable_at protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRequestWithdrawalResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRequestWithdrawalResponse") + fd_MsgRequestWithdrawalResponse_request_id = md_MsgRequestWithdrawalResponse.Fields().ByName("request_id") + fd_MsgRequestWithdrawalResponse_amount_locked = md_MsgRequestWithdrawalResponse.Fields().ByName("amount_locked") + fd_MsgRequestWithdrawalResponse_yield_portion = md_MsgRequestWithdrawalResponse.Fields().ByName("yield_portion") + fd_MsgRequestWithdrawalResponse_expected_claimable_at = md_MsgRequestWithdrawalResponse.Fields().ByName("expected_claimable_at") +} + +var _ protoreflect.Message = (*fastReflection_MsgRequestWithdrawalResponse)(nil) + +type fastReflection_MsgRequestWithdrawalResponse MsgRequestWithdrawalResponse + +func (x *MsgRequestWithdrawalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestWithdrawalResponse)(x) +} + +func (x *MsgRequestWithdrawalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[21] + 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_MsgRequestWithdrawalResponse_messageType fastReflection_MsgRequestWithdrawalResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestWithdrawalResponse_messageType{} + +type fastReflection_MsgRequestWithdrawalResponse_messageType struct{} + +func (x fastReflection_MsgRequestWithdrawalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestWithdrawalResponse)(nil) +} +func (x fastReflection_MsgRequestWithdrawalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestWithdrawalResponse) +} +func (x fastReflection_MsgRequestWithdrawalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestWithdrawalResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRequestWithdrawalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestWithdrawalResponse +} + +// 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_MsgRequestWithdrawalResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestWithdrawalResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRequestWithdrawalResponse) New() protoreflect.Message { + return new(fastReflection_MsgRequestWithdrawalResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRequestWithdrawalResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRequestWithdrawalResponse)(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_MsgRequestWithdrawalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestId != "" { + value := protoreflect.ValueOfString(x.RequestId) + if !f(fd_MsgRequestWithdrawalResponse_request_id, value) { + return + } + } + if x.AmountLocked != "" { + value := protoreflect.ValueOfString(x.AmountLocked) + if !f(fd_MsgRequestWithdrawalResponse_amount_locked, value) { + return + } + } + if x.YieldPortion != "" { + value := protoreflect.ValueOfString(x.YieldPortion) + if !f(fd_MsgRequestWithdrawalResponse_yield_portion, value) { + return + } + } + if x.ExpectedClaimableAt != nil { + value := protoreflect.ValueOfMessage(x.ExpectedClaimableAt.ProtoReflect()) + if !f(fd_MsgRequestWithdrawalResponse_expected_claimable_at, 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_MsgRequestWithdrawalResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.request_id": + return x.RequestId != "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.amount_locked": + return x.AmountLocked != "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.yield_portion": + return x.YieldPortion != "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at": + return x.ExpectedClaimableAt != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse 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_MsgRequestWithdrawalResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.request_id": + x.RequestId = "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.amount_locked": + x.AmountLocked = "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.yield_portion": + x.YieldPortion = "" + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at": + x.ExpectedClaimableAt = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse 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_MsgRequestWithdrawalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.request_id": + value := x.RequestId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.amount_locked": + value := x.AmountLocked + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.yield_portion": + value := x.YieldPortion + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at": + value := x.ExpectedClaimableAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse 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_MsgRequestWithdrawalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.request_id": + x.RequestId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.amount_locked": + x.AmountLocked = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.yield_portion": + x.YieldPortion = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at": + x.ExpectedClaimableAt = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse 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_MsgRequestWithdrawalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at": + if x.ExpectedClaimableAt == nil { + x.ExpectedClaimableAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedClaimableAt.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.request_id": + panic(fmt.Errorf("field request_id of message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.amount_locked": + panic(fmt.Errorf("field amount_locked of message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.yield_portion": + panic(fmt.Errorf("field yield_portion of message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse 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_MsgRequestWithdrawalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.request_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.amount_locked": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.yield_portion": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRequestWithdrawalResponse 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_MsgRequestWithdrawalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRequestWithdrawalResponse", 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_MsgRequestWithdrawalResponse) 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_MsgRequestWithdrawalResponse) 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_MsgRequestWithdrawalResponse) 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_MsgRequestWithdrawalResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRequestWithdrawalResponse) + 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.RequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountLocked) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldPortion) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ExpectedClaimableAt != nil { + l = options.Size(x.ExpectedClaimableAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRequestWithdrawalResponse) + 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.ExpectedClaimableAt != nil { + encoded, err := options.Marshal(x.ExpectedClaimableAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.YieldPortion) > 0 { + i -= len(x.YieldPortion) + copy(dAtA[i:], x.YieldPortion) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldPortion))) + i-- + dAtA[i] = 0x1a + } + if len(x.AmountLocked) > 0 { + i -= len(x.AmountLocked) + copy(dAtA[i:], x.AmountLocked) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountLocked))) + i-- + dAtA[i] = 0x12 + } + if len(x.RequestId) > 0 { + i -= len(x.RequestId) + copy(dAtA[i:], x.RequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) + 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().(*MsgRequestWithdrawalResponse) + 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: MsgRequestWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestWithdrawalResponse: 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 RequestId", 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.RequestId = 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 AmountLocked", 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.AmountLocked = 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 YieldPortion", 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.YieldPortion = 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 ExpectedClaimableAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedClaimableAt == nil { + x.ExpectedClaimableAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedClaimableAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgProcessWithdrawalQueue protoreflect.MessageDescriptor + fd_MsgProcessWithdrawalQueue_authority protoreflect.FieldDescriptor + fd_MsgProcessWithdrawalQueue_max_requests protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgProcessWithdrawalQueue = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgProcessWithdrawalQueue") + fd_MsgProcessWithdrawalQueue_authority = md_MsgProcessWithdrawalQueue.Fields().ByName("authority") + fd_MsgProcessWithdrawalQueue_max_requests = md_MsgProcessWithdrawalQueue.Fields().ByName("max_requests") +} + +var _ protoreflect.Message = (*fastReflection_MsgProcessWithdrawalQueue)(nil) + +type fastReflection_MsgProcessWithdrawalQueue MsgProcessWithdrawalQueue + +func (x *MsgProcessWithdrawalQueue) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgProcessWithdrawalQueue)(x) +} + +func (x *MsgProcessWithdrawalQueue) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[22] + 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_MsgProcessWithdrawalQueue_messageType fastReflection_MsgProcessWithdrawalQueue_messageType +var _ protoreflect.MessageType = fastReflection_MsgProcessWithdrawalQueue_messageType{} + +type fastReflection_MsgProcessWithdrawalQueue_messageType struct{} + +func (x fastReflection_MsgProcessWithdrawalQueue_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgProcessWithdrawalQueue)(nil) +} +func (x fastReflection_MsgProcessWithdrawalQueue_messageType) New() protoreflect.Message { + return new(fastReflection_MsgProcessWithdrawalQueue) +} +func (x fastReflection_MsgProcessWithdrawalQueue_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessWithdrawalQueue +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgProcessWithdrawalQueue) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessWithdrawalQueue +} + +// 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_MsgProcessWithdrawalQueue) Type() protoreflect.MessageType { + return _fastReflection_MsgProcessWithdrawalQueue_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgProcessWithdrawalQueue) New() protoreflect.Message { + return new(fastReflection_MsgProcessWithdrawalQueue) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgProcessWithdrawalQueue) Interface() protoreflect.ProtoMessage { + return (*MsgProcessWithdrawalQueue)(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_MsgProcessWithdrawalQueue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgProcessWithdrawalQueue_authority, value) { + return + } + } + if x.MaxRequests != int32(0) { + value := protoreflect.ValueOfInt32(x.MaxRequests) + if !f(fd_MsgProcessWithdrawalQueue_max_requests, 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_MsgProcessWithdrawalQueue) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.max_requests": + return x.MaxRequests != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue 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_MsgProcessWithdrawalQueue) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.max_requests": + x.MaxRequests = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue 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_MsgProcessWithdrawalQueue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.max_requests": + value := x.MaxRequests + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue 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_MsgProcessWithdrawalQueue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.max_requests": + x.MaxRequests = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue 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_MsgProcessWithdrawalQueue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.max_requests": + panic(fmt.Errorf("field max_requests of message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue 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_MsgProcessWithdrawalQueue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue.max_requests": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueue 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_MsgProcessWithdrawalQueue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgProcessWithdrawalQueue", 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_MsgProcessWithdrawalQueue) 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_MsgProcessWithdrawalQueue) 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_MsgProcessWithdrawalQueue) 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_MsgProcessWithdrawalQueue) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgProcessWithdrawalQueue) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.MaxRequests != 0 { + n += 1 + runtime.Sov(uint64(x.MaxRequests)) + } + 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().(*MsgProcessWithdrawalQueue) + 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.MaxRequests != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxRequests)) + i-- + dAtA[i] = 0x10 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgProcessWithdrawalQueue) + 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: MsgProcessWithdrawalQueue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProcessWithdrawalQueue: 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 Authority", 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxRequests", wireType) + } + x.MaxRequests = 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.MaxRequests |= int32(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, + } +} + +var ( + md_MsgProcessWithdrawalQueueResponse protoreflect.MessageDescriptor + fd_MsgProcessWithdrawalQueueResponse_requests_processed protoreflect.FieldDescriptor + fd_MsgProcessWithdrawalQueueResponse_total_amount_processed protoreflect.FieldDescriptor + fd_MsgProcessWithdrawalQueueResponse_total_amount_distributed protoreflect.FieldDescriptor + fd_MsgProcessWithdrawalQueueResponse_remaining_requests protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgProcessWithdrawalQueueResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgProcessWithdrawalQueueResponse") + fd_MsgProcessWithdrawalQueueResponse_requests_processed = md_MsgProcessWithdrawalQueueResponse.Fields().ByName("requests_processed") + fd_MsgProcessWithdrawalQueueResponse_total_amount_processed = md_MsgProcessWithdrawalQueueResponse.Fields().ByName("total_amount_processed") + fd_MsgProcessWithdrawalQueueResponse_total_amount_distributed = md_MsgProcessWithdrawalQueueResponse.Fields().ByName("total_amount_distributed") + fd_MsgProcessWithdrawalQueueResponse_remaining_requests = md_MsgProcessWithdrawalQueueResponse.Fields().ByName("remaining_requests") +} + +var _ protoreflect.Message = (*fastReflection_MsgProcessWithdrawalQueueResponse)(nil) + +type fastReflection_MsgProcessWithdrawalQueueResponse MsgProcessWithdrawalQueueResponse + +func (x *MsgProcessWithdrawalQueueResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgProcessWithdrawalQueueResponse)(x) +} + +func (x *MsgProcessWithdrawalQueueResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[23] + 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_MsgProcessWithdrawalQueueResponse_messageType fastReflection_MsgProcessWithdrawalQueueResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgProcessWithdrawalQueueResponse_messageType{} + +type fastReflection_MsgProcessWithdrawalQueueResponse_messageType struct{} + +func (x fastReflection_MsgProcessWithdrawalQueueResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgProcessWithdrawalQueueResponse)(nil) +} +func (x fastReflection_MsgProcessWithdrawalQueueResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgProcessWithdrawalQueueResponse) +} +func (x fastReflection_MsgProcessWithdrawalQueueResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessWithdrawalQueueResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgProcessWithdrawalQueueResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgProcessWithdrawalQueueResponse +} + +// 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_MsgProcessWithdrawalQueueResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgProcessWithdrawalQueueResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgProcessWithdrawalQueueResponse) New() protoreflect.Message { + return new(fastReflection_MsgProcessWithdrawalQueueResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgProcessWithdrawalQueueResponse) Interface() protoreflect.ProtoMessage { + return (*MsgProcessWithdrawalQueueResponse)(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_MsgProcessWithdrawalQueueResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestsProcessed != int32(0) { + value := protoreflect.ValueOfInt32(x.RequestsProcessed) + if !f(fd_MsgProcessWithdrawalQueueResponse_requests_processed, value) { + return + } + } + if x.TotalAmountProcessed != "" { + value := protoreflect.ValueOfString(x.TotalAmountProcessed) + if !f(fd_MsgProcessWithdrawalQueueResponse_total_amount_processed, value) { + return + } + } + if x.TotalAmountDistributed != "" { + value := protoreflect.ValueOfString(x.TotalAmountDistributed) + if !f(fd_MsgProcessWithdrawalQueueResponse_total_amount_distributed, value) { + return + } + } + if x.RemainingRequests != int32(0) { + value := protoreflect.ValueOfInt32(x.RemainingRequests) + if !f(fd_MsgProcessWithdrawalQueueResponse_remaining_requests, 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_MsgProcessWithdrawalQueueResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.requests_processed": + return x.RequestsProcessed != int32(0) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_processed": + return x.TotalAmountProcessed != "" + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_distributed": + return x.TotalAmountDistributed != "" + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.remaining_requests": + return x.RemainingRequests != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse 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_MsgProcessWithdrawalQueueResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.requests_processed": + x.RequestsProcessed = int32(0) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_processed": + x.TotalAmountProcessed = "" + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_distributed": + x.TotalAmountDistributed = "" + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.remaining_requests": + x.RemainingRequests = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse 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_MsgProcessWithdrawalQueueResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.requests_processed": + value := x.RequestsProcessed + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_processed": + value := x.TotalAmountProcessed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_distributed": + value := x.TotalAmountDistributed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.remaining_requests": + value := x.RemainingRequests + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse 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_MsgProcessWithdrawalQueueResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.requests_processed": + x.RequestsProcessed = int32(value.Int()) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_processed": + x.TotalAmountProcessed = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_distributed": + x.TotalAmountDistributed = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.remaining_requests": + x.RemainingRequests = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse 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_MsgProcessWithdrawalQueueResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.requests_processed": + panic(fmt.Errorf("field requests_processed of message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_processed": + panic(fmt.Errorf("field total_amount_processed of message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_distributed": + panic(fmt.Errorf("field total_amount_distributed of message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.remaining_requests": + panic(fmt.Errorf("field remaining_requests of message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse 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_MsgProcessWithdrawalQueueResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.requests_processed": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_processed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.total_amount_distributed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse.remaining_requests": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse 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_MsgProcessWithdrawalQueueResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse", 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_MsgProcessWithdrawalQueueResponse) 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_MsgProcessWithdrawalQueueResponse) 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_MsgProcessWithdrawalQueueResponse) 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_MsgProcessWithdrawalQueueResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgProcessWithdrawalQueueResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.RequestsProcessed != 0 { + n += 1 + runtime.Sov(uint64(x.RequestsProcessed)) + } + l = len(x.TotalAmountProcessed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAmountDistributed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RemainingRequests != 0 { + n += 1 + runtime.Sov(uint64(x.RemainingRequests)) + } + 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().(*MsgProcessWithdrawalQueueResponse) + 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.RemainingRequests != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RemainingRequests)) + i-- + dAtA[i] = 0x20 + } + if len(x.TotalAmountDistributed) > 0 { + i -= len(x.TotalAmountDistributed) + copy(dAtA[i:], x.TotalAmountDistributed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountDistributed))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalAmountProcessed) > 0 { + i -= len(x.TotalAmountProcessed) + copy(dAtA[i:], x.TotalAmountProcessed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountProcessed))) + i-- + dAtA[i] = 0x12 + } + if x.RequestsProcessed != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RequestsProcessed)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgProcessWithdrawalQueueResponse) + 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: MsgProcessWithdrawalQueueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgProcessWithdrawalQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestsProcessed", wireType) + } + x.RequestsProcessed = 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.RequestsProcessed |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalAmountProcessed", 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.TotalAmountProcessed = 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 TotalAmountDistributed", 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.TotalAmountDistributed = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RemainingRequests", wireType) + } + x.RemainingRequests = 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.RemainingRequests |= int32(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, + } +} + +var ( + md_MsgCreateRemotePosition protoreflect.MessageDescriptor + fd_MsgCreateRemotePosition_manager protoreflect.FieldDescriptor + fd_MsgCreateRemotePosition_vault_address protoreflect.FieldDescriptor + fd_MsgCreateRemotePosition_chain_id protoreflect.FieldDescriptor + fd_MsgCreateRemotePosition_amount protoreflect.FieldDescriptor + fd_MsgCreateRemotePosition_min_shares_out protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCreateRemotePosition = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCreateRemotePosition") + fd_MsgCreateRemotePosition_manager = md_MsgCreateRemotePosition.Fields().ByName("manager") + fd_MsgCreateRemotePosition_vault_address = md_MsgCreateRemotePosition.Fields().ByName("vault_address") + fd_MsgCreateRemotePosition_chain_id = md_MsgCreateRemotePosition.Fields().ByName("chain_id") + fd_MsgCreateRemotePosition_amount = md_MsgCreateRemotePosition.Fields().ByName("amount") + fd_MsgCreateRemotePosition_min_shares_out = md_MsgCreateRemotePosition.Fields().ByName("min_shares_out") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateRemotePosition)(nil) + +type fastReflection_MsgCreateRemotePosition MsgCreateRemotePosition + +func (x *MsgCreateRemotePosition) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateRemotePosition)(x) +} + +func (x *MsgCreateRemotePosition) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[24] + 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_MsgCreateRemotePosition_messageType fastReflection_MsgCreateRemotePosition_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateRemotePosition_messageType{} + +type fastReflection_MsgCreateRemotePosition_messageType struct{} + +func (x fastReflection_MsgCreateRemotePosition_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateRemotePosition)(nil) +} +func (x fastReflection_MsgCreateRemotePosition_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateRemotePosition) +} +func (x fastReflection_MsgCreateRemotePosition_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateRemotePosition +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateRemotePosition) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateRemotePosition +} + +// 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_MsgCreateRemotePosition) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateRemotePosition_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateRemotePosition) New() protoreflect.Message { + return new(fastReflection_MsgCreateRemotePosition) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateRemotePosition) Interface() protoreflect.ProtoMessage { + return (*MsgCreateRemotePosition)(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_MsgCreateRemotePosition) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Manager != "" { + value := protoreflect.ValueOfString(x.Manager) + if !f(fd_MsgCreateRemotePosition_manager, value) { + return + } + } + if x.VaultAddress != "" { + value := protoreflect.ValueOfString(x.VaultAddress) + if !f(fd_MsgCreateRemotePosition_vault_address, value) { + return + } + } + if x.ChainId != uint32(0) { + value := protoreflect.ValueOfUint32(x.ChainId) + if !f(fd_MsgCreateRemotePosition_chain_id, value) { + return + } + } + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_MsgCreateRemotePosition_amount, value) { + return + } + } + if x.MinSharesOut != "" { + value := protoreflect.ValueOfString(x.MinSharesOut) + if !f(fd_MsgCreateRemotePosition_min_shares_out, 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_MsgCreateRemotePosition) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.manager": + return x.Manager != "" + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.vault_address": + return x.VaultAddress != "" + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.chain_id": + return x.ChainId != uint32(0) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.amount": + return x.Amount != "" + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.min_shares_out": + return x.MinSharesOut != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePosition 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_MsgCreateRemotePosition) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.manager": + x.Manager = "" + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.vault_address": + x.VaultAddress = "" + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.chain_id": + x.ChainId = uint32(0) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.amount": + x.Amount = "" + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.min_shares_out": + x.MinSharesOut = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePosition 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_MsgCreateRemotePosition) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.manager": + value := x.Manager + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.vault_address": + value := x.VaultAddress + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.chain_id": + value := x.ChainId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.amount": + value := x.Amount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.min_shares_out": + value := x.MinSharesOut + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePosition 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_MsgCreateRemotePosition) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.manager": + x.Manager = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.vault_address": + x.VaultAddress = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.chain_id": + x.ChainId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.amount": + x.Amount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.min_shares_out": + x.MinSharesOut = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePosition 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_MsgCreateRemotePosition) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.manager": + panic(fmt.Errorf("field manager of message noble.dollar.vaults.v2.MsgCreateRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.vault_address": + panic(fmt.Errorf("field vault_address of message noble.dollar.vaults.v2.MsgCreateRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.chain_id": + panic(fmt.Errorf("field chain_id of message noble.dollar.vaults.v2.MsgCreateRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.amount": + panic(fmt.Errorf("field amount of message noble.dollar.vaults.v2.MsgCreateRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.min_shares_out": + panic(fmt.Errorf("field min_shares_out of message noble.dollar.vaults.v2.MsgCreateRemotePosition is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePosition 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_MsgCreateRemotePosition) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.manager": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.vault_address": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.chain_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCreateRemotePosition.min_shares_out": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePosition 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_MsgCreateRemotePosition) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCreateRemotePosition", 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_MsgCreateRemotePosition) 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_MsgCreateRemotePosition) 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_MsgCreateRemotePosition) 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_MsgCreateRemotePosition) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateRemotePosition) + 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.Manager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.VaultAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChainId != 0 { + n += 1 + runtime.Sov(uint64(x.ChainId)) + } + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinSharesOut) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCreateRemotePosition) + 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 len(x.MinSharesOut) > 0 { + i -= len(x.MinSharesOut) + copy(dAtA[i:], x.MinSharesOut) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinSharesOut))) + i-- + dAtA[i] = 0x2a + } + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + i-- + dAtA[i] = 0x22 + } + if x.ChainId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChainId)) + i-- + dAtA[i] = 0x18 + } + if len(x.VaultAddress) > 0 { + i -= len(x.VaultAddress) + copy(dAtA[i:], x.VaultAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VaultAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.Manager) > 0 { + i -= len(x.Manager) + copy(dAtA[i:], x.Manager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + 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().(*MsgCreateRemotePosition) + 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: MsgCreateRemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateRemotePosition: 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 Manager", 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.Manager = 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 VaultAddress", 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.VaultAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + x.ChainId = 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.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = 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 MinSharesOut", 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.MinSharesOut = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgCreateRemotePositionResponse protoreflect.MessageDescriptor + fd_MsgCreateRemotePositionResponse_position_id protoreflect.FieldDescriptor + fd_MsgCreateRemotePositionResponse_route_id protoreflect.FieldDescriptor + fd_MsgCreateRemotePositionResponse_expected_completion protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCreateRemotePositionResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCreateRemotePositionResponse") + fd_MsgCreateRemotePositionResponse_position_id = md_MsgCreateRemotePositionResponse.Fields().ByName("position_id") + fd_MsgCreateRemotePositionResponse_route_id = md_MsgCreateRemotePositionResponse.Fields().ByName("route_id") + fd_MsgCreateRemotePositionResponse_expected_completion = md_MsgCreateRemotePositionResponse.Fields().ByName("expected_completion") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateRemotePositionResponse)(nil) + +type fastReflection_MsgCreateRemotePositionResponse MsgCreateRemotePositionResponse + +func (x *MsgCreateRemotePositionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateRemotePositionResponse)(x) +} + +func (x *MsgCreateRemotePositionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[25] + 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_MsgCreateRemotePositionResponse_messageType fastReflection_MsgCreateRemotePositionResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateRemotePositionResponse_messageType{} + +type fastReflection_MsgCreateRemotePositionResponse_messageType struct{} + +func (x fastReflection_MsgCreateRemotePositionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateRemotePositionResponse)(nil) +} +func (x fastReflection_MsgCreateRemotePositionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateRemotePositionResponse) +} +func (x fastReflection_MsgCreateRemotePositionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateRemotePositionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateRemotePositionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateRemotePositionResponse +} + +// 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_MsgCreateRemotePositionResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateRemotePositionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateRemotePositionResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateRemotePositionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateRemotePositionResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateRemotePositionResponse)(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_MsgCreateRemotePositionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_MsgCreateRemotePositionResponse_position_id, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgCreateRemotePositionResponse_route_id, value) { + return + } + } + if x.ExpectedCompletion != nil { + value := protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + if !f(fd_MsgCreateRemotePositionResponse_expected_completion, 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_MsgCreateRemotePositionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion": + return x.ExpectedCompletion != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse 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_MsgCreateRemotePositionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion": + x.ExpectedCompletion = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse 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_MsgCreateRemotePositionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion": + value := x.ExpectedCompletion + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse 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_MsgCreateRemotePositionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion": + x.ExpectedCompletion = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse 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_MsgCreateRemotePositionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion": + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse 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_MsgCreateRemotePositionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCreateRemotePositionResponse 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_MsgCreateRemotePositionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCreateRemotePositionResponse", 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_MsgCreateRemotePositionResponse) 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_MsgCreateRemotePositionResponse) 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_MsgCreateRemotePositionResponse) 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_MsgCreateRemotePositionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateRemotePositionResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + if x.ExpectedCompletion != nil { + l = options.Size(x.ExpectedCompletion) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCreateRemotePositionResponse) + 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.ExpectedCompletion != nil { + encoded, err := options.Marshal(x.ExpectedCompletion) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x10 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgCreateRemotePositionResponse) + 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: MsgCreateRemotePositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateRemotePositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedCompletion", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedCompletion); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgCloseRemotePosition protoreflect.MessageDescriptor + fd_MsgCloseRemotePosition_manager protoreflect.FieldDescriptor + fd_MsgCloseRemotePosition_position_id protoreflect.FieldDescriptor + fd_MsgCloseRemotePosition_partial_amount protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCloseRemotePosition = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCloseRemotePosition") + fd_MsgCloseRemotePosition_manager = md_MsgCloseRemotePosition.Fields().ByName("manager") + fd_MsgCloseRemotePosition_position_id = md_MsgCloseRemotePosition.Fields().ByName("position_id") + fd_MsgCloseRemotePosition_partial_amount = md_MsgCloseRemotePosition.Fields().ByName("partial_amount") +} + +var _ protoreflect.Message = (*fastReflection_MsgCloseRemotePosition)(nil) + +type fastReflection_MsgCloseRemotePosition MsgCloseRemotePosition + +func (x *MsgCloseRemotePosition) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCloseRemotePosition)(x) +} + +func (x *MsgCloseRemotePosition) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[26] + 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_MsgCloseRemotePosition_messageType fastReflection_MsgCloseRemotePosition_messageType +var _ protoreflect.MessageType = fastReflection_MsgCloseRemotePosition_messageType{} + +type fastReflection_MsgCloseRemotePosition_messageType struct{} + +func (x fastReflection_MsgCloseRemotePosition_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCloseRemotePosition)(nil) +} +func (x fastReflection_MsgCloseRemotePosition_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCloseRemotePosition) +} +func (x fastReflection_MsgCloseRemotePosition_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCloseRemotePosition +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCloseRemotePosition) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCloseRemotePosition +} + +// 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_MsgCloseRemotePosition) Type() protoreflect.MessageType { + return _fastReflection_MsgCloseRemotePosition_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCloseRemotePosition) New() protoreflect.Message { + return new(fastReflection_MsgCloseRemotePosition) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCloseRemotePosition) Interface() protoreflect.ProtoMessage { + return (*MsgCloseRemotePosition)(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_MsgCloseRemotePosition) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Manager != "" { + value := protoreflect.ValueOfString(x.Manager) + if !f(fd_MsgCloseRemotePosition_manager, value) { + return + } + } + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_MsgCloseRemotePosition_position_id, value) { + return + } + } + if x.PartialAmount != "" { + value := protoreflect.ValueOfString(x.PartialAmount) + if !f(fd_MsgCloseRemotePosition_partial_amount, 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_MsgCloseRemotePosition) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.manager": + return x.Manager != "" + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.partial_amount": + return x.PartialAmount != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePosition 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_MsgCloseRemotePosition) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.manager": + x.Manager = "" + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.partial_amount": + x.PartialAmount = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePosition 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_MsgCloseRemotePosition) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.manager": + value := x.Manager + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.partial_amount": + value := x.PartialAmount + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePosition 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_MsgCloseRemotePosition) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.manager": + x.Manager = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.partial_amount": + x.PartialAmount = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePosition 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_MsgCloseRemotePosition) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.manager": + panic(fmt.Errorf("field manager of message noble.dollar.vaults.v2.MsgCloseRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.MsgCloseRemotePosition is not mutable")) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.partial_amount": + panic(fmt.Errorf("field partial_amount of message noble.dollar.vaults.v2.MsgCloseRemotePosition is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePosition 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_MsgCloseRemotePosition) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.manager": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgCloseRemotePosition.partial_amount": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePosition 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_MsgCloseRemotePosition) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCloseRemotePosition", 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_MsgCloseRemotePosition) 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_MsgCloseRemotePosition) 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_MsgCloseRemotePosition) 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_MsgCloseRemotePosition) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCloseRemotePosition) + 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.Manager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + l = len(x.PartialAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCloseRemotePosition) + 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 len(x.PartialAmount) > 0 { + i -= len(x.PartialAmount) + copy(dAtA[i:], x.PartialAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PartialAmount))) + i-- + dAtA[i] = 0x1a + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Manager) > 0 { + i -= len(x.Manager) + copy(dAtA[i:], x.Manager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + 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().(*MsgCloseRemotePosition) + 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: MsgCloseRemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCloseRemotePosition: 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 Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PartialAmount", 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.PartialAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgCloseRemotePositionResponse protoreflect.MessageDescriptor + fd_MsgCloseRemotePositionResponse_position_id protoreflect.FieldDescriptor + fd_MsgCloseRemotePositionResponse_initiated protoreflect.FieldDescriptor + fd_MsgCloseRemotePositionResponse_expected_completion protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCloseRemotePositionResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCloseRemotePositionResponse") + fd_MsgCloseRemotePositionResponse_position_id = md_MsgCloseRemotePositionResponse.Fields().ByName("position_id") + fd_MsgCloseRemotePositionResponse_initiated = md_MsgCloseRemotePositionResponse.Fields().ByName("initiated") + fd_MsgCloseRemotePositionResponse_expected_completion = md_MsgCloseRemotePositionResponse.Fields().ByName("expected_completion") +} + +var _ protoreflect.Message = (*fastReflection_MsgCloseRemotePositionResponse)(nil) + +type fastReflection_MsgCloseRemotePositionResponse MsgCloseRemotePositionResponse + +func (x *MsgCloseRemotePositionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCloseRemotePositionResponse)(x) +} + +func (x *MsgCloseRemotePositionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[27] + 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_MsgCloseRemotePositionResponse_messageType fastReflection_MsgCloseRemotePositionResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCloseRemotePositionResponse_messageType{} + +type fastReflection_MsgCloseRemotePositionResponse_messageType struct{} + +func (x fastReflection_MsgCloseRemotePositionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCloseRemotePositionResponse)(nil) +} +func (x fastReflection_MsgCloseRemotePositionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCloseRemotePositionResponse) +} +func (x fastReflection_MsgCloseRemotePositionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCloseRemotePositionResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCloseRemotePositionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCloseRemotePositionResponse +} + +// 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_MsgCloseRemotePositionResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCloseRemotePositionResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCloseRemotePositionResponse) New() protoreflect.Message { + return new(fastReflection_MsgCloseRemotePositionResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCloseRemotePositionResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCloseRemotePositionResponse)(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_MsgCloseRemotePositionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_MsgCloseRemotePositionResponse_position_id, value) { + return + } + } + if x.Initiated != false { + value := protoreflect.ValueOfBool(x.Initiated) + if !f(fd_MsgCloseRemotePositionResponse_initiated, value) { + return + } + } + if x.ExpectedCompletion != nil { + value := protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + if !f(fd_MsgCloseRemotePositionResponse_expected_completion, 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_MsgCloseRemotePositionResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.initiated": + return x.Initiated != false + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion": + return x.ExpectedCompletion != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse 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_MsgCloseRemotePositionResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.initiated": + x.Initiated = false + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion": + x.ExpectedCompletion = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse 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_MsgCloseRemotePositionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.initiated": + value := x.Initiated + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion": + value := x.ExpectedCompletion + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse 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_MsgCloseRemotePositionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.initiated": + x.Initiated = value.Bool() + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion": + x.ExpectedCompletion = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse 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_MsgCloseRemotePositionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion": + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.ExpectedCompletion.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.initiated": + panic(fmt.Errorf("field initiated of message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse 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_MsgCloseRemotePositionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.initiated": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCloseRemotePositionResponse 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_MsgCloseRemotePositionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCloseRemotePositionResponse", 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_MsgCloseRemotePositionResponse) 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_MsgCloseRemotePositionResponse) 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_MsgCloseRemotePositionResponse) 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_MsgCloseRemotePositionResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCloseRemotePositionResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.Initiated { + n += 2 + } + if x.ExpectedCompletion != nil { + l = options.Size(x.ExpectedCompletion) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCloseRemotePositionResponse) + 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.ExpectedCompletion != nil { + encoded, err := options.Marshal(x.ExpectedCompletion) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.Initiated { + i-- + if x.Initiated { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgCloseRemotePositionResponse) + 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: MsgCloseRemotePositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCloseRemotePositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Initiated", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Initiated = bool(v != 0) + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectedCompletion", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.ExpectedCompletion == nil { + x.ExpectedCompletion = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpectedCompletion); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_TargetAllocation protoreflect.MessageDescriptor + fd_TargetAllocation_position_id protoreflect.FieldDescriptor + fd_TargetAllocation_target_percentage protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_TargetAllocation = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("TargetAllocation") + fd_TargetAllocation_position_id = md_TargetAllocation.Fields().ByName("position_id") + fd_TargetAllocation_target_percentage = md_TargetAllocation.Fields().ByName("target_percentage") +} + +var _ protoreflect.Message = (*fastReflection_TargetAllocation)(nil) + +type fastReflection_TargetAllocation TargetAllocation + +func (x *TargetAllocation) ProtoReflect() protoreflect.Message { + return (*fastReflection_TargetAllocation)(x) +} + +func (x *TargetAllocation) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[28] + 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_TargetAllocation_messageType fastReflection_TargetAllocation_messageType +var _ protoreflect.MessageType = fastReflection_TargetAllocation_messageType{} + +type fastReflection_TargetAllocation_messageType struct{} + +func (x fastReflection_TargetAllocation_messageType) Zero() protoreflect.Message { + return (*fastReflection_TargetAllocation)(nil) +} +func (x fastReflection_TargetAllocation_messageType) New() protoreflect.Message { + return new(fastReflection_TargetAllocation) +} +func (x fastReflection_TargetAllocation_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TargetAllocation +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TargetAllocation) Descriptor() protoreflect.MessageDescriptor { + return md_TargetAllocation +} + +// 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_TargetAllocation) Type() protoreflect.MessageType { + return _fastReflection_TargetAllocation_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TargetAllocation) New() protoreflect.Message { + return new(fastReflection_TargetAllocation) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TargetAllocation) Interface() protoreflect.ProtoMessage { + return (*TargetAllocation)(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_TargetAllocation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PositionId != uint64(0) { + value := protoreflect.ValueOfUint64(x.PositionId) + if !f(fd_TargetAllocation_position_id, value) { + return + } + } + if x.TargetPercentage != uint32(0) { + value := protoreflect.ValueOfUint32(x.TargetPercentage) + if !f(fd_TargetAllocation_target_percentage, 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_TargetAllocation) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TargetAllocation.position_id": + return x.PositionId != uint64(0) + case "noble.dollar.vaults.v2.TargetAllocation.target_percentage": + return x.TargetPercentage != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TargetAllocation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TargetAllocation 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_TargetAllocation) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TargetAllocation.position_id": + x.PositionId = uint64(0) + case "noble.dollar.vaults.v2.TargetAllocation.target_percentage": + x.TargetPercentage = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TargetAllocation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TargetAllocation 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_TargetAllocation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.TargetAllocation.position_id": + value := x.PositionId + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.TargetAllocation.target_percentage": + value := x.TargetPercentage + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TargetAllocation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TargetAllocation 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_TargetAllocation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TargetAllocation.position_id": + x.PositionId = value.Uint() + case "noble.dollar.vaults.v2.TargetAllocation.target_percentage": + x.TargetPercentage = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TargetAllocation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TargetAllocation 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_TargetAllocation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TargetAllocation.position_id": + panic(fmt.Errorf("field position_id of message noble.dollar.vaults.v2.TargetAllocation is not mutable")) + case "noble.dollar.vaults.v2.TargetAllocation.target_percentage": + panic(fmt.Errorf("field target_percentage of message noble.dollar.vaults.v2.TargetAllocation is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TargetAllocation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TargetAllocation 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_TargetAllocation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TargetAllocation.position_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.TargetAllocation.target_percentage": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TargetAllocation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TargetAllocation 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_TargetAllocation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.TargetAllocation", 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_TargetAllocation) 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_TargetAllocation) 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_TargetAllocation) 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_TargetAllocation) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TargetAllocation) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.PositionId != 0 { + n += 1 + runtime.Sov(uint64(x.PositionId)) + } + if x.TargetPercentage != 0 { + n += 1 + runtime.Sov(uint64(x.TargetPercentage)) + } + 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().(*TargetAllocation) + 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.TargetPercentage != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TargetPercentage)) + i-- + dAtA[i] = 0x10 + } + if x.PositionId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PositionId)) + i-- + dAtA[i] = 0x8 + } + 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().(*TargetAllocation) + 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: TargetAllocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TargetAllocation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + x.PositionId = 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.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TargetPercentage", wireType) + } + x.TargetPercentage = 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.TargetPercentage |= uint32(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, + } +} + +var _ protoreflect.List = (*_MsgRebalance_2_list)(nil) + +type _MsgRebalance_2_list struct { + list *[]*TargetAllocation +} + +func (x *_MsgRebalance_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgRebalance_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgRebalance_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TargetAllocation) + (*x.list)[i] = concreteValue +} + +func (x *_MsgRebalance_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TargetAllocation) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgRebalance_2_list) AppendMutable() protoreflect.Value { + v := new(TargetAllocation) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgRebalance_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgRebalance_2_list) NewElement() protoreflect.Value { + v := new(TargetAllocation) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgRebalance_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgRebalance protoreflect.MessageDescriptor + fd_MsgRebalance_manager protoreflect.FieldDescriptor + fd_MsgRebalance_target_allocations protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRebalance = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRebalance") + fd_MsgRebalance_manager = md_MsgRebalance.Fields().ByName("manager") + fd_MsgRebalance_target_allocations = md_MsgRebalance.Fields().ByName("target_allocations") +} + +var _ protoreflect.Message = (*fastReflection_MsgRebalance)(nil) + +type fastReflection_MsgRebalance MsgRebalance + +func (x *MsgRebalance) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRebalance)(x) +} + +func (x *MsgRebalance) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[29] + 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_MsgRebalance_messageType fastReflection_MsgRebalance_messageType +var _ protoreflect.MessageType = fastReflection_MsgRebalance_messageType{} + +type fastReflection_MsgRebalance_messageType struct{} + +func (x fastReflection_MsgRebalance_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRebalance)(nil) +} +func (x fastReflection_MsgRebalance_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRebalance) +} +func (x fastReflection_MsgRebalance_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRebalance +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRebalance) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRebalance +} + +// 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_MsgRebalance) Type() protoreflect.MessageType { + return _fastReflection_MsgRebalance_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRebalance) New() protoreflect.Message { + return new(fastReflection_MsgRebalance) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRebalance) Interface() protoreflect.ProtoMessage { + return (*MsgRebalance)(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_MsgRebalance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Manager != "" { + value := protoreflect.ValueOfString(x.Manager) + if !f(fd_MsgRebalance_manager, value) { + return + } + } + if len(x.TargetAllocations) != 0 { + value := protoreflect.ValueOfList(&_MsgRebalance_2_list{list: &x.TargetAllocations}) + if !f(fd_MsgRebalance_target_allocations, 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_MsgRebalance) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalance.manager": + return x.Manager != "" + case "noble.dollar.vaults.v2.MsgRebalance.target_allocations": + return len(x.TargetAllocations) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalance")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalance 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_MsgRebalance) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalance.manager": + x.Manager = "" + case "noble.dollar.vaults.v2.MsgRebalance.target_allocations": + x.TargetAllocations = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalance")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalance 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_MsgRebalance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRebalance.manager": + value := x.Manager + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgRebalance.target_allocations": + if len(x.TargetAllocations) == 0 { + return protoreflect.ValueOfList(&_MsgRebalance_2_list{}) + } + listValue := &_MsgRebalance_2_list{list: &x.TargetAllocations} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalance")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalance 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_MsgRebalance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalance.manager": + x.Manager = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgRebalance.target_allocations": + lv := value.List() + clv := lv.(*_MsgRebalance_2_list) + x.TargetAllocations = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalance")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalance 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_MsgRebalance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalance.target_allocations": + if x.TargetAllocations == nil { + x.TargetAllocations = []*TargetAllocation{} + } + value := &_MsgRebalance_2_list{list: &x.TargetAllocations} + return protoreflect.ValueOfList(value) + case "noble.dollar.vaults.v2.MsgRebalance.manager": + panic(fmt.Errorf("field manager of message noble.dollar.vaults.v2.MsgRebalance is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalance")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalance 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_MsgRebalance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalance.manager": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgRebalance.target_allocations": + list := []*TargetAllocation{} + return protoreflect.ValueOfList(&_MsgRebalance_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalance")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalance 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_MsgRebalance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRebalance", 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_MsgRebalance) 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_MsgRebalance) 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_MsgRebalance) 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_MsgRebalance) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRebalance) + 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.Manager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.TargetAllocations) > 0 { + for _, e := range x.TargetAllocations { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + 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().(*MsgRebalance) + 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 len(x.TargetAllocations) > 0 { + for iNdEx := len(x.TargetAllocations) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TargetAllocations[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Manager) > 0 { + i -= len(x.Manager) + copy(dAtA[i:], x.Manager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + 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().(*MsgRebalance) + 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: MsgRebalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRebalance: 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 Manager", 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.Manager = 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 TargetAllocations", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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.TargetAllocations = append(x.TargetAllocations, &TargetAllocation{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TargetAllocations[len(x.TargetAllocations)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgRebalanceResponse protoreflect.MessageDescriptor + fd_MsgRebalanceResponse_operations_initiated protoreflect.FieldDescriptor + fd_MsgRebalanceResponse_summary protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgRebalanceResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgRebalanceResponse") + fd_MsgRebalanceResponse_operations_initiated = md_MsgRebalanceResponse.Fields().ByName("operations_initiated") + fd_MsgRebalanceResponse_summary = md_MsgRebalanceResponse.Fields().ByName("summary") +} + +var _ protoreflect.Message = (*fastReflection_MsgRebalanceResponse)(nil) + +type fastReflection_MsgRebalanceResponse MsgRebalanceResponse + +func (x *MsgRebalanceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRebalanceResponse)(x) +} + +func (x *MsgRebalanceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[30] + 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_MsgRebalanceResponse_messageType fastReflection_MsgRebalanceResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRebalanceResponse_messageType{} + +type fastReflection_MsgRebalanceResponse_messageType struct{} + +func (x fastReflection_MsgRebalanceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRebalanceResponse)(nil) +} +func (x fastReflection_MsgRebalanceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRebalanceResponse) +} +func (x fastReflection_MsgRebalanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRebalanceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRebalanceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRebalanceResponse +} + +// 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_MsgRebalanceResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRebalanceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRebalanceResponse) New() protoreflect.Message { + return new(fastReflection_MsgRebalanceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRebalanceResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRebalanceResponse)(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_MsgRebalanceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.OperationsInitiated != int32(0) { + value := protoreflect.ValueOfInt32(x.OperationsInitiated) + if !f(fd_MsgRebalanceResponse_operations_initiated, value) { + return + } + } + if x.Summary != "" { + value := protoreflect.ValueOfString(x.Summary) + if !f(fd_MsgRebalanceResponse_summary, 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_MsgRebalanceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalanceResponse.operations_initiated": + return x.OperationsInitiated != int32(0) + case "noble.dollar.vaults.v2.MsgRebalanceResponse.summary": + return x.Summary != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalanceResponse 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_MsgRebalanceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalanceResponse.operations_initiated": + x.OperationsInitiated = int32(0) + case "noble.dollar.vaults.v2.MsgRebalanceResponse.summary": + x.Summary = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalanceResponse 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_MsgRebalanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgRebalanceResponse.operations_initiated": + value := x.OperationsInitiated + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.MsgRebalanceResponse.summary": + value := x.Summary + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalanceResponse 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_MsgRebalanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalanceResponse.operations_initiated": + x.OperationsInitiated = int32(value.Int()) + case "noble.dollar.vaults.v2.MsgRebalanceResponse.summary": + x.Summary = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalanceResponse 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_MsgRebalanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalanceResponse.operations_initiated": + panic(fmt.Errorf("field operations_initiated of message noble.dollar.vaults.v2.MsgRebalanceResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgRebalanceResponse.summary": + panic(fmt.Errorf("field summary of message noble.dollar.vaults.v2.MsgRebalanceResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalanceResponse 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_MsgRebalanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgRebalanceResponse.operations_initiated": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.MsgRebalanceResponse.summary": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgRebalanceResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgRebalanceResponse 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_MsgRebalanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgRebalanceResponse", 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_MsgRebalanceResponse) 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_MsgRebalanceResponse) 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_MsgRebalanceResponse) 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_MsgRebalanceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRebalanceResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.OperationsInitiated != 0 { + n += 1 + runtime.Sov(uint64(x.OperationsInitiated)) + } + l = len(x.Summary) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgRebalanceResponse) + 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 len(x.Summary) > 0 { + i -= len(x.Summary) + copy(dAtA[i:], x.Summary) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Summary))) + i-- + dAtA[i] = 0x12 + } + if x.OperationsInitiated != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.OperationsInitiated)) + i-- + dAtA[i] = 0x8 + } + 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().(*MsgRebalanceResponse) + 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: MsgRebalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRebalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OperationsInitiated", wireType) + } + x.OperationsInitiated = 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.OperationsInitiated |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Summary", 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.Summary = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgClaimWithdrawal protoreflect.MessageDescriptor + fd_MsgClaimWithdrawal_claimer protoreflect.FieldDescriptor + fd_MsgClaimWithdrawal_request_id protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgClaimWithdrawal = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgClaimWithdrawal") + fd_MsgClaimWithdrawal_claimer = md_MsgClaimWithdrawal.Fields().ByName("claimer") + fd_MsgClaimWithdrawal_request_id = md_MsgClaimWithdrawal.Fields().ByName("request_id") +} + +var _ protoreflect.Message = (*fastReflection_MsgClaimWithdrawal)(nil) + +type fastReflection_MsgClaimWithdrawal MsgClaimWithdrawal + +func (x *MsgClaimWithdrawal) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgClaimWithdrawal)(x) +} + +func (x *MsgClaimWithdrawal) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[31] + 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_MsgClaimWithdrawal_messageType fastReflection_MsgClaimWithdrawal_messageType +var _ protoreflect.MessageType = fastReflection_MsgClaimWithdrawal_messageType{} + +type fastReflection_MsgClaimWithdrawal_messageType struct{} + +func (x fastReflection_MsgClaimWithdrawal_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgClaimWithdrawal)(nil) +} +func (x fastReflection_MsgClaimWithdrawal_messageType) New() protoreflect.Message { + return new(fastReflection_MsgClaimWithdrawal) +} +func (x fastReflection_MsgClaimWithdrawal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgClaimWithdrawal +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgClaimWithdrawal) Descriptor() protoreflect.MessageDescriptor { + return md_MsgClaimWithdrawal +} + +// 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_MsgClaimWithdrawal) Type() protoreflect.MessageType { + return _fastReflection_MsgClaimWithdrawal_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgClaimWithdrawal) New() protoreflect.Message { + return new(fastReflection_MsgClaimWithdrawal) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgClaimWithdrawal) Interface() protoreflect.ProtoMessage { + return (*MsgClaimWithdrawal)(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_MsgClaimWithdrawal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Claimer != "" { + value := protoreflect.ValueOfString(x.Claimer) + if !f(fd_MsgClaimWithdrawal_claimer, value) { + return + } + } + if x.RequestId != "" { + value := protoreflect.ValueOfString(x.RequestId) + if !f(fd_MsgClaimWithdrawal_request_id, 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_MsgClaimWithdrawal) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.claimer": + return x.Claimer != "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.request_id": + return x.RequestId != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawal 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_MsgClaimWithdrawal) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.claimer": + x.Claimer = "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.request_id": + x.RequestId = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawal 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_MsgClaimWithdrawal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.claimer": + value := x.Claimer + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.request_id": + value := x.RequestId + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawal 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_MsgClaimWithdrawal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.claimer": + x.Claimer = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.request_id": + x.RequestId = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawal 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_MsgClaimWithdrawal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.claimer": + panic(fmt.Errorf("field claimer of message noble.dollar.vaults.v2.MsgClaimWithdrawal is not mutable")) + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.request_id": + panic(fmt.Errorf("field request_id of message noble.dollar.vaults.v2.MsgClaimWithdrawal is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawal 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_MsgClaimWithdrawal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.claimer": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgClaimWithdrawal.request_id": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawal")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawal 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_MsgClaimWithdrawal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgClaimWithdrawal", 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_MsgClaimWithdrawal) 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_MsgClaimWithdrawal) 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_MsgClaimWithdrawal) 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_MsgClaimWithdrawal) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgClaimWithdrawal) + 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.Claimer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.RequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgClaimWithdrawal) + 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 len(x.RequestId) > 0 { + i -= len(x.RequestId) + copy(dAtA[i:], x.RequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Claimer) > 0 { + i -= len(x.Claimer) + copy(dAtA[i:], x.Claimer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Claimer))) + 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().(*MsgClaimWithdrawal) + 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: MsgClaimWithdrawal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimWithdrawal: 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 Claimer", 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.Claimer = 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 RequestId", 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.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgClaimWithdrawalResponse protoreflect.MessageDescriptor + fd_MsgClaimWithdrawalResponse_amount_claimed protoreflect.FieldDescriptor + fd_MsgClaimWithdrawalResponse_principal_amount protoreflect.FieldDescriptor + fd_MsgClaimWithdrawalResponse_yield_amount protoreflect.FieldDescriptor + fd_MsgClaimWithdrawalResponse_fees_deducted protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgClaimWithdrawalResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgClaimWithdrawalResponse") + fd_MsgClaimWithdrawalResponse_amount_claimed = md_MsgClaimWithdrawalResponse.Fields().ByName("amount_claimed") + fd_MsgClaimWithdrawalResponse_principal_amount = md_MsgClaimWithdrawalResponse.Fields().ByName("principal_amount") + fd_MsgClaimWithdrawalResponse_yield_amount = md_MsgClaimWithdrawalResponse.Fields().ByName("yield_amount") + fd_MsgClaimWithdrawalResponse_fees_deducted = md_MsgClaimWithdrawalResponse.Fields().ByName("fees_deducted") +} + +var _ protoreflect.Message = (*fastReflection_MsgClaimWithdrawalResponse)(nil) + +type fastReflection_MsgClaimWithdrawalResponse MsgClaimWithdrawalResponse + +func (x *MsgClaimWithdrawalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgClaimWithdrawalResponse)(x) +} + +func (x *MsgClaimWithdrawalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[32] + 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_MsgClaimWithdrawalResponse_messageType fastReflection_MsgClaimWithdrawalResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgClaimWithdrawalResponse_messageType{} + +type fastReflection_MsgClaimWithdrawalResponse_messageType struct{} + +func (x fastReflection_MsgClaimWithdrawalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgClaimWithdrawalResponse)(nil) +} +func (x fastReflection_MsgClaimWithdrawalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgClaimWithdrawalResponse) +} +func (x fastReflection_MsgClaimWithdrawalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgClaimWithdrawalResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgClaimWithdrawalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgClaimWithdrawalResponse +} + +// 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_MsgClaimWithdrawalResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgClaimWithdrawalResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgClaimWithdrawalResponse) New() protoreflect.Message { + return new(fastReflection_MsgClaimWithdrawalResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgClaimWithdrawalResponse) Interface() protoreflect.ProtoMessage { + return (*MsgClaimWithdrawalResponse)(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_MsgClaimWithdrawalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.AmountClaimed != "" { + value := protoreflect.ValueOfString(x.AmountClaimed) + if !f(fd_MsgClaimWithdrawalResponse_amount_claimed, value) { + return + } + } + if x.PrincipalAmount != "" { + value := protoreflect.ValueOfString(x.PrincipalAmount) + if !f(fd_MsgClaimWithdrawalResponse_principal_amount, value) { + return + } + } + if x.YieldAmount != "" { + value := protoreflect.ValueOfString(x.YieldAmount) + if !f(fd_MsgClaimWithdrawalResponse_yield_amount, value) { + return + } + } + if x.FeesDeducted != "" { + value := protoreflect.ValueOfString(x.FeesDeducted) + if !f(fd_MsgClaimWithdrawalResponse_fees_deducted, 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_MsgClaimWithdrawalResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.amount_claimed": + return x.AmountClaimed != "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.principal_amount": + return x.PrincipalAmount != "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.yield_amount": + return x.YieldAmount != "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.fees_deducted": + return x.FeesDeducted != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse 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_MsgClaimWithdrawalResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.amount_claimed": + x.AmountClaimed = "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.principal_amount": + x.PrincipalAmount = "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.yield_amount": + x.YieldAmount = "" + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.fees_deducted": + x.FeesDeducted = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse 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_MsgClaimWithdrawalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.amount_claimed": + value := x.AmountClaimed + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.principal_amount": + value := x.PrincipalAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.yield_amount": + value := x.YieldAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.fees_deducted": + value := x.FeesDeducted + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse 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_MsgClaimWithdrawalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.amount_claimed": + x.AmountClaimed = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.principal_amount": + x.PrincipalAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.yield_amount": + x.YieldAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.fees_deducted": + x.FeesDeducted = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse 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_MsgClaimWithdrawalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.amount_claimed": + panic(fmt.Errorf("field amount_claimed of message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.principal_amount": + panic(fmt.Errorf("field principal_amount of message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.yield_amount": + panic(fmt.Errorf("field yield_amount of message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.fees_deducted": + panic(fmt.Errorf("field fees_deducted of message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse 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_MsgClaimWithdrawalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.amount_claimed": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.principal_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.yield_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse.fees_deducted": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgClaimWithdrawalResponse 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_MsgClaimWithdrawalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgClaimWithdrawalResponse", 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_MsgClaimWithdrawalResponse) 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_MsgClaimWithdrawalResponse) 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_MsgClaimWithdrawalResponse) 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_MsgClaimWithdrawalResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgClaimWithdrawalResponse) + 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.AmountClaimed) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PrincipalAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.FeesDeducted) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgClaimWithdrawalResponse) + 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 len(x.FeesDeducted) > 0 { + i -= len(x.FeesDeducted) + copy(dAtA[i:], x.FeesDeducted) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeesDeducted))) + i-- + dAtA[i] = 0x22 + } + if len(x.YieldAmount) > 0 { + i -= len(x.YieldAmount) + copy(dAtA[i:], x.YieldAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldAmount))) + i-- + dAtA[i] = 0x1a + } + if len(x.PrincipalAmount) > 0 { + i -= len(x.PrincipalAmount) + copy(dAtA[i:], x.PrincipalAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PrincipalAmount))) + i-- + dAtA[i] = 0x12 + } + if len(x.AmountClaimed) > 0 { + i -= len(x.AmountClaimed) + copy(dAtA[i:], x.AmountClaimed) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountClaimed))) + 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().(*MsgClaimWithdrawalResponse) + 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: MsgClaimWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgClaimWithdrawalResponse: 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 AmountClaimed", 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.AmountClaimed = 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 PrincipalAmount", 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.PrincipalAmount = 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 YieldAmount", 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.YieldAmount = 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 FeesDeducted", 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.FeesDeducted = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateNAV protoreflect.MessageDescriptor + fd_MsgUpdateNAV_authority protoreflect.FieldDescriptor + fd_MsgUpdateNAV_new_nav protoreflect.FieldDescriptor + fd_MsgUpdateNAV_previous_nav protoreflect.FieldDescriptor + fd_MsgUpdateNAV_change_bps protoreflect.FieldDescriptor + fd_MsgUpdateNAV_circuit_breaker_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateNAV = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateNAV") + fd_MsgUpdateNAV_authority = md_MsgUpdateNAV.Fields().ByName("authority") + fd_MsgUpdateNAV_new_nav = md_MsgUpdateNAV.Fields().ByName("new_nav") + fd_MsgUpdateNAV_previous_nav = md_MsgUpdateNAV.Fields().ByName("previous_nav") + fd_MsgUpdateNAV_change_bps = md_MsgUpdateNAV.Fields().ByName("change_bps") + fd_MsgUpdateNAV_circuit_breaker_active = md_MsgUpdateNAV.Fields().ByName("circuit_breaker_active") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateNAV)(nil) + +type fastReflection_MsgUpdateNAV MsgUpdateNAV + +func (x *MsgUpdateNAV) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateNAV)(x) +} + +func (x *MsgUpdateNAV) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[33] + 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_MsgUpdateNAV_messageType fastReflection_MsgUpdateNAV_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateNAV_messageType{} + +type fastReflection_MsgUpdateNAV_messageType struct{} + +func (x fastReflection_MsgUpdateNAV_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateNAV)(nil) +} +func (x fastReflection_MsgUpdateNAV_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateNAV) +} +func (x fastReflection_MsgUpdateNAV_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateNAV +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateNAV) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateNAV +} + +// 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_MsgUpdateNAV) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateNAV_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateNAV) New() protoreflect.Message { + return new(fastReflection_MsgUpdateNAV) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateNAV) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateNAV)(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_MsgUpdateNAV) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateNAV_authority, value) { + return + } + } + if x.NewNav != "" { + value := protoreflect.ValueOfString(x.NewNav) + if !f(fd_MsgUpdateNAV_new_nav, value) { + return + } + } + if x.PreviousNav != "" { + value := protoreflect.ValueOfString(x.PreviousNav) + if !f(fd_MsgUpdateNAV_previous_nav, value) { + return + } + } + if x.ChangeBps != int32(0) { + value := protoreflect.ValueOfInt32(x.ChangeBps) + if !f(fd_MsgUpdateNAV_change_bps, value) { + return + } + } + if x.CircuitBreakerActive != false { + value := protoreflect.ValueOfBool(x.CircuitBreakerActive) + if !f(fd_MsgUpdateNAV_circuit_breaker_active, 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_MsgUpdateNAV) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAV.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateNAV.new_nav": + return x.NewNav != "" + case "noble.dollar.vaults.v2.MsgUpdateNAV.previous_nav": + return x.PreviousNav != "" + case "noble.dollar.vaults.v2.MsgUpdateNAV.change_bps": + return x.ChangeBps != int32(0) + case "noble.dollar.vaults.v2.MsgUpdateNAV.circuit_breaker_active": + return x.CircuitBreakerActive != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAV")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAV 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_MsgUpdateNAV) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAV.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateNAV.new_nav": + x.NewNav = "" + case "noble.dollar.vaults.v2.MsgUpdateNAV.previous_nav": + x.PreviousNav = "" + case "noble.dollar.vaults.v2.MsgUpdateNAV.change_bps": + x.ChangeBps = int32(0) + case "noble.dollar.vaults.v2.MsgUpdateNAV.circuit_breaker_active": + x.CircuitBreakerActive = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAV")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAV 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_MsgUpdateNAV) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAV.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateNAV.new_nav": + value := x.NewNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateNAV.previous_nav": + value := x.PreviousNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateNAV.change_bps": + value := x.ChangeBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.MsgUpdateNAV.circuit_breaker_active": + value := x.CircuitBreakerActive + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAV")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAV 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_MsgUpdateNAV) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAV.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateNAV.new_nav": + x.NewNav = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateNAV.previous_nav": + x.PreviousNav = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateNAV.change_bps": + x.ChangeBps = int32(value.Int()) + case "noble.dollar.vaults.v2.MsgUpdateNAV.circuit_breaker_active": + x.CircuitBreakerActive = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAV")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAV 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_MsgUpdateNAV) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAV.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateNAV is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateNAV.new_nav": + panic(fmt.Errorf("field new_nav of message noble.dollar.vaults.v2.MsgUpdateNAV is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateNAV.previous_nav": + panic(fmt.Errorf("field previous_nav of message noble.dollar.vaults.v2.MsgUpdateNAV is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateNAV.change_bps": + panic(fmt.Errorf("field change_bps of message noble.dollar.vaults.v2.MsgUpdateNAV is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateNAV.circuit_breaker_active": + panic(fmt.Errorf("field circuit_breaker_active of message noble.dollar.vaults.v2.MsgUpdateNAV is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAV")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAV 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_MsgUpdateNAV) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAV.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateNAV.new_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateNAV.previous_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateNAV.change_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.MsgUpdateNAV.circuit_breaker_active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAV")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAV 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_MsgUpdateNAV) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateNAV", 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_MsgUpdateNAV) 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_MsgUpdateNAV) 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_MsgUpdateNAV) 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_MsgUpdateNAV) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateNAV) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.PreviousNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChangeBps != 0 { + n += 1 + runtime.Sov(uint64(x.ChangeBps)) + } + if x.CircuitBreakerActive { + n += 2 + } + 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().(*MsgUpdateNAV) + 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.CircuitBreakerActive { + i-- + if x.CircuitBreakerActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if x.ChangeBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChangeBps)) + i-- + dAtA[i] = 0x20 + } + if len(x.PreviousNav) > 0 { + i -= len(x.PreviousNav) + copy(dAtA[i:], x.PreviousNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousNav))) + i-- + dAtA[i] = 0x1a + } + if len(x.NewNav) > 0 { + i -= len(x.NewNav) + copy(dAtA[i:], x.NewNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewNav))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateNAV) + 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: MsgUpdateNAV: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateNAV: 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 Authority", 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.Authority = 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 NewNav", 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.NewNav = 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 PreviousNav", 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.PreviousNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + x.ChangeBps = 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.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerActive", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.CircuitBreakerActive = bool(v != 0) + 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, + } +} + +var ( + md_MsgUpdateNAVResponse protoreflect.MessageDescriptor + fd_MsgUpdateNAVResponse_applied_nav protoreflect.FieldDescriptor + fd_MsgUpdateNAVResponse_change_bps protoreflect.FieldDescriptor + fd_MsgUpdateNAVResponse_timestamp protoreflect.FieldDescriptor + fd_MsgUpdateNAVResponse_circuit_breaker_active protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateNAVResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateNAVResponse") + fd_MsgUpdateNAVResponse_applied_nav = md_MsgUpdateNAVResponse.Fields().ByName("applied_nav") + fd_MsgUpdateNAVResponse_change_bps = md_MsgUpdateNAVResponse.Fields().ByName("change_bps") + fd_MsgUpdateNAVResponse_timestamp = md_MsgUpdateNAVResponse.Fields().ByName("timestamp") + fd_MsgUpdateNAVResponse_circuit_breaker_active = md_MsgUpdateNAVResponse.Fields().ByName("circuit_breaker_active") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateNAVResponse)(nil) + +type fastReflection_MsgUpdateNAVResponse MsgUpdateNAVResponse + +func (x *MsgUpdateNAVResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateNAVResponse)(x) +} + +func (x *MsgUpdateNAVResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[34] + 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_MsgUpdateNAVResponse_messageType fastReflection_MsgUpdateNAVResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateNAVResponse_messageType{} + +type fastReflection_MsgUpdateNAVResponse_messageType struct{} + +func (x fastReflection_MsgUpdateNAVResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateNAVResponse)(nil) +} +func (x fastReflection_MsgUpdateNAVResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateNAVResponse) +} +func (x fastReflection_MsgUpdateNAVResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateNAVResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateNAVResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateNAVResponse +} + +// 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_MsgUpdateNAVResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateNAVResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateNAVResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateNAVResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateNAVResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateNAVResponse)(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_MsgUpdateNAVResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.AppliedNav != "" { + value := protoreflect.ValueOfString(x.AppliedNav) + if !f(fd_MsgUpdateNAVResponse_applied_nav, value) { + return + } + } + if x.ChangeBps != int32(0) { + value := protoreflect.ValueOfInt32(x.ChangeBps) + if !f(fd_MsgUpdateNAVResponse_change_bps, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_MsgUpdateNAVResponse_timestamp, value) { + return + } + } + if x.CircuitBreakerActive != false { + value := protoreflect.ValueOfBool(x.CircuitBreakerActive) + if !f(fd_MsgUpdateNAVResponse_circuit_breaker_active, 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_MsgUpdateNAVResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.applied_nav": + return x.AppliedNav != "" + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.change_bps": + return x.ChangeBps != int32(0) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.circuit_breaker_active": + return x.CircuitBreakerActive != false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAVResponse 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_MsgUpdateNAVResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.applied_nav": + x.AppliedNav = "" + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.change_bps": + x.ChangeBps = int32(0) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.circuit_breaker_active": + x.CircuitBreakerActive = false + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAVResponse 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_MsgUpdateNAVResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.applied_nav": + value := x.AppliedNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.change_bps": + value := x.ChangeBps + return protoreflect.ValueOfInt32(value) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.circuit_breaker_active": + value := x.CircuitBreakerActive + return protoreflect.ValueOfBool(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAVResponse 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_MsgUpdateNAVResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.applied_nav": + x.AppliedNav = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.change_bps": + x.ChangeBps = int32(value.Int()) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.circuit_breaker_active": + x.CircuitBreakerActive = value.Bool() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAVResponse 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_MsgUpdateNAVResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.applied_nav": + panic(fmt.Errorf("field applied_nav of message noble.dollar.vaults.v2.MsgUpdateNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.change_bps": + panic(fmt.Errorf("field change_bps of message noble.dollar.vaults.v2.MsgUpdateNAVResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.circuit_breaker_active": + panic(fmt.Errorf("field circuit_breaker_active of message noble.dollar.vaults.v2.MsgUpdateNAVResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAVResponse 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_MsgUpdateNAVResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.applied_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.change_bps": + return protoreflect.ValueOfInt32(int32(0)) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateNAVResponse.circuit_breaker_active": + return protoreflect.ValueOfBool(false) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateNAVResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateNAVResponse 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_MsgUpdateNAVResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateNAVResponse", 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_MsgUpdateNAVResponse) 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_MsgUpdateNAVResponse) 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_MsgUpdateNAVResponse) 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_MsgUpdateNAVResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateNAVResponse) + 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.AppliedNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ChangeBps != 0 { + n += 1 + runtime.Sov(uint64(x.ChangeBps)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CircuitBreakerActive { + n += 2 + } + 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().(*MsgUpdateNAVResponse) + 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.CircuitBreakerActive { + i-- + if x.CircuitBreakerActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.ChangeBps != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ChangeBps)) + i-- + dAtA[i] = 0x10 + } + if len(x.AppliedNav) > 0 { + i -= len(x.AppliedNav) + copy(dAtA[i:], x.AppliedNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AppliedNav))) + 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().(*MsgUpdateNAVResponse) + 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: MsgUpdateNAVResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateNAVResponse: 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 AppliedNav", 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.AppliedNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + x.ChangeBps = 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.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerActive", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.CircuitBreakerActive = bool(v != 0) + 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, + } +} + +var ( + md_MsgHandleStaleInflight protoreflect.MessageDescriptor + fd_MsgHandleStaleInflight_authority protoreflect.FieldDescriptor + fd_MsgHandleStaleInflight_inflight_id protoreflect.FieldDescriptor + fd_MsgHandleStaleInflight_new_status protoreflect.FieldDescriptor + fd_MsgHandleStaleInflight_reason protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgHandleStaleInflight = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgHandleStaleInflight") + fd_MsgHandleStaleInflight_authority = md_MsgHandleStaleInflight.Fields().ByName("authority") + fd_MsgHandleStaleInflight_inflight_id = md_MsgHandleStaleInflight.Fields().ByName("inflight_id") + fd_MsgHandleStaleInflight_new_status = md_MsgHandleStaleInflight.Fields().ByName("new_status") + fd_MsgHandleStaleInflight_reason = md_MsgHandleStaleInflight.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgHandleStaleInflight)(nil) + +type fastReflection_MsgHandleStaleInflight MsgHandleStaleInflight + +func (x *MsgHandleStaleInflight) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgHandleStaleInflight)(x) +} + +func (x *MsgHandleStaleInflight) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[35] + 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_MsgHandleStaleInflight_messageType fastReflection_MsgHandleStaleInflight_messageType +var _ protoreflect.MessageType = fastReflection_MsgHandleStaleInflight_messageType{} + +type fastReflection_MsgHandleStaleInflight_messageType struct{} + +func (x fastReflection_MsgHandleStaleInflight_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgHandleStaleInflight)(nil) +} +func (x fastReflection_MsgHandleStaleInflight_messageType) New() protoreflect.Message { + return new(fastReflection_MsgHandleStaleInflight) +} +func (x fastReflection_MsgHandleStaleInflight_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgHandleStaleInflight +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgHandleStaleInflight) Descriptor() protoreflect.MessageDescriptor { + return md_MsgHandleStaleInflight +} + +// 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_MsgHandleStaleInflight) Type() protoreflect.MessageType { + return _fastReflection_MsgHandleStaleInflight_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgHandleStaleInflight) New() protoreflect.Message { + return new(fastReflection_MsgHandleStaleInflight) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgHandleStaleInflight) Interface() protoreflect.ProtoMessage { + return (*MsgHandleStaleInflight)(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_MsgHandleStaleInflight) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgHandleStaleInflight_authority, value) { + return + } + } + if x.InflightId != "" { + value := protoreflect.ValueOfString(x.InflightId) + if !f(fd_MsgHandleStaleInflight_inflight_id, value) { + return + } + } + if x.NewStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.NewStatus)) + if !f(fd_MsgHandleStaleInflight_new_status, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgHandleStaleInflight_reason, 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_MsgHandleStaleInflight) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.inflight_id": + return x.InflightId != "" + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status": + return x.NewStatus != 0 + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.reason": + return x.Reason != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflight 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_MsgHandleStaleInflight) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.inflight_id": + x.InflightId = "" + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status": + x.NewStatus = 0 + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.reason": + x.Reason = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflight 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_MsgHandleStaleInflight) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.inflight_id": + value := x.InflightId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status": + value := x.NewStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflight 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_MsgHandleStaleInflight) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.inflight_id": + x.InflightId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status": + x.NewStatus = (InflightStatus)(value.Enum()) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.reason": + x.Reason = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflight 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_MsgHandleStaleInflight) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgHandleStaleInflight is not mutable")) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.inflight_id": + panic(fmt.Errorf("field inflight_id of message noble.dollar.vaults.v2.MsgHandleStaleInflight is not mutable")) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status": + panic(fmt.Errorf("field new_status of message noble.dollar.vaults.v2.MsgHandleStaleInflight is not mutable")) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.MsgHandleStaleInflight is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflight 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_MsgHandleStaleInflight) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.inflight_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.MsgHandleStaleInflight.reason": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflight 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_MsgHandleStaleInflight) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgHandleStaleInflight", 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_MsgHandleStaleInflight) 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_MsgHandleStaleInflight) 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_MsgHandleStaleInflight) 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_MsgHandleStaleInflight) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgHandleStaleInflight) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.InflightId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NewStatus != 0 { + n += 1 + runtime.Sov(uint64(x.NewStatus)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgHandleStaleInflight) + 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 len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x22 + } + if x.NewStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NewStatus)) + i-- + dAtA[i] = 0x18 + } + if len(x.InflightId) > 0 { + i -= len(x.InflightId) + copy(dAtA[i:], x.InflightId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InflightId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgHandleStaleInflight) + 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: MsgHandleStaleInflight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgHandleStaleInflight: 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 Authority", 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.Authority = 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 InflightId", 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.InflightId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NewStatus", wireType) + } + x.NewStatus = 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.NewStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgHandleStaleInflightResponse protoreflect.MessageDescriptor + fd_MsgHandleStaleInflightResponse_inflight_id protoreflect.FieldDescriptor + fd_MsgHandleStaleInflightResponse_final_status protoreflect.FieldDescriptor + fd_MsgHandleStaleInflightResponse_handled_at protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgHandleStaleInflightResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgHandleStaleInflightResponse") + fd_MsgHandleStaleInflightResponse_inflight_id = md_MsgHandleStaleInflightResponse.Fields().ByName("inflight_id") + fd_MsgHandleStaleInflightResponse_final_status = md_MsgHandleStaleInflightResponse.Fields().ByName("final_status") + fd_MsgHandleStaleInflightResponse_handled_at = md_MsgHandleStaleInflightResponse.Fields().ByName("handled_at") +} + +var _ protoreflect.Message = (*fastReflection_MsgHandleStaleInflightResponse)(nil) + +type fastReflection_MsgHandleStaleInflightResponse MsgHandleStaleInflightResponse + +func (x *MsgHandleStaleInflightResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgHandleStaleInflightResponse)(x) +} + +func (x *MsgHandleStaleInflightResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[36] + 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_MsgHandleStaleInflightResponse_messageType fastReflection_MsgHandleStaleInflightResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgHandleStaleInflightResponse_messageType{} + +type fastReflection_MsgHandleStaleInflightResponse_messageType struct{} + +func (x fastReflection_MsgHandleStaleInflightResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgHandleStaleInflightResponse)(nil) +} +func (x fastReflection_MsgHandleStaleInflightResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgHandleStaleInflightResponse) +} +func (x fastReflection_MsgHandleStaleInflightResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgHandleStaleInflightResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgHandleStaleInflightResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgHandleStaleInflightResponse +} + +// 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_MsgHandleStaleInflightResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgHandleStaleInflightResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgHandleStaleInflightResponse) New() protoreflect.Message { + return new(fastReflection_MsgHandleStaleInflightResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgHandleStaleInflightResponse) Interface() protoreflect.ProtoMessage { + return (*MsgHandleStaleInflightResponse)(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_MsgHandleStaleInflightResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.InflightId != "" { + value := protoreflect.ValueOfString(x.InflightId) + if !f(fd_MsgHandleStaleInflightResponse_inflight_id, value) { + return + } + } + if x.FinalStatus != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.FinalStatus)) + if !f(fd_MsgHandleStaleInflightResponse_final_status, value) { + return + } + } + if x.HandledAt != nil { + value := protoreflect.ValueOfMessage(x.HandledAt.ProtoReflect()) + if !f(fd_MsgHandleStaleInflightResponse_handled_at, 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_MsgHandleStaleInflightResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.inflight_id": + return x.InflightId != "" + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status": + return x.FinalStatus != 0 + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at": + return x.HandledAt != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse 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_MsgHandleStaleInflightResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.inflight_id": + x.InflightId = "" + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status": + x.FinalStatus = 0 + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at": + x.HandledAt = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse 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_MsgHandleStaleInflightResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.inflight_id": + value := x.InflightId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status": + value := x.FinalStatus + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at": + value := x.HandledAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse 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_MsgHandleStaleInflightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.inflight_id": + x.InflightId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status": + x.FinalStatus = (InflightStatus)(value.Enum()) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at": + x.HandledAt = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse 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_MsgHandleStaleInflightResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at": + if x.HandledAt == nil { + x.HandledAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.HandledAt.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.inflight_id": + panic(fmt.Errorf("field inflight_id of message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status": + panic(fmt.Errorf("field final_status of message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse 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_MsgHandleStaleInflightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.inflight_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgHandleStaleInflightResponse 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_MsgHandleStaleInflightResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgHandleStaleInflightResponse", 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_MsgHandleStaleInflightResponse) 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_MsgHandleStaleInflightResponse) 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_MsgHandleStaleInflightResponse) 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_MsgHandleStaleInflightResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgHandleStaleInflightResponse) + 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.InflightId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FinalStatus != 0 { + n += 1 + runtime.Sov(uint64(x.FinalStatus)) + } + if x.HandledAt != nil { + l = options.Size(x.HandledAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgHandleStaleInflightResponse) + 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.HandledAt != nil { + encoded, err := options.Marshal(x.HandledAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.FinalStatus != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.FinalStatus)) + i-- + dAtA[i] = 0x10 + } + if len(x.InflightId) > 0 { + i -= len(x.InflightId) + copy(dAtA[i:], x.InflightId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InflightId))) + 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().(*MsgHandleStaleInflightResponse) + 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: MsgHandleStaleInflightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgHandleStaleInflightResponse: 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 InflightId", 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.InflightId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FinalStatus", wireType) + } + x.FinalStatus = 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.FinalStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HandledAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.HandledAt == nil { + x.HandledAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.HandledAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateDepositLimits protoreflect.MessageDescriptor + fd_MsgUpdateDepositLimits_authority protoreflect.FieldDescriptor + fd_MsgUpdateDepositLimits_limits protoreflect.FieldDescriptor + fd_MsgUpdateDepositLimits_reason protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateDepositLimits = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateDepositLimits") + fd_MsgUpdateDepositLimits_authority = md_MsgUpdateDepositLimits.Fields().ByName("authority") + fd_MsgUpdateDepositLimits_limits = md_MsgUpdateDepositLimits.Fields().ByName("limits") + fd_MsgUpdateDepositLimits_reason = md_MsgUpdateDepositLimits.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateDepositLimits)(nil) + +type fastReflection_MsgUpdateDepositLimits MsgUpdateDepositLimits + +func (x *MsgUpdateDepositLimits) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateDepositLimits)(x) +} + +func (x *MsgUpdateDepositLimits) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[37] + 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_MsgUpdateDepositLimits_messageType fastReflection_MsgUpdateDepositLimits_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateDepositLimits_messageType{} + +type fastReflection_MsgUpdateDepositLimits_messageType struct{} + +func (x fastReflection_MsgUpdateDepositLimits_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateDepositLimits)(nil) +} +func (x fastReflection_MsgUpdateDepositLimits_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDepositLimits) +} +func (x fastReflection_MsgUpdateDepositLimits_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDepositLimits +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateDepositLimits) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDepositLimits +} + +// 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_MsgUpdateDepositLimits) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateDepositLimits_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateDepositLimits) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDepositLimits) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateDepositLimits) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateDepositLimits)(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_MsgUpdateDepositLimits) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateDepositLimits_authority, value) { + return + } + } + if x.Limits != nil { + value := protoreflect.ValueOfMessage(x.Limits.ProtoReflect()) + if !f(fd_MsgUpdateDepositLimits_limits, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgUpdateDepositLimits_reason, 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_MsgUpdateDepositLimits) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits": + return x.Limits != nil + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.reason": + return x.Reason != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimits")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimits 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_MsgUpdateDepositLimits) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits": + x.Limits = nil + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.reason": + x.Reason = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimits")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimits 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_MsgUpdateDepositLimits) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits": + value := x.Limits + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimits")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimits 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_MsgUpdateDepositLimits) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits": + x.Limits = value.Message().Interface().(*DepositLimit) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.reason": + x.Reason = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimits")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimits 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_MsgUpdateDepositLimits) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits": + if x.Limits == nil { + x.Limits = new(DepositLimit) + } + return protoreflect.ValueOfMessage(x.Limits.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgUpdateDepositLimits is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.MsgUpdateDepositLimits is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimits")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimits 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_MsgUpdateDepositLimits) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits": + m := new(DepositLimit) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimits.reason": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimits")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimits 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_MsgUpdateDepositLimits) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateDepositLimits", 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_MsgUpdateDepositLimits) 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_MsgUpdateDepositLimits) 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_MsgUpdateDepositLimits) 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_MsgUpdateDepositLimits) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateDepositLimits) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Limits != nil { + l = options.Size(x.Limits) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateDepositLimits) + 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 len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x1a + } + if x.Limits != nil { + encoded, err := options.Marshal(x.Limits) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateDepositLimits) + 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: MsgUpdateDepositLimits: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateDepositLimits: 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 Authority", 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.Authority = 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 Limits", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Limits == nil { + x.Limits = &DepositLimit{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Limits); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgUpdateDepositLimitsResponse protoreflect.MessageDescriptor + fd_MsgUpdateDepositLimitsResponse_previous_limits protoreflect.FieldDescriptor + fd_MsgUpdateDepositLimitsResponse_new_limits protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgUpdateDepositLimitsResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgUpdateDepositLimitsResponse") + fd_MsgUpdateDepositLimitsResponse_previous_limits = md_MsgUpdateDepositLimitsResponse.Fields().ByName("previous_limits") + fd_MsgUpdateDepositLimitsResponse_new_limits = md_MsgUpdateDepositLimitsResponse.Fields().ByName("new_limits") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateDepositLimitsResponse)(nil) + +type fastReflection_MsgUpdateDepositLimitsResponse MsgUpdateDepositLimitsResponse + +func (x *MsgUpdateDepositLimitsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateDepositLimitsResponse)(x) +} + +func (x *MsgUpdateDepositLimitsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[38] + 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_MsgUpdateDepositLimitsResponse_messageType fastReflection_MsgUpdateDepositLimitsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateDepositLimitsResponse_messageType{} + +type fastReflection_MsgUpdateDepositLimitsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateDepositLimitsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateDepositLimitsResponse)(nil) +} +func (x fastReflection_MsgUpdateDepositLimitsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDepositLimitsResponse) +} +func (x fastReflection_MsgUpdateDepositLimitsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDepositLimitsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateDepositLimitsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateDepositLimitsResponse +} + +// 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_MsgUpdateDepositLimitsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateDepositLimitsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateDepositLimitsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateDepositLimitsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateDepositLimitsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateDepositLimitsResponse)(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_MsgUpdateDepositLimitsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PreviousLimits != "" { + value := protoreflect.ValueOfString(x.PreviousLimits) + if !f(fd_MsgUpdateDepositLimitsResponse_previous_limits, value) { + return + } + } + if x.NewLimits != "" { + value := protoreflect.ValueOfString(x.NewLimits) + if !f(fd_MsgUpdateDepositLimitsResponse_new_limits, 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_MsgUpdateDepositLimitsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.previous_limits": + return x.PreviousLimits != "" + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.new_limits": + return x.NewLimits != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse 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_MsgUpdateDepositLimitsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.previous_limits": + x.PreviousLimits = "" + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.new_limits": + x.NewLimits = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse 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_MsgUpdateDepositLimitsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.previous_limits": + value := x.PreviousLimits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.new_limits": + value := x.NewLimits + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse 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_MsgUpdateDepositLimitsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.previous_limits": + x.PreviousLimits = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.new_limits": + x.NewLimits = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse 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_MsgUpdateDepositLimitsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.previous_limits": + panic(fmt.Errorf("field previous_limits of message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.new_limits": + panic(fmt.Errorf("field new_limits of message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse 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_MsgUpdateDepositLimitsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.previous_limits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse.new_limits": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse 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_MsgUpdateDepositLimitsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse", 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_MsgUpdateDepositLimitsResponse) 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_MsgUpdateDepositLimitsResponse) 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_MsgUpdateDepositLimitsResponse) 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_MsgUpdateDepositLimitsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateDepositLimitsResponse) + 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.PreviousLimits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NewLimits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgUpdateDepositLimitsResponse) + 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 len(x.NewLimits) > 0 { + i -= len(x.NewLimits) + copy(dAtA[i:], x.NewLimits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NewLimits))) + i-- + dAtA[i] = 0x12 + } + if len(x.PreviousLimits) > 0 { + i -= len(x.PreviousLimits) + copy(dAtA[i:], x.PreviousLimits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousLimits))) + 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().(*MsgUpdateDepositLimitsResponse) + 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: MsgUpdateDepositLimitsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateDepositLimitsResponse: 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 PreviousLimits", 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.PreviousLimits = 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 NewLimits", 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.NewLimits = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgCleanupStaleInflight protoreflect.MessageDescriptor + fd_MsgCleanupStaleInflight_authority protoreflect.FieldDescriptor + fd_MsgCleanupStaleInflight_transaction_id protoreflect.FieldDescriptor + fd_MsgCleanupStaleInflight_reason protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCleanupStaleInflight = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCleanupStaleInflight") + fd_MsgCleanupStaleInflight_authority = md_MsgCleanupStaleInflight.Fields().ByName("authority") + fd_MsgCleanupStaleInflight_transaction_id = md_MsgCleanupStaleInflight.Fields().ByName("transaction_id") + fd_MsgCleanupStaleInflight_reason = md_MsgCleanupStaleInflight.Fields().ByName("reason") +} + +var _ protoreflect.Message = (*fastReflection_MsgCleanupStaleInflight)(nil) + +type fastReflection_MsgCleanupStaleInflight MsgCleanupStaleInflight + +func (x *MsgCleanupStaleInflight) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCleanupStaleInflight)(x) +} + +func (x *MsgCleanupStaleInflight) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[39] + 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_MsgCleanupStaleInflight_messageType fastReflection_MsgCleanupStaleInflight_messageType +var _ protoreflect.MessageType = fastReflection_MsgCleanupStaleInflight_messageType{} + +type fastReflection_MsgCleanupStaleInflight_messageType struct{} + +func (x fastReflection_MsgCleanupStaleInflight_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCleanupStaleInflight)(nil) +} +func (x fastReflection_MsgCleanupStaleInflight_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCleanupStaleInflight) +} +func (x fastReflection_MsgCleanupStaleInflight_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCleanupStaleInflight +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCleanupStaleInflight) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCleanupStaleInflight +} + +// 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_MsgCleanupStaleInflight) Type() protoreflect.MessageType { + return _fastReflection_MsgCleanupStaleInflight_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCleanupStaleInflight) New() protoreflect.Message { + return new(fastReflection_MsgCleanupStaleInflight) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCleanupStaleInflight) Interface() protoreflect.ProtoMessage { + return (*MsgCleanupStaleInflight)(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_MsgCleanupStaleInflight) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgCleanupStaleInflight_authority, value) { + return + } + } + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_MsgCleanupStaleInflight_transaction_id, value) { + return + } + } + if x.Reason != "" { + value := protoreflect.ValueOfString(x.Reason) + if !f(fd_MsgCleanupStaleInflight_reason, 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_MsgCleanupStaleInflight) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.authority": + return x.Authority != "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.reason": + return x.Reason != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflight 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_MsgCleanupStaleInflight) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.authority": + x.Authority = "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.reason": + x.Reason = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflight 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_MsgCleanupStaleInflight) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.reason": + value := x.Reason + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflight 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_MsgCleanupStaleInflight) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.authority": + x.Authority = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.reason": + x.Reason = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflight 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_MsgCleanupStaleInflight) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.authority": + panic(fmt.Errorf("field authority of message noble.dollar.vaults.v2.MsgCleanupStaleInflight is not mutable")) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.MsgCleanupStaleInflight is not mutable")) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.reason": + panic(fmt.Errorf("field reason of message noble.dollar.vaults.v2.MsgCleanupStaleInflight is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflight 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_MsgCleanupStaleInflight) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.authority": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCleanupStaleInflight.reason": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflight")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflight 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_MsgCleanupStaleInflight) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCleanupStaleInflight", 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_MsgCleanupStaleInflight) 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_MsgCleanupStaleInflight) 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_MsgCleanupStaleInflight) 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_MsgCleanupStaleInflight) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCleanupStaleInflight) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reason) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCleanupStaleInflight) + 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 len(x.Reason) > 0 { + i -= len(x.Reason) + copy(dAtA[i:], x.Reason) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgCleanupStaleInflight) + 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: MsgCleanupStaleInflight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCleanupStaleInflight: 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 Authority", 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.Authority = 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 TransactionId", 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.TransactionId = 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 Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_MsgCleanupStaleInflightResponse protoreflect.MessageDescriptor + fd_MsgCleanupStaleInflightResponse_transaction_id protoreflect.FieldDescriptor + fd_MsgCleanupStaleInflightResponse_amount_returned protoreflect.FieldDescriptor + fd_MsgCleanupStaleInflightResponse_route_id protoreflect.FieldDescriptor + fd_MsgCleanupStaleInflightResponse_cleaned_at protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_tx_proto_init() + md_MsgCleanupStaleInflightResponse = File_noble_dollar_vaults_v2_tx_proto.Messages().ByName("MsgCleanupStaleInflightResponse") + fd_MsgCleanupStaleInflightResponse_transaction_id = md_MsgCleanupStaleInflightResponse.Fields().ByName("transaction_id") + fd_MsgCleanupStaleInflightResponse_amount_returned = md_MsgCleanupStaleInflightResponse.Fields().ByName("amount_returned") + fd_MsgCleanupStaleInflightResponse_route_id = md_MsgCleanupStaleInflightResponse.Fields().ByName("route_id") + fd_MsgCleanupStaleInflightResponse_cleaned_at = md_MsgCleanupStaleInflightResponse.Fields().ByName("cleaned_at") +} + +var _ protoreflect.Message = (*fastReflection_MsgCleanupStaleInflightResponse)(nil) + +type fastReflection_MsgCleanupStaleInflightResponse MsgCleanupStaleInflightResponse + +func (x *MsgCleanupStaleInflightResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCleanupStaleInflightResponse)(x) +} + +func (x *MsgCleanupStaleInflightResponse) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[40] + 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_MsgCleanupStaleInflightResponse_messageType fastReflection_MsgCleanupStaleInflightResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCleanupStaleInflightResponse_messageType{} + +type fastReflection_MsgCleanupStaleInflightResponse_messageType struct{} + +func (x fastReflection_MsgCleanupStaleInflightResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCleanupStaleInflightResponse)(nil) +} +func (x fastReflection_MsgCleanupStaleInflightResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCleanupStaleInflightResponse) +} +func (x fastReflection_MsgCleanupStaleInflightResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCleanupStaleInflightResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCleanupStaleInflightResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCleanupStaleInflightResponse +} + +// 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_MsgCleanupStaleInflightResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCleanupStaleInflightResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCleanupStaleInflightResponse) New() protoreflect.Message { + return new(fastReflection_MsgCleanupStaleInflightResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCleanupStaleInflightResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCleanupStaleInflightResponse)(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_MsgCleanupStaleInflightResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TransactionId != "" { + value := protoreflect.ValueOfString(x.TransactionId) + if !f(fd_MsgCleanupStaleInflightResponse_transaction_id, value) { + return + } + } + if x.AmountReturned != "" { + value := protoreflect.ValueOfString(x.AmountReturned) + if !f(fd_MsgCleanupStaleInflightResponse_amount_returned, value) { + return + } + } + if x.RouteId != uint32(0) { + value := protoreflect.ValueOfUint32(x.RouteId) + if !f(fd_MsgCleanupStaleInflightResponse_route_id, value) { + return + } + } + if x.CleanedAt != nil { + value := protoreflect.ValueOfMessage(x.CleanedAt.ProtoReflect()) + if !f(fd_MsgCleanupStaleInflightResponse_cleaned_at, 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_MsgCleanupStaleInflightResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.transaction_id": + return x.TransactionId != "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.amount_returned": + return x.AmountReturned != "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.route_id": + return x.RouteId != uint32(0) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at": + return x.CleanedAt != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse 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_MsgCleanupStaleInflightResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.transaction_id": + x.TransactionId = "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.amount_returned": + x.AmountReturned = "" + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.route_id": + x.RouteId = uint32(0) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at": + x.CleanedAt = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse 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_MsgCleanupStaleInflightResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.transaction_id": + value := x.TransactionId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.amount_returned": + value := x.AmountReturned + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.route_id": + value := x.RouteId + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at": + value := x.CleanedAt + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse 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_MsgCleanupStaleInflightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.transaction_id": + x.TransactionId = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.amount_returned": + x.AmountReturned = value.Interface().(string) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.route_id": + x.RouteId = uint32(value.Uint()) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at": + x.CleanedAt = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse 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_MsgCleanupStaleInflightResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at": + if x.CleanedAt == nil { + x.CleanedAt = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.CleanedAt.ProtoReflect()) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.transaction_id": + panic(fmt.Errorf("field transaction_id of message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.amount_returned": + panic(fmt.Errorf("field amount_returned of message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse is not mutable")) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.route_id": + panic(fmt.Errorf("field route_id of message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse 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_MsgCleanupStaleInflightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.transaction_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.amount_returned": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.route_id": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse 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_MsgCleanupStaleInflightResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse", 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_MsgCleanupStaleInflightResponse) 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_MsgCleanupStaleInflightResponse) 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_MsgCleanupStaleInflightResponse) 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_MsgCleanupStaleInflightResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCleanupStaleInflightResponse) + 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.TransactionId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AmountReturned) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RouteId != 0 { + n += 1 + runtime.Sov(uint64(x.RouteId)) + } + if x.CleanedAt != nil { + l = options.Size(x.CleanedAt) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*MsgCleanupStaleInflightResponse) + 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.CleanedAt != nil { + encoded, err := options.Marshal(x.CleanedAt) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.RouteId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RouteId)) + i-- + dAtA[i] = 0x18 + } + if len(x.AmountReturned) > 0 { + i -= len(x.AmountReturned) + copy(dAtA[i:], x.AmountReturned) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountReturned))) + i-- + dAtA[i] = 0x12 + } + if len(x.TransactionId) > 0 { + i -= len(x.TransactionId) + copy(dAtA[i:], x.TransactionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TransactionId))) + 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().(*MsgCleanupStaleInflightResponse) + 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: MsgCleanupStaleInflightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCleanupStaleInflightResponse: 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 TransactionId", 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.TransactionId = 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 AmountReturned", 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.AmountReturned = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + x.RouteId = 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.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CleanedAt", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.CleanedAt == nil { + x.CleanedAt = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CleanedAt); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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: noble/dollar/vaults/v2/tx.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) +) + +// MsgDeposit allows users to deposit into a V2 vault +type MsgDeposit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User making the deposit + Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` + // Amount to deposit + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // Whether user wants to receive yield for this deposit. + ReceiveYield bool `protobuf:"varint,3,opt,name=receive_yield,json=receiveYield,proto3" json:"receive_yield,omitempty"` + // Set to true when the deposit should override the current preference. + ReceiveYieldOverride bool `protobuf:"varint,4,opt,name=receive_yield_override,json=receiveYieldOverride,proto3" json:"receive_yield_override,omitempty"` +} + +func (x *MsgDeposit) Reset() { + *x = MsgDeposit{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDeposit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDeposit) ProtoMessage() {} + +// Deprecated: Use MsgDeposit.ProtoReflect.Descriptor instead. +func (*MsgDeposit) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgDeposit) GetDepositor() string { + if x != nil { + return x.Depositor + } + return "" +} + +func (x *MsgDeposit) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *MsgDeposit) GetReceiveYield() bool { + if x != nil { + return x.ReceiveYield + } + return false +} + +func (x *MsgDeposit) GetReceiveYieldOverride() bool { + if x != nil { + return x.ReceiveYieldOverride + } + return false +} + +// MsgDepositResponse returns the results of a deposit +type MsgDepositResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Amount deposited + AmountDeposited string `protobuf:"bytes,1,opt,name=amount_deposited,json=amountDeposited,proto3" json:"amount_deposited,omitempty"` +} + +func (x *MsgDepositResponse) Reset() { + *x = MsgDepositResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDepositResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDepositResponse) ProtoMessage() {} + +// Deprecated: Use MsgDepositResponse.ProtoReflect.Descriptor instead. +func (*MsgDepositResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{1} +} + +func (x *MsgDepositResponse) GetAmountDeposited() string { + if x != nil { + return x.AmountDeposited + } + return "" +} + +// MsgSetYieldPreference allows users to set their yield preference +type MsgSetYieldPreference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User setting the preference + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // Whether to receive yield + ReceiveYield bool `protobuf:"varint,2,opt,name=receive_yield,json=receiveYield,proto3" json:"receive_yield,omitempty"` +} + +func (x *MsgSetYieldPreference) Reset() { + *x = MsgSetYieldPreference{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetYieldPreference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetYieldPreference) ProtoMessage() {} + +// Deprecated: Use MsgSetYieldPreference.ProtoReflect.Descriptor instead. +func (*MsgSetYieldPreference) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgSetYieldPreference) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *MsgSetYieldPreference) GetReceiveYield() bool { + if x != nil { + return x.ReceiveYield + } + return false +} + +// MsgSetYieldPreferenceResponse confirms yield preference update +type MsgSetYieldPreferenceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Previous yield preference + PreviousPreference bool `protobuf:"varint,1,opt,name=previous_preference,json=previousPreference,proto3" json:"previous_preference,omitempty"` + // New yield preference + NewPreference bool `protobuf:"varint,2,opt,name=new_preference,json=newPreference,proto3" json:"new_preference,omitempty"` +} + +func (x *MsgSetYieldPreferenceResponse) Reset() { + *x = MsgSetYieldPreferenceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSetYieldPreferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSetYieldPreferenceResponse) ProtoMessage() {} + +// Deprecated: Use MsgSetYieldPreferenceResponse.ProtoReflect.Descriptor instead. +func (*MsgSetYieldPreferenceResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{3} +} + +func (x *MsgSetYieldPreferenceResponse) GetPreviousPreference() bool { + if x != nil { + return x.PreviousPreference + } + return false +} + +func (x *MsgSetYieldPreferenceResponse) GetNewPreference() bool { + if x != nil { + return x.NewPreference + } + return false +} + +// MsgUpdateVaultConfig allows authority to update vault configuration +type MsgUpdateVaultConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority updating the config + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New vault configuration + Config *VaultConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + // Reason for config update + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *MsgUpdateVaultConfig) Reset() { + *x = MsgUpdateVaultConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateVaultConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateVaultConfig) ProtoMessage() {} + +// Deprecated: Use MsgUpdateVaultConfig.ProtoReflect.Descriptor instead. +func (*MsgUpdateVaultConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgUpdateVaultConfig) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateVaultConfig) GetConfig() *VaultConfig { + if x != nil { + return x.Config + } + return nil +} + +func (x *MsgUpdateVaultConfig) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +// MsgUpdateVaultConfigResponse confirms config update +type MsgUpdateVaultConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Previous configuration (JSON) + PreviousConfig string `protobuf:"bytes,1,opt,name=previous_config,json=previousConfig,proto3" json:"previous_config,omitempty"` + // New configuration (JSON) + NewConfig string `protobuf:"bytes,2,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` +} + +func (x *MsgUpdateVaultConfigResponse) Reset() { + *x = MsgUpdateVaultConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateVaultConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateVaultConfigResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateVaultConfigResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateVaultConfigResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{5} +} + +func (x *MsgUpdateVaultConfigResponse) GetPreviousConfig() string { + if x != nil { + return x.PreviousConfig + } + return "" +} + +func (x *MsgUpdateVaultConfigResponse) GetNewConfig() string { + if x != nil { + return x.NewConfig + } + return "" +} + +// MsgUpdateParams allows authority to update module parameters +type MsgUpdateParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority updating the parameters + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New parameters + Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *MsgUpdateParams) Reset() { + *x = MsgUpdateParams{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgUpdateParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateParams) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// MsgUpdateParamsResponse confirms parameter update +type MsgUpdateParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParamsResponse) Reset() { + *x = MsgUpdateParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{7} +} + +// MsgCreateCrossChainRoute creates a new cross-chain route +type MsgCreateCrossChainRoute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority creating the route + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Route configuration + Route *CrossChainRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` +} + +func (x *MsgCreateCrossChainRoute) Reset() { + *x = MsgCreateCrossChainRoute{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateCrossChainRoute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateCrossChainRoute) ProtoMessage() {} + +// Deprecated: Use MsgCreateCrossChainRoute.ProtoReflect.Descriptor instead. +func (*MsgCreateCrossChainRoute) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{8} +} + +func (x *MsgCreateCrossChainRoute) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgCreateCrossChainRoute) GetRoute() *CrossChainRoute { + if x != nil { + return x.Route + } + return nil +} + +// MsgCreateCrossChainRouteResponse confirms route creation +type MsgCreateCrossChainRouteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Created route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` +} + +func (x *MsgCreateCrossChainRouteResponse) Reset() { + *x = MsgCreateCrossChainRouteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateCrossChainRouteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateCrossChainRouteResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateCrossChainRouteResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{9} +} + +func (x *MsgCreateCrossChainRouteResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +// MsgUpdateCrossChainRoute updates an existing cross-chain route +type MsgUpdateCrossChainRoute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority updating the route + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Route ID to update + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Updated route configuration + Route *CrossChainRoute `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"` +} + +func (x *MsgUpdateCrossChainRoute) Reset() { + *x = MsgUpdateCrossChainRoute{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateCrossChainRoute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateCrossChainRoute) ProtoMessage() {} + +// Deprecated: Use MsgUpdateCrossChainRoute.ProtoReflect.Descriptor instead. +func (*MsgUpdateCrossChainRoute) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{10} +} + +func (x *MsgUpdateCrossChainRoute) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateCrossChainRoute) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgUpdateCrossChainRoute) GetRoute() *CrossChainRoute { + if x != nil { + return x.Route + } + return nil +} + +// MsgUpdateCrossChainRouteResponse confirms route update +type MsgUpdateCrossChainRouteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Updated route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Previous configuration + PreviousConfig string `protobuf:"bytes,2,opt,name=previous_config,json=previousConfig,proto3" json:"previous_config,omitempty"` + // New configuration + NewConfig string `protobuf:"bytes,3,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` +} + +func (x *MsgUpdateCrossChainRouteResponse) Reset() { + *x = MsgUpdateCrossChainRouteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateCrossChainRouteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateCrossChainRouteResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateCrossChainRouteResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{11} +} + +func (x *MsgUpdateCrossChainRouteResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgUpdateCrossChainRouteResponse) GetPreviousConfig() string { + if x != nil { + return x.PreviousConfig + } + return "" +} + +func (x *MsgUpdateCrossChainRouteResponse) GetNewConfig() string { + if x != nil { + return x.NewConfig + } + return "" +} + +// MsgDisableCrossChainRoute disables a cross-chain route +type MsgDisableCrossChainRoute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority disabling the route + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Route ID to disable + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Reason for disabling + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *MsgDisableCrossChainRoute) Reset() { + *x = MsgDisableCrossChainRoute{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDisableCrossChainRoute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDisableCrossChainRoute) ProtoMessage() {} + +// Deprecated: Use MsgDisableCrossChainRoute.ProtoReflect.Descriptor instead. +func (*MsgDisableCrossChainRoute) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{12} +} + +func (x *MsgDisableCrossChainRoute) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgDisableCrossChainRoute) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgDisableCrossChainRoute) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +// MsgDisableCrossChainRouteResponse confirms route disabling +type MsgDisableCrossChainRouteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Disabled route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Number of affected positions + AffectedPositions int64 `protobuf:"varint,2,opt,name=affected_positions,json=affectedPositions,proto3" json:"affected_positions,omitempty"` +} + +func (x *MsgDisableCrossChainRouteResponse) Reset() { + *x = MsgDisableCrossChainRouteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDisableCrossChainRouteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDisableCrossChainRouteResponse) ProtoMessage() {} + +// Deprecated: Use MsgDisableCrossChainRouteResponse.ProtoReflect.Descriptor instead. +func (*MsgDisableCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{13} +} + +func (x *MsgDisableCrossChainRouteResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgDisableCrossChainRouteResponse) GetAffectedPositions() int64 { + if x != nil { + return x.AffectedPositions + } + return 0 +} + +// MsgRemoteDeposit initiates a deposit to a remote chain +type MsgRemoteDeposit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User making the remote deposit + Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` + // Route ID for the deposit + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Amount to deposit + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + // Remote address to receive the position + RemoteAddress string `protobuf:"bytes,4,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` + // Minimum shares to receive (slippage protection) + MinShares string `protobuf:"bytes,5,opt,name=min_shares,json=minShares,proto3" json:"min_shares,omitempty"` + // Gas limit for remote execution (Hyperlane only) + GasLimit uint64 `protobuf:"varint,6,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + // Gas price for remote execution (Hyperlane only) + GasPrice string `protobuf:"bytes,7,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` +} + +func (x *MsgRemoteDeposit) Reset() { + *x = MsgRemoteDeposit{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoteDeposit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoteDeposit) ProtoMessage() {} + +// Deprecated: Use MsgRemoteDeposit.ProtoReflect.Descriptor instead. +func (*MsgRemoteDeposit) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{14} +} + +func (x *MsgRemoteDeposit) GetDepositor() string { + if x != nil { + return x.Depositor + } + return "" +} + +func (x *MsgRemoteDeposit) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgRemoteDeposit) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *MsgRemoteDeposit) GetRemoteAddress() string { + if x != nil { + return x.RemoteAddress + } + return "" +} + +func (x *MsgRemoteDeposit) GetMinShares() string { + if x != nil { + return x.MinShares + } + return "" +} + +func (x *MsgRemoteDeposit) GetGasLimit() uint64 { + if x != nil { + return x.GasLimit + } + return 0 +} + +func (x *MsgRemoteDeposit) GetGasPrice() string { + if x != nil { + return x.GasPrice + } + return "" +} + +// MsgRemoteDepositResponse returns the results of a remote deposit +type MsgRemoteDepositResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Operation nonce for tracking + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Route ID used + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Local shares allocated + SharesAllocated string `protobuf:"bytes,3,opt,name=shares_allocated,json=sharesAllocated,proto3" json:"shares_allocated,omitempty"` + // Amount sent to remote chain + AmountSent string `protobuf:"bytes,4,opt,name=amount_sent,json=amountSent,proto3" json:"amount_sent,omitempty"` + // Expected completion time + ExpectedCompletion *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expected_completion,json=expectedCompletion,proto3" json:"expected_completion,omitempty"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,6,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (x *MsgRemoteDepositResponse) Reset() { + *x = MsgRemoteDepositResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoteDepositResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoteDepositResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoteDepositResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoteDepositResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{15} +} + +func (x *MsgRemoteDepositResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *MsgRemoteDepositResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgRemoteDepositResponse) GetSharesAllocated() string { + if x != nil { + return x.SharesAllocated + } + return "" +} + +func (x *MsgRemoteDepositResponse) GetAmountSent() string { + if x != nil { + return x.AmountSent + } + return "" +} + +func (x *MsgRemoteDepositResponse) GetExpectedCompletion() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedCompletion + } + return nil +} + +func (x *MsgRemoteDepositResponse) GetProviderTracking() *ProviderTrackingInfo { + if x != nil { + return x.ProviderTracking + } + return nil +} + +// MsgRemoteWithdraw initiates a withdrawal from a remote chain +type MsgRemoteWithdraw struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User making the remote withdrawal + Withdrawer string `protobuf:"bytes,1,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"` + // Route ID for the withdrawal + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Shares to withdraw from remote position + Shares string `protobuf:"bytes,3,opt,name=shares,proto3" json:"shares,omitempty"` + // Minimum amount to receive (slippage protection) + MinAmount string `protobuf:"bytes,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"` + // Gas limit for remote execution (Hyperlane only) + GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + // Gas price for remote execution (Hyperlane only) + GasPrice string `protobuf:"bytes,6,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` +} + +func (x *MsgRemoteWithdraw) Reset() { + *x = MsgRemoteWithdraw{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoteWithdraw) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoteWithdraw) ProtoMessage() {} + +// Deprecated: Use MsgRemoteWithdraw.ProtoReflect.Descriptor instead. +func (*MsgRemoteWithdraw) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{16} +} + +func (x *MsgRemoteWithdraw) GetWithdrawer() string { + if x != nil { + return x.Withdrawer + } + return "" +} + +func (x *MsgRemoteWithdraw) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgRemoteWithdraw) GetShares() string { + if x != nil { + return x.Shares + } + return "" +} + +func (x *MsgRemoteWithdraw) GetMinAmount() string { + if x != nil { + return x.MinAmount + } + return "" +} + +func (x *MsgRemoteWithdraw) GetGasLimit() uint64 { + if x != nil { + return x.GasLimit + } + return 0 +} + +func (x *MsgRemoteWithdraw) GetGasPrice() string { + if x != nil { + return x.GasPrice + } + return "" +} + +// MsgRemoteWithdrawResponse returns the results of a remote withdrawal +type MsgRemoteWithdrawResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Operation nonce for tracking + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Route ID used + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Shares being withdrawn + SharesWithdrawn string `protobuf:"bytes,3,opt,name=shares_withdrawn,json=sharesWithdrawn,proto3" json:"shares_withdrawn,omitempty"` + // Expected amount to receive + ExpectedAmount string `protobuf:"bytes,4,opt,name=expected_amount,json=expectedAmount,proto3" json:"expected_amount,omitempty"` + // Expected completion time + ExpectedCompletion *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expected_completion,json=expectedCompletion,proto3" json:"expected_completion,omitempty"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,6,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (x *MsgRemoteWithdrawResponse) Reset() { + *x = MsgRemoteWithdrawResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRemoteWithdrawResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRemoteWithdrawResponse) ProtoMessage() {} + +// Deprecated: Use MsgRemoteWithdrawResponse.ProtoReflect.Descriptor instead. +func (*MsgRemoteWithdrawResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{17} +} + +func (x *MsgRemoteWithdrawResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *MsgRemoteWithdrawResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgRemoteWithdrawResponse) GetSharesWithdrawn() string { + if x != nil { + return x.SharesWithdrawn + } + return "" +} + +func (x *MsgRemoteWithdrawResponse) GetExpectedAmount() string { + if x != nil { + return x.ExpectedAmount + } + return "" +} + +func (x *MsgRemoteWithdrawResponse) GetExpectedCompletion() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedCompletion + } + return nil +} + +func (x *MsgRemoteWithdrawResponse) GetProviderTracking() *ProviderTrackingInfo { + if x != nil { + return x.ProviderTracking + } + return nil +} + +// MsgProcessInFlightPosition processes an in-flight position +type MsgProcessInFlightPosition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority processing the position + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Operation nonce + Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Operation result + ResultStatus InflightStatus `protobuf:"varint,3,opt,name=result_status,json=resultStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"result_status,omitempty"` + // Result amount (for successful operations) + ResultAmount string `protobuf:"bytes,4,opt,name=result_amount,json=resultAmount,proto3" json:"result_amount,omitempty"` + // Error message (for failed operations) + ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,6,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (x *MsgProcessInFlightPosition) Reset() { + *x = MsgProcessInFlightPosition{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgProcessInFlightPosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgProcessInFlightPosition) ProtoMessage() {} + +// Deprecated: Use MsgProcessInFlightPosition.ProtoReflect.Descriptor instead. +func (*MsgProcessInFlightPosition) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{18} +} + +func (x *MsgProcessInFlightPosition) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgProcessInFlightPosition) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *MsgProcessInFlightPosition) GetResultStatus() InflightStatus { + if x != nil { + return x.ResultStatus + } + return InflightStatus_INFLIGHT_PENDING +} + +func (x *MsgProcessInFlightPosition) GetResultAmount() string { + if x != nil { + return x.ResultAmount + } + return "" +} + +func (x *MsgProcessInFlightPosition) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage + } + return "" +} + +func (x *MsgProcessInFlightPosition) GetProviderTracking() *ProviderTrackingInfo { + if x != nil { + return x.ProviderTracking + } + return nil +} + +// MsgProcessInFlightPositionResponse confirms processing +type MsgProcessInFlightPositionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Operation nonce + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Final status + FinalStatus InflightStatus `protobuf:"varint,2,opt,name=final_status,json=finalStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"final_status,omitempty"` + // Amount processed + AmountProcessed string `protobuf:"bytes,3,opt,name=amount_processed,json=amountProcessed,proto3" json:"amount_processed,omitempty"` + // Shares affected + SharesAffected string `protobuf:"bytes,4,opt,name=shares_affected,json=sharesAffected,proto3" json:"shares_affected,omitempty"` +} + +func (x *MsgProcessInFlightPositionResponse) Reset() { + *x = MsgProcessInFlightPositionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgProcessInFlightPositionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgProcessInFlightPositionResponse) ProtoMessage() {} + +// Deprecated: Use MsgProcessInFlightPositionResponse.ProtoReflect.Descriptor instead. +func (*MsgProcessInFlightPositionResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{19} +} + +func (x *MsgProcessInFlightPositionResponse) GetNonce() uint64 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *MsgProcessInFlightPositionResponse) GetFinalStatus() InflightStatus { + if x != nil { + return x.FinalStatus + } + return InflightStatus_INFLIGHT_PENDING +} + +func (x *MsgProcessInFlightPositionResponse) GetAmountProcessed() string { + if x != nil { + return x.AmountProcessed + } + return "" +} + +func (x *MsgProcessInFlightPositionResponse) GetSharesAffected() string { + if x != nil { + return x.SharesAffected + } + return "" +} + +// MsgRequestWithdrawal allows users to enter the withdrawal queue +type MsgRequestWithdrawal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User requesting withdrawal + Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // Amount to withdraw (locked immediately) + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *MsgRequestWithdrawal) Reset() { + *x = MsgRequestWithdrawal{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRequestWithdrawal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRequestWithdrawal) ProtoMessage() {} + +// Deprecated: Use MsgRequestWithdrawal.ProtoReflect.Descriptor instead. +func (*MsgRequestWithdrawal) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{20} +} + +func (x *MsgRequestWithdrawal) GetRequester() string { + if x != nil { + return x.Requester + } + return "" +} + +func (x *MsgRequestWithdrawal) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +// MsgRequestWithdrawalResponse returns the created request details +type MsgRequestWithdrawalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Withdrawal request ID + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Amount locked for withdrawal + AmountLocked string `protobuf:"bytes,2,opt,name=amount_locked,json=amountLocked,proto3" json:"amount_locked,omitempty"` + // Yield portion of withdrawal + YieldPortion string `protobuf:"bytes,3,opt,name=yield_portion,json=yieldPortion,proto3" json:"yield_portion,omitempty"` + // Estimated time the request becomes claimable + ExpectedClaimableAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expected_claimable_at,json=expectedClaimableAt,proto3" json:"expected_claimable_at,omitempty"` +} + +func (x *MsgRequestWithdrawalResponse) Reset() { + *x = MsgRequestWithdrawalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRequestWithdrawalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRequestWithdrawalResponse) ProtoMessage() {} + +// Deprecated: Use MsgRequestWithdrawalResponse.ProtoReflect.Descriptor instead. +func (*MsgRequestWithdrawalResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{21} +} + +func (x *MsgRequestWithdrawalResponse) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *MsgRequestWithdrawalResponse) GetAmountLocked() string { + if x != nil { + return x.AmountLocked + } + return "" +} + +func (x *MsgRequestWithdrawalResponse) GetYieldPortion() string { + if x != nil { + return x.YieldPortion + } + return "" +} + +func (x *MsgRequestWithdrawalResponse) GetExpectedClaimableAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedClaimableAt + } + return nil +} + +// MsgProcessWithdrawalQueue allows authority to process withdrawal queue +type MsgProcessWithdrawalQueue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority processing the queue + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Maximum number of requests to process + MaxRequests int32 `protobuf:"varint,2,opt,name=max_requests,json=maxRequests,proto3" json:"max_requests,omitempty"` +} + +func (x *MsgProcessWithdrawalQueue) Reset() { + *x = MsgProcessWithdrawalQueue{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgProcessWithdrawalQueue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgProcessWithdrawalQueue) ProtoMessage() {} + +// Deprecated: Use MsgProcessWithdrawalQueue.ProtoReflect.Descriptor instead. +func (*MsgProcessWithdrawalQueue) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{22} +} + +func (x *MsgProcessWithdrawalQueue) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgProcessWithdrawalQueue) GetMaxRequests() int32 { + if x != nil { + return x.MaxRequests + } + return 0 +} + +// MsgProcessWithdrawalQueueResponse returns processing results +type MsgProcessWithdrawalQueueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of requests processed + RequestsProcessed int32 `protobuf:"varint,1,opt,name=requests_processed,json=requestsProcessed,proto3" json:"requests_processed,omitempty"` + // Total amount processed + TotalAmountProcessed string `protobuf:"bytes,2,opt,name=total_amount_processed,json=totalAmountProcessed,proto3" json:"total_amount_processed,omitempty"` + // Total amount distributed + TotalAmountDistributed string `protobuf:"bytes,3,opt,name=total_amount_distributed,json=totalAmountDistributed,proto3" json:"total_amount_distributed,omitempty"` + // Remaining requests in queue + RemainingRequests int32 `protobuf:"varint,4,opt,name=remaining_requests,json=remainingRequests,proto3" json:"remaining_requests,omitempty"` +} + +func (x *MsgProcessWithdrawalQueueResponse) Reset() { + *x = MsgProcessWithdrawalQueueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgProcessWithdrawalQueueResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgProcessWithdrawalQueueResponse) ProtoMessage() {} + +// Deprecated: Use MsgProcessWithdrawalQueueResponse.ProtoReflect.Descriptor instead. +func (*MsgProcessWithdrawalQueueResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{23} +} + +func (x *MsgProcessWithdrawalQueueResponse) GetRequestsProcessed() int32 { + if x != nil { + return x.RequestsProcessed + } + return 0 +} + +func (x *MsgProcessWithdrawalQueueResponse) GetTotalAmountProcessed() string { + if x != nil { + return x.TotalAmountProcessed + } + return "" +} + +func (x *MsgProcessWithdrawalQueueResponse) GetTotalAmountDistributed() string { + if x != nil { + return x.TotalAmountDistributed + } + return "" +} + +func (x *MsgProcessWithdrawalQueueResponse) GetRemainingRequests() int32 { + if x != nil { + return x.RemainingRequests + } + return 0 +} + +// MsgCreateRemotePosition deploys capital to a remote ERC-4626 position +type MsgCreateRemotePosition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authorized manager address + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // Target ERC-4626 vault address + VaultAddress string `protobuf:"bytes,2,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + // Hyperlane domain ID for destination chain + ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Amount of $USDN to deploy + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + // Minimum acceptable Noble vault shares to receive (slippage protection) + MinSharesOut string `protobuf:"bytes,5,opt,name=min_shares_out,json=minSharesOut,proto3" json:"min_shares_out,omitempty"` +} + +func (x *MsgCreateRemotePosition) Reset() { + *x = MsgCreateRemotePosition{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateRemotePosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateRemotePosition) ProtoMessage() {} + +// Deprecated: Use MsgCreateRemotePosition.ProtoReflect.Descriptor instead. +func (*MsgCreateRemotePosition) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{24} +} + +func (x *MsgCreateRemotePosition) GetManager() string { + if x != nil { + return x.Manager + } + return "" +} + +func (x *MsgCreateRemotePosition) GetVaultAddress() string { + if x != nil { + return x.VaultAddress + } + return "" +} + +func (x *MsgCreateRemotePosition) GetChainId() uint32 { + if x != nil { + return x.ChainId + } + return 0 +} + +func (x *MsgCreateRemotePosition) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *MsgCreateRemotePosition) GetMinSharesOut() string { + if x != nil { + return x.MinSharesOut + } + return "" +} + +type MsgCreateRemotePositionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Assigned position ID + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Route ID used for cross-chain transfer + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Expected completion time on remote chain + ExpectedCompletion *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expected_completion,json=expectedCompletion,proto3" json:"expected_completion,omitempty"` +} + +func (x *MsgCreateRemotePositionResponse) Reset() { + *x = MsgCreateRemotePositionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateRemotePositionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateRemotePositionResponse) ProtoMessage() {} + +// Deprecated: Use MsgCreateRemotePositionResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateRemotePositionResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{25} +} + +func (x *MsgCreateRemotePositionResponse) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *MsgCreateRemotePositionResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgCreateRemotePositionResponse) GetExpectedCompletion() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedCompletion + } + return nil +} + +// MsgCloseRemotePosition withdraws capital from a remote position +type MsgCloseRemotePosition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authorized manager address + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // Remote position ID to close + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Optional partial withdrawal amount ($USDN). If omitted or zero, close fully + PartialAmount string `protobuf:"bytes,3,opt,name=partial_amount,json=partialAmount,proto3" json:"partial_amount,omitempty"` +} + +func (x *MsgCloseRemotePosition) Reset() { + *x = MsgCloseRemotePosition{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCloseRemotePosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCloseRemotePosition) ProtoMessage() {} + +// Deprecated: Use MsgCloseRemotePosition.ProtoReflect.Descriptor instead. +func (*MsgCloseRemotePosition) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{26} +} + +func (x *MsgCloseRemotePosition) GetManager() string { + if x != nil { + return x.Manager + } + return "" +} + +func (x *MsgCloseRemotePosition) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *MsgCloseRemotePosition) GetPartialAmount() string { + if x != nil { + return x.PartialAmount + } + return "" +} + +type MsgCloseRemotePositionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Remote position ID + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Whether a withdrawal was initiated + Initiated bool `protobuf:"varint,2,opt,name=initiated,proto3" json:"initiated,omitempty"` + // Expected completion time + ExpectedCompletion *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expected_completion,json=expectedCompletion,proto3" json:"expected_completion,omitempty"` +} + +func (x *MsgCloseRemotePositionResponse) Reset() { + *x = MsgCloseRemotePositionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCloseRemotePositionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCloseRemotePositionResponse) ProtoMessage() {} + +// Deprecated: Use MsgCloseRemotePositionResponse.ProtoReflect.Descriptor instead. +func (*MsgCloseRemotePositionResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{27} +} + +func (x *MsgCloseRemotePositionResponse) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *MsgCloseRemotePositionResponse) GetInitiated() bool { + if x != nil { + return x.Initiated + } + return false +} + +func (x *MsgCloseRemotePositionResponse) GetExpectedCompletion() *timestamppb.Timestamp { + if x != nil { + return x.ExpectedCompletion + } + return nil +} + +// TargetAllocation defines allocation target for a position +type TargetAllocation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Remote position ID + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Target percentage (0-100) + TargetPercentage uint32 `protobuf:"varint,2,opt,name=target_percentage,json=targetPercentage,proto3" json:"target_percentage,omitempty"` +} + +func (x *TargetAllocation) Reset() { + *x = TargetAllocation{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TargetAllocation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TargetAllocation) ProtoMessage() {} + +// Deprecated: Use TargetAllocation.ProtoReflect.Descriptor instead. +func (*TargetAllocation) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{28} +} + +func (x *TargetAllocation) GetPositionId() uint64 { + if x != nil { + return x.PositionId + } + return 0 +} + +func (x *TargetAllocation) GetTargetPercentage() uint32 { + if x != nil { + return x.TargetPercentage + } + return 0 +} + +// MsgRebalance rebalances capital across remote positions +type MsgRebalance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authorized manager address + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // Desired allocation targets + TargetAllocations []*TargetAllocation `protobuf:"bytes,2,rep,name=target_allocations,json=targetAllocations,proto3" json:"target_allocations,omitempty"` +} + +func (x *MsgRebalance) Reset() { + *x = MsgRebalance{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRebalance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRebalance) ProtoMessage() {} + +// Deprecated: Use MsgRebalance.ProtoReflect.Descriptor instead. +func (*MsgRebalance) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{29} +} + +func (x *MsgRebalance) GetManager() string { + if x != nil { + return x.Manager + } + return "" +} + +func (x *MsgRebalance) GetTargetAllocations() []*TargetAllocation { + if x != nil { + return x.TargetAllocations + } + return nil +} + +type MsgRebalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of operations initiated + OperationsInitiated int32 `protobuf:"varint,1,opt,name=operations_initiated,json=operationsInitiated,proto3" json:"operations_initiated,omitempty"` + // Informational summary + Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` +} + +func (x *MsgRebalanceResponse) Reset() { + *x = MsgRebalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRebalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRebalanceResponse) ProtoMessage() {} + +// Deprecated: Use MsgRebalanceResponse.ProtoReflect.Descriptor instead. +func (*MsgRebalanceResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{30} +} + +func (x *MsgRebalanceResponse) GetOperationsInitiated() int32 { + if x != nil { + return x.OperationsInitiated + } + return 0 +} + +func (x *MsgRebalanceResponse) GetSummary() string { + if x != nil { + return x.Summary + } + return "" +} + +// MsgClaimWithdrawal allows a user to claim a completed withdrawal request +type MsgClaimWithdrawal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User claiming the withdrawal + Claimer string `protobuf:"bytes,1,opt,name=claimer,proto3" json:"claimer,omitempty"` + // Withdrawal request ID + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +} + +func (x *MsgClaimWithdrawal) Reset() { + *x = MsgClaimWithdrawal{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgClaimWithdrawal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgClaimWithdrawal) ProtoMessage() {} + +// Deprecated: Use MsgClaimWithdrawal.ProtoReflect.Descriptor instead. +func (*MsgClaimWithdrawal) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{31} +} + +func (x *MsgClaimWithdrawal) GetClaimer() string { + if x != nil { + return x.Claimer + } + return "" +} + +func (x *MsgClaimWithdrawal) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +// MsgClaimWithdrawalResponse returns claim results +type MsgClaimWithdrawalResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Amount claimed (principal + yield - fees) + AmountClaimed string `protobuf:"bytes,1,opt,name=amount_claimed,json=amountClaimed,proto3" json:"amount_claimed,omitempty"` + // Principal portion + PrincipalAmount string `protobuf:"bytes,2,opt,name=principal_amount,json=principalAmount,proto3" json:"principal_amount,omitempty"` + // Yield portion + YieldAmount string `protobuf:"bytes,3,opt,name=yield_amount,json=yieldAmount,proto3" json:"yield_amount,omitempty"` + // Fees deducted + FeesDeducted string `protobuf:"bytes,4,opt,name=fees_deducted,json=feesDeducted,proto3" json:"fees_deducted,omitempty"` +} + +func (x *MsgClaimWithdrawalResponse) Reset() { + *x = MsgClaimWithdrawalResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgClaimWithdrawalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgClaimWithdrawalResponse) ProtoMessage() {} + +// Deprecated: Use MsgClaimWithdrawalResponse.ProtoReflect.Descriptor instead. +func (*MsgClaimWithdrawalResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{32} +} + +func (x *MsgClaimWithdrawalResponse) GetAmountClaimed() string { + if x != nil { + return x.AmountClaimed + } + return "" +} + +func (x *MsgClaimWithdrawalResponse) GetPrincipalAmount() string { + if x != nil { + return x.PrincipalAmount + } + return "" +} + +func (x *MsgClaimWithdrawalResponse) GetYieldAmount() string { + if x != nil { + return x.YieldAmount + } + return "" +} + +func (x *MsgClaimWithdrawalResponse) GetFeesDeducted() string { + if x != nil { + return x.FeesDeducted + } + return "" +} + +// MsgUpdateNAV updates the NAV values (authority controlled) +type MsgUpdateNAV struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority performing the update + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New NAV value + NewNav string `protobuf:"bytes,2,opt,name=new_nav,json=newNav,proto3" json:"new_nav,omitempty"` + // Previous NAV value for validation (optional) + PreviousNav string `protobuf:"bytes,3,opt,name=previous_nav,json=previousNav,proto3" json:"previous_nav,omitempty"` + // NAV change basis points (server may recalc) + ChangeBps int32 `protobuf:"varint,4,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Circuit breaker active + CircuitBreakerActive bool `protobuf:"varint,5,opt,name=circuit_breaker_active,json=circuitBreakerActive,proto3" json:"circuit_breaker_active,omitempty"` +} + +func (x *MsgUpdateNAV) Reset() { + *x = MsgUpdateNAV{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateNAV) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateNAV) ProtoMessage() {} + +// Deprecated: Use MsgUpdateNAV.ProtoReflect.Descriptor instead. +func (*MsgUpdateNAV) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{33} +} + +func (x *MsgUpdateNAV) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateNAV) GetNewNav() string { + if x != nil { + return x.NewNav + } + return "" +} + +func (x *MsgUpdateNAV) GetPreviousNav() string { + if x != nil { + return x.PreviousNav + } + return "" +} + +func (x *MsgUpdateNAV) GetChangeBps() int32 { + if x != nil { + return x.ChangeBps + } + return 0 +} + +func (x *MsgUpdateNAV) GetCircuitBreakerActive() bool { + if x != nil { + return x.CircuitBreakerActive + } + return false +} + +// MsgUpdateNAVResponse confirms NAV update +type MsgUpdateNAVResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Applied NAV value + AppliedNav string `protobuf:"bytes,1,opt,name=applied_nav,json=appliedNav,proto3" json:"applied_nav,omitempty"` + // Change basis points + ChangeBps int32 `protobuf:"varint,2,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Timestamp of update + Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Circuit breaker active + CircuitBreakerActive bool `protobuf:"varint,4,opt,name=circuit_breaker_active,json=circuitBreakerActive,proto3" json:"circuit_breaker_active,omitempty"` +} + +func (x *MsgUpdateNAVResponse) Reset() { + *x = MsgUpdateNAVResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateNAVResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateNAVResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateNAVResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateNAVResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{34} +} + +func (x *MsgUpdateNAVResponse) GetAppliedNav() string { + if x != nil { + return x.AppliedNav + } + return "" +} + +func (x *MsgUpdateNAVResponse) GetChangeBps() int32 { + if x != nil { + return x.ChangeBps + } + return 0 +} + +func (x *MsgUpdateNAVResponse) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *MsgUpdateNAVResponse) GetCircuitBreakerActive() bool { + if x != nil { + return x.CircuitBreakerActive + } + return false +} + +// MsgHandleStaleInflight marks or updates a stale inflight fund record +type MsgHandleStaleInflight struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority performing the action + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Inflight fund ID + InflightId string `protobuf:"bytes,2,opt,name=inflight_id,json=inflightId,proto3" json:"inflight_id,omitempty"` + // New status to apply (e.g., TIMEOUT, FAILED) + NewStatus InflightStatus `protobuf:"varint,3,opt,name=new_status,json=newStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"new_status,omitempty"` + // Reason / notes + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *MsgHandleStaleInflight) Reset() { + *x = MsgHandleStaleInflight{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgHandleStaleInflight) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgHandleStaleInflight) ProtoMessage() {} + +// Deprecated: Use MsgHandleStaleInflight.ProtoReflect.Descriptor instead. +func (*MsgHandleStaleInflight) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{35} +} + +func (x *MsgHandleStaleInflight) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgHandleStaleInflight) GetInflightId() string { + if x != nil { + return x.InflightId + } + return "" +} + +func (x *MsgHandleStaleInflight) GetNewStatus() InflightStatus { + if x != nil { + return x.NewStatus + } + return InflightStatus_INFLIGHT_PENDING +} + +func (x *MsgHandleStaleInflight) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +// MsgHandleStaleInflightResponse returns updated status info +type MsgHandleStaleInflightResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Inflight fund ID + InflightId string `protobuf:"bytes,1,opt,name=inflight_id,json=inflightId,proto3" json:"inflight_id,omitempty"` + // Final status + FinalStatus InflightStatus `protobuf:"varint,2,opt,name=final_status,json=finalStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"final_status,omitempty"` + // Time handled + HandledAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=handled_at,json=handledAt,proto3" json:"handled_at,omitempty"` +} + +func (x *MsgHandleStaleInflightResponse) Reset() { + *x = MsgHandleStaleInflightResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgHandleStaleInflightResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgHandleStaleInflightResponse) ProtoMessage() {} + +// Deprecated: Use MsgHandleStaleInflightResponse.ProtoReflect.Descriptor instead. +func (*MsgHandleStaleInflightResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{36} +} + +func (x *MsgHandleStaleInflightResponse) GetInflightId() string { + if x != nil { + return x.InflightId + } + return "" +} + +func (x *MsgHandleStaleInflightResponse) GetFinalStatus() InflightStatus { + if x != nil { + return x.FinalStatus + } + return InflightStatus_INFLIGHT_PENDING +} + +func (x *MsgHandleStaleInflightResponse) GetHandledAt() *timestamppb.Timestamp { + if x != nil { + return x.HandledAt + } + return nil +} + +// MsgUpdateDepositLimits updates deposit limits and risk controls +type MsgUpdateDepositLimits struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority performing the update + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New deposit limits configuration + Limits *DepositLimit `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"` + // Reason for the update + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *MsgUpdateDepositLimits) Reset() { + *x = MsgUpdateDepositLimits{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateDepositLimits) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateDepositLimits) ProtoMessage() {} + +// Deprecated: Use MsgUpdateDepositLimits.ProtoReflect.Descriptor instead. +func (*MsgUpdateDepositLimits) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{37} +} + +func (x *MsgUpdateDepositLimits) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateDepositLimits) GetLimits() *DepositLimit { + if x != nil { + return x.Limits + } + return nil +} + +func (x *MsgUpdateDepositLimits) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +// MsgUpdateDepositLimitsResponse confirms the deposit limits update +type MsgUpdateDepositLimitsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Previous limits configuration (JSON) + PreviousLimits string `protobuf:"bytes,1,opt,name=previous_limits,json=previousLimits,proto3" json:"previous_limits,omitempty"` + // New limits configuration (JSON) + NewLimits string `protobuf:"bytes,2,opt,name=new_limits,json=newLimits,proto3" json:"new_limits,omitempty"` +} + +func (x *MsgUpdateDepositLimitsResponse) Reset() { + *x = MsgUpdateDepositLimitsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateDepositLimitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateDepositLimitsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateDepositLimitsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateDepositLimitsResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{38} +} + +func (x *MsgUpdateDepositLimitsResponse) GetPreviousLimits() string { + if x != nil { + return x.PreviousLimits + } + return "" +} + +func (x *MsgUpdateDepositLimitsResponse) GetNewLimits() string { + if x != nil { + return x.NewLimits + } + return "" +} + +// MsgCleanupStaleInflight removes a stale inflight fund and returns value to vault +type MsgCleanupStaleInflight struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority address (must match module authority) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Transaction ID of the stale inflight fund + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Reason for cleanup (for audit trail) + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *MsgCleanupStaleInflight) Reset() { + *x = MsgCleanupStaleInflight{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCleanupStaleInflight) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCleanupStaleInflight) ProtoMessage() {} + +// Deprecated: Use MsgCleanupStaleInflight.ProtoReflect.Descriptor instead. +func (*MsgCleanupStaleInflight) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{39} +} + +func (x *MsgCleanupStaleInflight) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgCleanupStaleInflight) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *MsgCleanupStaleInflight) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +// MsgCleanupStaleInflightResponse returns details of the cleanup +type MsgCleanupStaleInflightResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Transaction ID that was cleaned up + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Amount returned to vault + AmountReturned string `protobuf:"bytes,2,opt,name=amount_returned,json=amountReturned,proto3" json:"amount_returned,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,3,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Timestamp of cleanup + CleanedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=cleaned_at,json=cleanedAt,proto3" json:"cleaned_at,omitempty"` +} + +func (x *MsgCleanupStaleInflightResponse) Reset() { + *x = MsgCleanupStaleInflightResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_tx_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCleanupStaleInflightResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCleanupStaleInflightResponse) ProtoMessage() {} + +// Deprecated: Use MsgCleanupStaleInflightResponse.ProtoReflect.Descriptor instead. +func (*MsgCleanupStaleInflightResponse) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP(), []int{40} +} + +func (x *MsgCleanupStaleInflightResponse) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *MsgCleanupStaleInflightResponse) GetAmountReturned() string { + if x != nil { + return x.AmountReturned + } + return "" +} + +func (x *MsgCleanupStaleInflightResponse) GetRouteId() uint32 { + if x != nil { + return x.RouteId + } + return 0 +} + +func (x *MsgCleanupStaleInflightResponse) GetCleanedAt() *timestamppb.Timestamp { + if x != nil { + return x.CleanedAt + } + return nil +} + +var File_noble_dollar_vaults_v2_tx_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_tx_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, + 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x24, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x9e, 0x02, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x12, 0x36, 0x0a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x64, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x79, 0x69, + 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x59, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x3a, 0x33, 0x88, + 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x18, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x44, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x22, 0x71, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x10, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x65, 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, + 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x2c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x59, 0x69, 0x65, + 0x6c, 0x64, 0x3a, 0x39, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x23, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x53, 0x65, 0x74, 0x59, 0x69, + 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x77, 0x0a, + 0x1d, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x13, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x3a, 0x3d, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x22, 0x66, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, + 0x77, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6e, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x3a, 0x38, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, + 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, + 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x18, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x43, 0x0a, + 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x3a, 0x41, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x22, 0x3d, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x49, 0x64, 0x22, 0xf5, 0x01, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x6f, + 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x3a, 0x41, 0x88, 0xa0, 0x1f, 0x00, 0xe8, + 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, + 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, + 0x20, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x22, 0xca, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x42, 0x88, + 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x44, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x22, 0x6d, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, + 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, + 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, + 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0xce, 0x03, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x0a, + 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4f, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x09, 0x6d, 0x69, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, + 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, + 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x4d, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x67, 0x61, + 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x39, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, + 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x8a, 0xe7, + 0xb0, 0x2a, 0x1e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x22, 0xad, 0x03, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, + 0x5b, 0x0a, 0x10, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x73, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x51, 0x0a, 0x0b, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x12, + 0x55, 0x0a, 0x13, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, + 0x1f, 0x01, 0x52, 0x12, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2c, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, + 0x67, 0x22, 0xac, 0x03, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x12, 0x38, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, + 0x72, 0x61, 0x77, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x65, + 0x72, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x6d, 0x69, + 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x4d, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x67, 0x61, 0x73, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x3a, 0x3b, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, + 0x2a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, + 0x1f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x22, 0xb6, 0x03, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x57, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, + 0x5b, 0x0a, 0x10, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x12, 0x59, 0x0a, 0x0f, + 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x55, 0x0a, 0x13, 0x65, 0x78, 0x70, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x12, 0x65, 0x78, 0x70, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, + 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, + 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x22, 0xd3, 0x03, 0x0a, 0x1a, 0x4d, 0x73, + 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x55, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x59, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, + 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, + 0x6b, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x43, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x28, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, + 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0xbd, 0x02, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, + 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0c, + 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x61, + 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5b, 0x0a, 0x10, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x0f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x61, + 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x0e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, + 0xd7, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x3d, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x22, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x22, 0xc5, 0x02, 0x0a, 0x1c, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, + 0x12, 0x55, 0x0a, 0x0d, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x79, 0x69, 0x65, 0x6c, 0x64, + 0x50, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x15, 0x65, 0x78, 0x70, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x13, 0x65, 0x78, + 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x74, 0x22, 0xba, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, + 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, + 0x61, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x3a, 0x42, 0x88, 0xa0, 0x1f, 0x00, + 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x22, 0xd5, + 0x02, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x65, 0x64, 0x12, 0x66, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x6a, 0x0a, 0x18, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x6d, 0x61, 0x69, + 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xef, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x56, 0x0a, 0x0e, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x5f, 0x6f, + 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x4f, 0x75, 0x74, 0x3a, 0x3e, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x8a, 0xe7, + 0xb0, 0x2a, 0x25, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, 0x01, 0x0a, 0x1f, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x13, 0x65, 0x78, 0x70, 0x65, + 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x12, 0x65, 0x78, 0x70, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x85, 0x02, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x57, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, + 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x3d, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x8a, 0xe7, + 0xb0, 0x2a, 0x24, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb6, 0x01, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x43, + 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, 0x12, 0x55, 0x0a, 0x13, 0x65, 0x78, 0x70, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x12, 0x65, 0x78, + 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x60, 0x0a, 0x10, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, + 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, + 0x67, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x12, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x3a, 0x33, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x52, 0x65, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x63, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, + 0x14, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0xa2, 0x01, 0x0a, 0x12, 0x4d, + 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x6c, + 0x61, 0x69, 0x6d, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x49, 0x64, 0x3a, 0x39, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x20, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x22, + 0xfe, 0x02, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x57, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, + 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x6e, 0x63, + 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x41, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x0c, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x79, 0x69, + 0x65, 0x6c, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x55, 0x0a, 0x0d, 0x66, 0x65, 0x65, + 0x73, 0x5f, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x0c, 0x66, 0x65, 0x65, 0x73, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x65, 0x64, + 0x22, 0xf2, 0x02, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x41, + 0x56, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x07, 0x6e, 0x65, 0x77, + 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x6e, 0x65, + 0x77, 0x4e, 0x61, 0x76, 0x12, 0x53, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, + 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x70, 0x72, + 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4e, 0x61, 0x76, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x5f, 0x62, 0x70, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x70, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x69, 0x72, 0x63, + 0x75, 0x69, 0x74, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, + 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x3a, 0x35, + 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4e, 0x41, 0x56, 0x22, 0x82, 0x02, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x41, 0x56, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, + 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x76, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4e, 0x61, + 0x76, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x62, 0x70, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x70, 0x73, + 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x5f, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x63, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, + 0x61, 0x6b, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x91, 0x02, 0x0a, 0x16, 0x4d, + 0x73, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, + 0x0b, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x49, 0x64, 0x12, 0x45, + 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x3f, 0x88, + 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x48, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x22, 0xd1, + 0x01, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x49, 0x64, 0x12, 0x49, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x43, 0x0a, + 0x0a, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, + 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x64, + 0x41, 0x74, 0x22, 0xed, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x36, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x3a, 0x3f, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x09, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x73, 0x22, 0x68, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, + 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x22, 0xd0, 0x01, 0x0a, + 0x17, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x74, 0x61, 0x6c, 0x65, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, + 0x3e, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, + 0xe7, 0xb0, 0x2a, 0x2b, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x43, 0x6c, 0x65, 0x61, 0x6e, + 0x75, 0x70, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x22, + 0x83, 0x02, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x74, + 0x61, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x0f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, + 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x63, 0x6c, 0x65, 0x61, + 0x6e, 0x65, 0x64, 0x41, 0x74, 0x32, 0xd0, 0x16, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x59, 0x0a, + 0x07, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x22, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x2a, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x2c, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x1a, 0x34, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x35, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, + 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x57, 0x69, 0x74, 0x68, + 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, 0x39, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x34, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x75, 0x6c, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x68, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x15, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x12, 0x30, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x1a, 0x38, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, + 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x83, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x30, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x73, + 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x1a, 0x38, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, + 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x16, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x12, 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x69, 0x73, + 0x61, 0x62, 0x6c, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x1a, 0x39, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, + 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x37, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7d, 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x36, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5f, 0x0a, 0x09, 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, + 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x1a, 0x2c, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x6b, 0x0a, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x12, 0x28, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x30, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, + 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, + 0x12, 0x29, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x1a, 0x31, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x57, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, + 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x46, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, + 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x3a, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x49, 0x6e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0e, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x12, 0x29, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x1a, 0x31, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x72, 0x61, 0x63, + 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x12, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, + 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, + 0x35, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x12, 0x27, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x1a, + 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x7a, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x35, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, + 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0f, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, + 0x2a, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, + 0x6d, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x1a, 0x32, 0x2e, 0x6e, 0x6f, + 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x57, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5f, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x41, 0x56, 0x12, 0x24, 0x2e, 0x6e, + 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x41, 0x56, 0x1a, 0x2c, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, + 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x41, 0x56, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x7d, 0x0a, 0x13, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x1a, 0x36, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x7d, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x36, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, + 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, + 0x01, 0x0a, 0x14, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, + 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x74, 0x61, 0x6c, 0x65, + 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x1a, 0x37, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x53, 0x74, 0x61, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xd9, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, + 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, + 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, + 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, + 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, + 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_tx_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_tx_proto_rawDescData = file_noble_dollar_vaults_v2_tx_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_tx_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_tx_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_tx_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_tx_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 41) +var file_noble_dollar_vaults_v2_tx_proto_goTypes = []interface{}{ + (*MsgDeposit)(nil), // 0: noble.dollar.vaults.v2.MsgDeposit + (*MsgDepositResponse)(nil), // 1: noble.dollar.vaults.v2.MsgDepositResponse + (*MsgSetYieldPreference)(nil), // 2: noble.dollar.vaults.v2.MsgSetYieldPreference + (*MsgSetYieldPreferenceResponse)(nil), // 3: noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse + (*MsgUpdateVaultConfig)(nil), // 4: noble.dollar.vaults.v2.MsgUpdateVaultConfig + (*MsgUpdateVaultConfigResponse)(nil), // 5: noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse + (*MsgUpdateParams)(nil), // 6: noble.dollar.vaults.v2.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 7: noble.dollar.vaults.v2.MsgUpdateParamsResponse + (*MsgCreateCrossChainRoute)(nil), // 8: noble.dollar.vaults.v2.MsgCreateCrossChainRoute + (*MsgCreateCrossChainRouteResponse)(nil), // 9: noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse + (*MsgUpdateCrossChainRoute)(nil), // 10: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute + (*MsgUpdateCrossChainRouteResponse)(nil), // 11: noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse + (*MsgDisableCrossChainRoute)(nil), // 12: noble.dollar.vaults.v2.MsgDisableCrossChainRoute + (*MsgDisableCrossChainRouteResponse)(nil), // 13: noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse + (*MsgRemoteDeposit)(nil), // 14: noble.dollar.vaults.v2.MsgRemoteDeposit + (*MsgRemoteDepositResponse)(nil), // 15: noble.dollar.vaults.v2.MsgRemoteDepositResponse + (*MsgRemoteWithdraw)(nil), // 16: noble.dollar.vaults.v2.MsgRemoteWithdraw + (*MsgRemoteWithdrawResponse)(nil), // 17: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse + (*MsgProcessInFlightPosition)(nil), // 18: noble.dollar.vaults.v2.MsgProcessInFlightPosition + (*MsgProcessInFlightPositionResponse)(nil), // 19: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse + (*MsgRequestWithdrawal)(nil), // 20: noble.dollar.vaults.v2.MsgRequestWithdrawal + (*MsgRequestWithdrawalResponse)(nil), // 21: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse + (*MsgProcessWithdrawalQueue)(nil), // 22: noble.dollar.vaults.v2.MsgProcessWithdrawalQueue + (*MsgProcessWithdrawalQueueResponse)(nil), // 23: noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse + (*MsgCreateRemotePosition)(nil), // 24: noble.dollar.vaults.v2.MsgCreateRemotePosition + (*MsgCreateRemotePositionResponse)(nil), // 25: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse + (*MsgCloseRemotePosition)(nil), // 26: noble.dollar.vaults.v2.MsgCloseRemotePosition + (*MsgCloseRemotePositionResponse)(nil), // 27: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse + (*TargetAllocation)(nil), // 28: noble.dollar.vaults.v2.TargetAllocation + (*MsgRebalance)(nil), // 29: noble.dollar.vaults.v2.MsgRebalance + (*MsgRebalanceResponse)(nil), // 30: noble.dollar.vaults.v2.MsgRebalanceResponse + (*MsgClaimWithdrawal)(nil), // 31: noble.dollar.vaults.v2.MsgClaimWithdrawal + (*MsgClaimWithdrawalResponse)(nil), // 32: noble.dollar.vaults.v2.MsgClaimWithdrawalResponse + (*MsgUpdateNAV)(nil), // 33: noble.dollar.vaults.v2.MsgUpdateNAV + (*MsgUpdateNAVResponse)(nil), // 34: noble.dollar.vaults.v2.MsgUpdateNAVResponse + (*MsgHandleStaleInflight)(nil), // 35: noble.dollar.vaults.v2.MsgHandleStaleInflight + (*MsgHandleStaleInflightResponse)(nil), // 36: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse + (*MsgUpdateDepositLimits)(nil), // 37: noble.dollar.vaults.v2.MsgUpdateDepositLimits + (*MsgUpdateDepositLimitsResponse)(nil), // 38: noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse + (*MsgCleanupStaleInflight)(nil), // 39: noble.dollar.vaults.v2.MsgCleanupStaleInflight + (*MsgCleanupStaleInflightResponse)(nil), // 40: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse + (*VaultConfig)(nil), // 41: noble.dollar.vaults.v2.VaultConfig + (*Params)(nil), // 42: noble.dollar.vaults.v2.Params + (*CrossChainRoute)(nil), // 43: noble.dollar.vaults.v2.CrossChainRoute + (*timestamppb.Timestamp)(nil), // 44: google.protobuf.Timestamp + (*ProviderTrackingInfo)(nil), // 45: noble.dollar.vaults.v2.ProviderTrackingInfo + (InflightStatus)(0), // 46: noble.dollar.vaults.v2.InflightStatus + (*DepositLimit)(nil), // 47: noble.dollar.vaults.v2.DepositLimit + (*MsgRegisterOracle)(nil), // 48: noble.dollar.vaults.v2.MsgRegisterOracle + (*MsgUpdateOracleConfig)(nil), // 49: noble.dollar.vaults.v2.MsgUpdateOracleConfig + (*MsgRemoveOracle)(nil), // 50: noble.dollar.vaults.v2.MsgRemoveOracle + (*MsgUpdateOracleParams)(nil), // 51: noble.dollar.vaults.v2.MsgUpdateOracleParams + (*MsgRegisterOracleResponse)(nil), // 52: noble.dollar.vaults.v2.MsgRegisterOracleResponse + (*MsgUpdateOracleConfigResponse)(nil), // 53: noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse + (*MsgRemoveOracleResponse)(nil), // 54: noble.dollar.vaults.v2.MsgRemoveOracleResponse + (*MsgUpdateOracleParamsResponse)(nil), // 55: noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse +} +var file_noble_dollar_vaults_v2_tx_proto_depIdxs = []int32{ + 41, // 0: noble.dollar.vaults.v2.MsgUpdateVaultConfig.config:type_name -> noble.dollar.vaults.v2.VaultConfig + 42, // 1: noble.dollar.vaults.v2.MsgUpdateParams.params:type_name -> noble.dollar.vaults.v2.Params + 43, // 2: noble.dollar.vaults.v2.MsgCreateCrossChainRoute.route:type_name -> noble.dollar.vaults.v2.CrossChainRoute + 43, // 3: noble.dollar.vaults.v2.MsgUpdateCrossChainRoute.route:type_name -> noble.dollar.vaults.v2.CrossChainRoute + 44, // 4: noble.dollar.vaults.v2.MsgRemoteDepositResponse.expected_completion:type_name -> google.protobuf.Timestamp + 45, // 5: noble.dollar.vaults.v2.MsgRemoteDepositResponse.provider_tracking:type_name -> noble.dollar.vaults.v2.ProviderTrackingInfo + 44, // 6: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.expected_completion:type_name -> google.protobuf.Timestamp + 45, // 7: noble.dollar.vaults.v2.MsgRemoteWithdrawResponse.provider_tracking:type_name -> noble.dollar.vaults.v2.ProviderTrackingInfo + 46, // 8: noble.dollar.vaults.v2.MsgProcessInFlightPosition.result_status:type_name -> noble.dollar.vaults.v2.InflightStatus + 45, // 9: noble.dollar.vaults.v2.MsgProcessInFlightPosition.provider_tracking:type_name -> noble.dollar.vaults.v2.ProviderTrackingInfo + 46, // 10: noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse.final_status:type_name -> noble.dollar.vaults.v2.InflightStatus + 44, // 11: noble.dollar.vaults.v2.MsgRequestWithdrawalResponse.expected_claimable_at:type_name -> google.protobuf.Timestamp + 44, // 12: noble.dollar.vaults.v2.MsgCreateRemotePositionResponse.expected_completion:type_name -> google.protobuf.Timestamp + 44, // 13: noble.dollar.vaults.v2.MsgCloseRemotePositionResponse.expected_completion:type_name -> google.protobuf.Timestamp + 28, // 14: noble.dollar.vaults.v2.MsgRebalance.target_allocations:type_name -> noble.dollar.vaults.v2.TargetAllocation + 44, // 15: noble.dollar.vaults.v2.MsgUpdateNAVResponse.timestamp:type_name -> google.protobuf.Timestamp + 46, // 16: noble.dollar.vaults.v2.MsgHandleStaleInflight.new_status:type_name -> noble.dollar.vaults.v2.InflightStatus + 46, // 17: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.final_status:type_name -> noble.dollar.vaults.v2.InflightStatus + 44, // 18: noble.dollar.vaults.v2.MsgHandleStaleInflightResponse.handled_at:type_name -> google.protobuf.Timestamp + 47, // 19: noble.dollar.vaults.v2.MsgUpdateDepositLimits.limits:type_name -> noble.dollar.vaults.v2.DepositLimit + 44, // 20: noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse.cleaned_at:type_name -> google.protobuf.Timestamp + 0, // 21: noble.dollar.vaults.v2.Msg.Deposit:input_type -> noble.dollar.vaults.v2.MsgDeposit + 20, // 22: noble.dollar.vaults.v2.Msg.RequestWithdrawal:input_type -> noble.dollar.vaults.v2.MsgRequestWithdrawal + 2, // 23: noble.dollar.vaults.v2.Msg.SetYieldPreference:input_type -> noble.dollar.vaults.v2.MsgSetYieldPreference + 22, // 24: noble.dollar.vaults.v2.Msg.ProcessWithdrawalQueue:input_type -> noble.dollar.vaults.v2.MsgProcessWithdrawalQueue + 4, // 25: noble.dollar.vaults.v2.Msg.UpdateVaultConfig:input_type -> noble.dollar.vaults.v2.MsgUpdateVaultConfig + 6, // 26: noble.dollar.vaults.v2.Msg.UpdateParams:input_type -> noble.dollar.vaults.v2.MsgUpdateParams + 8, // 27: noble.dollar.vaults.v2.Msg.CreateCrossChainRoute:input_type -> noble.dollar.vaults.v2.MsgCreateCrossChainRoute + 10, // 28: noble.dollar.vaults.v2.Msg.UpdateCrossChainRoute:input_type -> noble.dollar.vaults.v2.MsgUpdateCrossChainRoute + 12, // 29: noble.dollar.vaults.v2.Msg.DisableCrossChainRoute:input_type -> noble.dollar.vaults.v2.MsgDisableCrossChainRoute + 24, // 30: noble.dollar.vaults.v2.Msg.CreateRemotePosition:input_type -> noble.dollar.vaults.v2.MsgCreateRemotePosition + 26, // 31: noble.dollar.vaults.v2.Msg.CloseRemotePosition:input_type -> noble.dollar.vaults.v2.MsgCloseRemotePosition + 29, // 32: noble.dollar.vaults.v2.Msg.Rebalance:input_type -> noble.dollar.vaults.v2.MsgRebalance + 14, // 33: noble.dollar.vaults.v2.Msg.RemoteDeposit:input_type -> noble.dollar.vaults.v2.MsgRemoteDeposit + 16, // 34: noble.dollar.vaults.v2.Msg.RemoteWithdraw:input_type -> noble.dollar.vaults.v2.MsgRemoteWithdraw + 18, // 35: noble.dollar.vaults.v2.Msg.ProcessInFlightPosition:input_type -> noble.dollar.vaults.v2.MsgProcessInFlightPosition + 48, // 36: noble.dollar.vaults.v2.Msg.RegisterOracle:input_type -> noble.dollar.vaults.v2.MsgRegisterOracle + 49, // 37: noble.dollar.vaults.v2.Msg.UpdateOracleConfig:input_type -> noble.dollar.vaults.v2.MsgUpdateOracleConfig + 50, // 38: noble.dollar.vaults.v2.Msg.RemoveOracle:input_type -> noble.dollar.vaults.v2.MsgRemoveOracle + 51, // 39: noble.dollar.vaults.v2.Msg.UpdateOracleParams:input_type -> noble.dollar.vaults.v2.MsgUpdateOracleParams + 31, // 40: noble.dollar.vaults.v2.Msg.ClaimWithdrawal:input_type -> noble.dollar.vaults.v2.MsgClaimWithdrawal + 33, // 41: noble.dollar.vaults.v2.Msg.UpdateNAV:input_type -> noble.dollar.vaults.v2.MsgUpdateNAV + 35, // 42: noble.dollar.vaults.v2.Msg.HandleStaleInflight:input_type -> noble.dollar.vaults.v2.MsgHandleStaleInflight + 37, // 43: noble.dollar.vaults.v2.Msg.UpdateDepositLimits:input_type -> noble.dollar.vaults.v2.MsgUpdateDepositLimits + 39, // 44: noble.dollar.vaults.v2.Msg.CleanupStaleInflight:input_type -> noble.dollar.vaults.v2.MsgCleanupStaleInflight + 1, // 45: noble.dollar.vaults.v2.Msg.Deposit:output_type -> noble.dollar.vaults.v2.MsgDepositResponse + 21, // 46: noble.dollar.vaults.v2.Msg.RequestWithdrawal:output_type -> noble.dollar.vaults.v2.MsgRequestWithdrawalResponse + 3, // 47: noble.dollar.vaults.v2.Msg.SetYieldPreference:output_type -> noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse + 23, // 48: noble.dollar.vaults.v2.Msg.ProcessWithdrawalQueue:output_type -> noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse + 5, // 49: noble.dollar.vaults.v2.Msg.UpdateVaultConfig:output_type -> noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse + 7, // 50: noble.dollar.vaults.v2.Msg.UpdateParams:output_type -> noble.dollar.vaults.v2.MsgUpdateParamsResponse + 9, // 51: noble.dollar.vaults.v2.Msg.CreateCrossChainRoute:output_type -> noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse + 11, // 52: noble.dollar.vaults.v2.Msg.UpdateCrossChainRoute:output_type -> noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse + 13, // 53: noble.dollar.vaults.v2.Msg.DisableCrossChainRoute:output_type -> noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse + 25, // 54: noble.dollar.vaults.v2.Msg.CreateRemotePosition:output_type -> noble.dollar.vaults.v2.MsgCreateRemotePositionResponse + 27, // 55: noble.dollar.vaults.v2.Msg.CloseRemotePosition:output_type -> noble.dollar.vaults.v2.MsgCloseRemotePositionResponse + 30, // 56: noble.dollar.vaults.v2.Msg.Rebalance:output_type -> noble.dollar.vaults.v2.MsgRebalanceResponse + 15, // 57: noble.dollar.vaults.v2.Msg.RemoteDeposit:output_type -> noble.dollar.vaults.v2.MsgRemoteDepositResponse + 17, // 58: noble.dollar.vaults.v2.Msg.RemoteWithdraw:output_type -> noble.dollar.vaults.v2.MsgRemoteWithdrawResponse + 19, // 59: noble.dollar.vaults.v2.Msg.ProcessInFlightPosition:output_type -> noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse + 52, // 60: noble.dollar.vaults.v2.Msg.RegisterOracle:output_type -> noble.dollar.vaults.v2.MsgRegisterOracleResponse + 53, // 61: noble.dollar.vaults.v2.Msg.UpdateOracleConfig:output_type -> noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse + 54, // 62: noble.dollar.vaults.v2.Msg.RemoveOracle:output_type -> noble.dollar.vaults.v2.MsgRemoveOracleResponse + 55, // 63: noble.dollar.vaults.v2.Msg.UpdateOracleParams:output_type -> noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse + 32, // 64: noble.dollar.vaults.v2.Msg.ClaimWithdrawal:output_type -> noble.dollar.vaults.v2.MsgClaimWithdrawalResponse + 34, // 65: noble.dollar.vaults.v2.Msg.UpdateNAV:output_type -> noble.dollar.vaults.v2.MsgUpdateNAVResponse + 36, // 66: noble.dollar.vaults.v2.Msg.HandleStaleInflight:output_type -> noble.dollar.vaults.v2.MsgHandleStaleInflightResponse + 38, // 67: noble.dollar.vaults.v2.Msg.UpdateDepositLimits:output_type -> noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse + 40, // 68: noble.dollar.vaults.v2.Msg.CleanupStaleInflight:output_type -> noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse + 45, // [45:69] is the sub-list for method output_type + 21, // [21:45] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_tx_proto_init() } +func file_noble_dollar_vaults_v2_tx_proto_init() { + if File_noble_dollar_vaults_v2_tx_proto != nil { + return + } + file_noble_dollar_vaults_v2_cross_chain_proto_init() + file_noble_dollar_vaults_v2_genesis_proto_init() + file_noble_dollar_vaults_v2_oracle_proto_init() + file_noble_dollar_vaults_v2_vaults_proto_init() + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDeposit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDepositResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetYieldPreference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSetYieldPreferenceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateVaultConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateVaultConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParamsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateCrossChainRoute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateCrossChainRouteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateCrossChainRoute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateCrossChainRouteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDisableCrossChainRoute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDisableCrossChainRouteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoteDeposit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoteDepositResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoteWithdraw); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRemoteWithdrawResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgProcessInFlightPosition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgProcessInFlightPositionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRequestWithdrawal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRequestWithdrawalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgProcessWithdrawalQueue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgProcessWithdrawalQueueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateRemotePosition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateRemotePositionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCloseRemotePosition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCloseRemotePositionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TargetAllocation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRebalance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRebalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgClaimWithdrawal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgClaimWithdrawalResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateNAV); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateNAVResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgHandleStaleInflight); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgHandleStaleInflightResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateDepositLimits); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateDepositLimitsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCleanupStaleInflight); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_tx_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCleanupStaleInflightResponse); 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_noble_dollar_vaults_v2_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 41, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_noble_dollar_vaults_v2_tx_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_tx_proto_depIdxs, + MessageInfos: file_noble_dollar_vaults_v2_tx_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_tx_proto = out.File + file_noble_dollar_vaults_v2_tx_proto_rawDesc = nil + file_noble_dollar_vaults_v2_tx_proto_goTypes = nil + file_noble_dollar_vaults_v2_tx_proto_depIdxs = nil +} diff --git a/api/vaults/v2/tx_grpc.pb.go b/api/vaults/v2/tx_grpc.pb.go new file mode 100644 index 00000000..746101a6 --- /dev/null +++ b/api/vaults/v2/tx_grpc.pb.go @@ -0,0 +1,1047 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: noble/dollar/vaults/v2/tx.proto + +package vaultsv2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Msg_Deposit_FullMethodName = "/noble.dollar.vaults.v2.Msg/Deposit" + Msg_RequestWithdrawal_FullMethodName = "/noble.dollar.vaults.v2.Msg/RequestWithdrawal" + Msg_SetYieldPreference_FullMethodName = "/noble.dollar.vaults.v2.Msg/SetYieldPreference" + Msg_ProcessWithdrawalQueue_FullMethodName = "/noble.dollar.vaults.v2.Msg/ProcessWithdrawalQueue" + Msg_UpdateVaultConfig_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateVaultConfig" + Msg_UpdateParams_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateParams" + Msg_CreateCrossChainRoute_FullMethodName = "/noble.dollar.vaults.v2.Msg/CreateCrossChainRoute" + Msg_UpdateCrossChainRoute_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateCrossChainRoute" + Msg_DisableCrossChainRoute_FullMethodName = "/noble.dollar.vaults.v2.Msg/DisableCrossChainRoute" + Msg_CreateRemotePosition_FullMethodName = "/noble.dollar.vaults.v2.Msg/CreateRemotePosition" + Msg_CloseRemotePosition_FullMethodName = "/noble.dollar.vaults.v2.Msg/CloseRemotePosition" + Msg_Rebalance_FullMethodName = "/noble.dollar.vaults.v2.Msg/Rebalance" + Msg_RemoteDeposit_FullMethodName = "/noble.dollar.vaults.v2.Msg/RemoteDeposit" + Msg_RemoteWithdraw_FullMethodName = "/noble.dollar.vaults.v2.Msg/RemoteWithdraw" + Msg_ProcessInFlightPosition_FullMethodName = "/noble.dollar.vaults.v2.Msg/ProcessInFlightPosition" + Msg_RegisterOracle_FullMethodName = "/noble.dollar.vaults.v2.Msg/RegisterOracle" + Msg_UpdateOracleConfig_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateOracleConfig" + Msg_RemoveOracle_FullMethodName = "/noble.dollar.vaults.v2.Msg/RemoveOracle" + Msg_UpdateOracleParams_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateOracleParams" + Msg_ClaimWithdrawal_FullMethodName = "/noble.dollar.vaults.v2.Msg/ClaimWithdrawal" + Msg_UpdateNAV_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateNAV" + Msg_HandleStaleInflight_FullMethodName = "/noble.dollar.vaults.v2.Msg/HandleStaleInflight" + Msg_UpdateDepositLimits_FullMethodName = "/noble.dollar.vaults.v2.Msg/UpdateDepositLimits" + Msg_CleanupStaleInflight_FullMethodName = "/noble.dollar.vaults.v2.Msg/CleanupStaleInflight" +) + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Msg defines the V2 vaults transaction service +type MsgClient interface { + // Deposit into a V2 vault + Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + // Request withdrawal (queue-based) + RequestWithdrawal(ctx context.Context, in *MsgRequestWithdrawal, opts ...grpc.CallOption) (*MsgRequestWithdrawalResponse, error) + // Set yield preference for a user's position + SetYieldPreference(ctx context.Context, in *MsgSetYieldPreference, opts ...grpc.CallOption) (*MsgSetYieldPreferenceResponse, error) + // Process withdrawal queue (admin only) + ProcessWithdrawalQueue(ctx context.Context, in *MsgProcessWithdrawalQueue, opts ...grpc.CallOption) (*MsgProcessWithdrawalQueueResponse, error) + // Update vault configuration (authority only) + UpdateVaultConfig(ctx context.Context, in *MsgUpdateVaultConfig, opts ...grpc.CallOption) (*MsgUpdateVaultConfigResponse, error) + // Update module parameters (authority only) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // Create a new cross-chain route (authority only) + CreateCrossChainRoute(ctx context.Context, in *MsgCreateCrossChainRoute, opts ...grpc.CallOption) (*MsgCreateCrossChainRouteResponse, error) + // Update an existing cross-chain route (authority only) + UpdateCrossChainRoute(ctx context.Context, in *MsgUpdateCrossChainRoute, opts ...grpc.CallOption) (*MsgUpdateCrossChainRouteResponse, error) + // Disable a cross-chain route (authority only) + DisableCrossChainRoute(ctx context.Context, in *MsgDisableCrossChainRoute, opts ...grpc.CallOption) (*MsgDisableCrossChainRouteResponse, error) + // Create a remote position (spec-aligned) + CreateRemotePosition(ctx context.Context, in *MsgCreateRemotePosition, opts ...grpc.CallOption) (*MsgCreateRemotePositionResponse, error) + // Close a remote position (spec-aligned) + CloseRemotePosition(ctx context.Context, in *MsgCloseRemotePosition, opts ...grpc.CallOption) (*MsgCloseRemotePositionResponse, error) + // Rebalance across remote positions (spec-aligned) + Rebalance(ctx context.Context, in *MsgRebalance, opts ...grpc.CallOption) (*MsgRebalanceResponse, error) + // Initiate remote deposit to another chain + RemoteDeposit(ctx context.Context, in *MsgRemoteDeposit, opts ...grpc.CallOption) (*MsgRemoteDepositResponse, error) + // Initiate remote withdrawal from another chain + RemoteWithdraw(ctx context.Context, in *MsgRemoteWithdraw, opts ...grpc.CallOption) (*MsgRemoteWithdrawResponse, error) + // Process in-flight position (system operation) + ProcessInFlightPosition(ctx context.Context, in *MsgProcessInFlightPosition, opts ...grpc.CallOption) (*MsgProcessInFlightPositionResponse, error) + // Register a new oracle for a position (authority only) + RegisterOracle(ctx context.Context, in *MsgRegisterOracle, opts ...grpc.CallOption) (*MsgRegisterOracleResponse, error) + // Update oracle configuration (authority only) + UpdateOracleConfig(ctx context.Context, in *MsgUpdateOracleConfig, opts ...grpc.CallOption) (*MsgUpdateOracleConfigResponse, error) + // Remove an oracle from the system (authority only) + RemoveOracle(ctx context.Context, in *MsgRemoveOracle, opts ...grpc.CallOption) (*MsgRemoveOracleResponse, error) + // Update global oracle parameters (authority only) + UpdateOracleParams(ctx context.Context, in *MsgUpdateOracleParams, opts ...grpc.CallOption) (*MsgUpdateOracleParamsResponse, error) + // Claim a processed/claimable withdrawal + ClaimWithdrawal(ctx context.Context, in *MsgClaimWithdrawal, opts ...grpc.CallOption) (*MsgClaimWithdrawalResponse, error) + // Update NAV (authority or authorized updater) + UpdateNAV(ctx context.Context, in *MsgUpdateNAV, opts ...grpc.CallOption) (*MsgUpdateNAVResponse, error) + // Handle stale inflight fund record (authority only) + HandleStaleInflight(ctx context.Context, in *MsgHandleStaleInflight, opts ...grpc.CallOption) (*MsgHandleStaleInflightResponse, error) + // Update deposit limits (authority only) + UpdateDepositLimits(ctx context.Context, in *MsgUpdateDepositLimits, opts ...grpc.CallOption) (*MsgUpdateDepositLimitsResponse, error) + // Cleanup stale inflight fund (authority only) + CleanupStaleInflight(ctx context.Context, in *MsgCleanupStaleInflight, opts ...grpc.CallOption) (*MsgCleanupStaleInflightResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgDepositResponse) + err := c.cc.Invoke(ctx, Msg_Deposit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RequestWithdrawal(ctx context.Context, in *MsgRequestWithdrawal, opts ...grpc.CallOption) (*MsgRequestWithdrawalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRequestWithdrawalResponse) + err := c.cc.Invoke(ctx, Msg_RequestWithdrawal_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetYieldPreference(ctx context.Context, in *MsgSetYieldPreference, opts ...grpc.CallOption) (*MsgSetYieldPreferenceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgSetYieldPreferenceResponse) + err := c.cc.Invoke(ctx, Msg_SetYieldPreference_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ProcessWithdrawalQueue(ctx context.Context, in *MsgProcessWithdrawalQueue, opts ...grpc.CallOption) (*MsgProcessWithdrawalQueueResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgProcessWithdrawalQueueResponse) + err := c.cc.Invoke(ctx, Msg_ProcessWithdrawalQueue_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateVaultConfig(ctx context.Context, in *MsgUpdateVaultConfig, opts ...grpc.CallOption) (*MsgUpdateVaultConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateVaultConfigResponse) + err := c.cc.Invoke(ctx, Msg_UpdateVaultConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateCrossChainRoute(ctx context.Context, in *MsgCreateCrossChainRoute, opts ...grpc.CallOption) (*MsgCreateCrossChainRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgCreateCrossChainRouteResponse) + err := c.cc.Invoke(ctx, Msg_CreateCrossChainRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateCrossChainRoute(ctx context.Context, in *MsgUpdateCrossChainRoute, opts ...grpc.CallOption) (*MsgUpdateCrossChainRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateCrossChainRouteResponse) + err := c.cc.Invoke(ctx, Msg_UpdateCrossChainRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DisableCrossChainRoute(ctx context.Context, in *MsgDisableCrossChainRoute, opts ...grpc.CallOption) (*MsgDisableCrossChainRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgDisableCrossChainRouteResponse) + err := c.cc.Invoke(ctx, Msg_DisableCrossChainRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateRemotePosition(ctx context.Context, in *MsgCreateRemotePosition, opts ...grpc.CallOption) (*MsgCreateRemotePositionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgCreateRemotePositionResponse) + err := c.cc.Invoke(ctx, Msg_CreateRemotePosition_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CloseRemotePosition(ctx context.Context, in *MsgCloseRemotePosition, opts ...grpc.CallOption) (*MsgCloseRemotePositionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgCloseRemotePositionResponse) + err := c.cc.Invoke(ctx, Msg_CloseRemotePosition_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Rebalance(ctx context.Context, in *MsgRebalance, opts ...grpc.CallOption) (*MsgRebalanceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRebalanceResponse) + err := c.cc.Invoke(ctx, Msg_Rebalance_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoteDeposit(ctx context.Context, in *MsgRemoteDeposit, opts ...grpc.CallOption) (*MsgRemoteDepositResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRemoteDepositResponse) + err := c.cc.Invoke(ctx, Msg_RemoteDeposit_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoteWithdraw(ctx context.Context, in *MsgRemoteWithdraw, opts ...grpc.CallOption) (*MsgRemoteWithdrawResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRemoteWithdrawResponse) + err := c.cc.Invoke(ctx, Msg_RemoteWithdraw_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ProcessInFlightPosition(ctx context.Context, in *MsgProcessInFlightPosition, opts ...grpc.CallOption) (*MsgProcessInFlightPositionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgProcessInFlightPositionResponse) + err := c.cc.Invoke(ctx, Msg_ProcessInFlightPosition_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RegisterOracle(ctx context.Context, in *MsgRegisterOracle, opts ...grpc.CallOption) (*MsgRegisterOracleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRegisterOracleResponse) + err := c.cc.Invoke(ctx, Msg_RegisterOracle_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateOracleConfig(ctx context.Context, in *MsgUpdateOracleConfig, opts ...grpc.CallOption) (*MsgUpdateOracleConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateOracleConfigResponse) + err := c.cc.Invoke(ctx, Msg_UpdateOracleConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveOracle(ctx context.Context, in *MsgRemoveOracle, opts ...grpc.CallOption) (*MsgRemoveOracleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgRemoveOracleResponse) + err := c.cc.Invoke(ctx, Msg_RemoveOracle_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateOracleParams(ctx context.Context, in *MsgUpdateOracleParams, opts ...grpc.CallOption) (*MsgUpdateOracleParamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateOracleParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateOracleParams_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimWithdrawal(ctx context.Context, in *MsgClaimWithdrawal, opts ...grpc.CallOption) (*MsgClaimWithdrawalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgClaimWithdrawalResponse) + err := c.cc.Invoke(ctx, Msg_ClaimWithdrawal_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateNAV(ctx context.Context, in *MsgUpdateNAV, opts ...grpc.CallOption) (*MsgUpdateNAVResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateNAVResponse) + err := c.cc.Invoke(ctx, Msg_UpdateNAV_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) HandleStaleInflight(ctx context.Context, in *MsgHandleStaleInflight, opts ...grpc.CallOption) (*MsgHandleStaleInflightResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgHandleStaleInflightResponse) + err := c.cc.Invoke(ctx, Msg_HandleStaleInflight_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateDepositLimits(ctx context.Context, in *MsgUpdateDepositLimits, opts ...grpc.CallOption) (*MsgUpdateDepositLimitsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgUpdateDepositLimitsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateDepositLimits_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CleanupStaleInflight(ctx context.Context, in *MsgCleanupStaleInflight, opts ...grpc.CallOption) (*MsgCleanupStaleInflightResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MsgCleanupStaleInflightResponse) + err := c.cc.Invoke(ctx, Msg_CleanupStaleInflight_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility. +// +// Msg defines the V2 vaults transaction service +type MsgServer interface { + // Deposit into a V2 vault + Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + // Request withdrawal (queue-based) + RequestWithdrawal(context.Context, *MsgRequestWithdrawal) (*MsgRequestWithdrawalResponse, error) + // Set yield preference for a user's position + SetYieldPreference(context.Context, *MsgSetYieldPreference) (*MsgSetYieldPreferenceResponse, error) + // Process withdrawal queue (admin only) + ProcessWithdrawalQueue(context.Context, *MsgProcessWithdrawalQueue) (*MsgProcessWithdrawalQueueResponse, error) + // Update vault configuration (authority only) + UpdateVaultConfig(context.Context, *MsgUpdateVaultConfig) (*MsgUpdateVaultConfigResponse, error) + // Update module parameters (authority only) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // Create a new cross-chain route (authority only) + CreateCrossChainRoute(context.Context, *MsgCreateCrossChainRoute) (*MsgCreateCrossChainRouteResponse, error) + // Update an existing cross-chain route (authority only) + UpdateCrossChainRoute(context.Context, *MsgUpdateCrossChainRoute) (*MsgUpdateCrossChainRouteResponse, error) + // Disable a cross-chain route (authority only) + DisableCrossChainRoute(context.Context, *MsgDisableCrossChainRoute) (*MsgDisableCrossChainRouteResponse, error) + // Create a remote position (spec-aligned) + CreateRemotePosition(context.Context, *MsgCreateRemotePosition) (*MsgCreateRemotePositionResponse, error) + // Close a remote position (spec-aligned) + CloseRemotePosition(context.Context, *MsgCloseRemotePosition) (*MsgCloseRemotePositionResponse, error) + // Rebalance across remote positions (spec-aligned) + Rebalance(context.Context, *MsgRebalance) (*MsgRebalanceResponse, error) + // Initiate remote deposit to another chain + RemoteDeposit(context.Context, *MsgRemoteDeposit) (*MsgRemoteDepositResponse, error) + // Initiate remote withdrawal from another chain + RemoteWithdraw(context.Context, *MsgRemoteWithdraw) (*MsgRemoteWithdrawResponse, error) + // Process in-flight position (system operation) + ProcessInFlightPosition(context.Context, *MsgProcessInFlightPosition) (*MsgProcessInFlightPositionResponse, error) + // Register a new oracle for a position (authority only) + RegisterOracle(context.Context, *MsgRegisterOracle) (*MsgRegisterOracleResponse, error) + // Update oracle configuration (authority only) + UpdateOracleConfig(context.Context, *MsgUpdateOracleConfig) (*MsgUpdateOracleConfigResponse, error) + // Remove an oracle from the system (authority only) + RemoveOracle(context.Context, *MsgRemoveOracle) (*MsgRemoveOracleResponse, error) + // Update global oracle parameters (authority only) + UpdateOracleParams(context.Context, *MsgUpdateOracleParams) (*MsgUpdateOracleParamsResponse, error) + // Claim a processed/claimable withdrawal + ClaimWithdrawal(context.Context, *MsgClaimWithdrawal) (*MsgClaimWithdrawalResponse, error) + // Update NAV (authority or authorized updater) + UpdateNAV(context.Context, *MsgUpdateNAV) (*MsgUpdateNAVResponse, error) + // Handle stale inflight fund record (authority only) + HandleStaleInflight(context.Context, *MsgHandleStaleInflight) (*MsgHandleStaleInflightResponse, error) + // Update deposit limits (authority only) + UpdateDepositLimits(context.Context, *MsgUpdateDepositLimits) (*MsgUpdateDepositLimitsResponse, error) + // Cleanup stale inflight fund (authority only) + CleanupStaleInflight(context.Context, *MsgCleanupStaleInflight) (*MsgCleanupStaleInflightResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMsgServer struct{} + +func (UnimplementedMsgServer) Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") +} +func (UnimplementedMsgServer) RequestWithdrawal(context.Context, *MsgRequestWithdrawal) (*MsgRequestWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestWithdrawal not implemented") +} +func (UnimplementedMsgServer) SetYieldPreference(context.Context, *MsgSetYieldPreference) (*MsgSetYieldPreferenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetYieldPreference not implemented") +} +func (UnimplementedMsgServer) ProcessWithdrawalQueue(context.Context, *MsgProcessWithdrawalQueue) (*MsgProcessWithdrawalQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProcessWithdrawalQueue not implemented") +} +func (UnimplementedMsgServer) UpdateVaultConfig(context.Context, *MsgUpdateVaultConfig) (*MsgUpdateVaultConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateVaultConfig not implemented") +} +func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (UnimplementedMsgServer) CreateCrossChainRoute(context.Context, *MsgCreateCrossChainRoute) (*MsgCreateCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCrossChainRoute not implemented") +} +func (UnimplementedMsgServer) UpdateCrossChainRoute(context.Context, *MsgUpdateCrossChainRoute) (*MsgUpdateCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateCrossChainRoute not implemented") +} +func (UnimplementedMsgServer) DisableCrossChainRoute(context.Context, *MsgDisableCrossChainRoute) (*MsgDisableCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DisableCrossChainRoute not implemented") +} +func (UnimplementedMsgServer) CreateRemotePosition(context.Context, *MsgCreateRemotePosition) (*MsgCreateRemotePositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateRemotePosition not implemented") +} +func (UnimplementedMsgServer) CloseRemotePosition(context.Context, *MsgCloseRemotePosition) (*MsgCloseRemotePositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseRemotePosition not implemented") +} +func (UnimplementedMsgServer) Rebalance(context.Context, *MsgRebalance) (*MsgRebalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rebalance not implemented") +} +func (UnimplementedMsgServer) RemoteDeposit(context.Context, *MsgRemoteDeposit) (*MsgRemoteDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoteDeposit not implemented") +} +func (UnimplementedMsgServer) RemoteWithdraw(context.Context, *MsgRemoteWithdraw) (*MsgRemoteWithdrawResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoteWithdraw not implemented") +} +func (UnimplementedMsgServer) ProcessInFlightPosition(context.Context, *MsgProcessInFlightPosition) (*MsgProcessInFlightPositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProcessInFlightPosition not implemented") +} +func (UnimplementedMsgServer) RegisterOracle(context.Context, *MsgRegisterOracle) (*MsgRegisterOracleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterOracle not implemented") +} +func (UnimplementedMsgServer) UpdateOracleConfig(context.Context, *MsgUpdateOracleConfig) (*MsgUpdateOracleConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOracleConfig not implemented") +} +func (UnimplementedMsgServer) RemoveOracle(context.Context, *MsgRemoveOracle) (*MsgRemoveOracleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveOracle not implemented") +} +func (UnimplementedMsgServer) UpdateOracleParams(context.Context, *MsgUpdateOracleParams) (*MsgUpdateOracleParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOracleParams not implemented") +} +func (UnimplementedMsgServer) ClaimWithdrawal(context.Context, *MsgClaimWithdrawal) (*MsgClaimWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimWithdrawal not implemented") +} +func (UnimplementedMsgServer) UpdateNAV(context.Context, *MsgUpdateNAV) (*MsgUpdateNAVResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNAV not implemented") +} +func (UnimplementedMsgServer) HandleStaleInflight(context.Context, *MsgHandleStaleInflight) (*MsgHandleStaleInflightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HandleStaleInflight not implemented") +} +func (UnimplementedMsgServer) UpdateDepositLimits(context.Context, *MsgUpdateDepositLimits) (*MsgUpdateDepositLimitsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDepositLimits not implemented") +} +func (UnimplementedMsgServer) CleanupStaleInflight(context.Context, *MsgCleanupStaleInflight) (*MsgCleanupStaleInflightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CleanupStaleInflight not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} +func (UnimplementedMsgServer) testEmbeddedByValue() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + // If the following call pancis, it indicates UnimplementedMsgServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeposit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Deposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_Deposit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RequestWithdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestWithdrawal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RequestWithdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RequestWithdrawal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RequestWithdrawal(ctx, req.(*MsgRequestWithdrawal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetYieldPreference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetYieldPreference) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetYieldPreference(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_SetYieldPreference_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetYieldPreference(ctx, req.(*MsgSetYieldPreference)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ProcessWithdrawalQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgProcessWithdrawalQueue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ProcessWithdrawalQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ProcessWithdrawalQueue_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ProcessWithdrawalQueue(ctx, req.(*MsgProcessWithdrawalQueue)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateVaultConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateVaultConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateVaultConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateVaultConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateVaultConfig(ctx, req.(*MsgUpdateVaultConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateCrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateCrossChainRoute) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateCrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CreateCrossChainRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateCrossChainRoute(ctx, req.(*MsgCreateCrossChainRoute)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateCrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateCrossChainRoute) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateCrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateCrossChainRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateCrossChainRoute(ctx, req.(*MsgUpdateCrossChainRoute)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DisableCrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDisableCrossChainRoute) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DisableCrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_DisableCrossChainRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DisableCrossChainRoute(ctx, req.(*MsgDisableCrossChainRoute)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateRemotePosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateRemotePosition) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateRemotePosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CreateRemotePosition_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateRemotePosition(ctx, req.(*MsgCreateRemotePosition)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CloseRemotePosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCloseRemotePosition) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CloseRemotePosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CloseRemotePosition_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CloseRemotePosition(ctx, req.(*MsgCloseRemotePosition)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Rebalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRebalance) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Rebalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_Rebalance_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Rebalance(ctx, req.(*MsgRebalance)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoteDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoteDeposit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoteDeposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoteDeposit_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoteDeposit(ctx, req.(*MsgRemoteDeposit)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoteWithdraw_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoteWithdraw) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoteWithdraw(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoteWithdraw_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoteWithdraw(ctx, req.(*MsgRemoteWithdraw)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ProcessInFlightPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgProcessInFlightPosition) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ProcessInFlightPosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ProcessInFlightPosition_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ProcessInFlightPosition(ctx, req.(*MsgProcessInFlightPosition)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RegisterOracle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRegisterOracle) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RegisterOracle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RegisterOracle_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RegisterOracle(ctx, req.(*MsgRegisterOracle)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateOracleConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateOracleConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateOracleConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateOracleConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateOracleConfig(ctx, req.(*MsgUpdateOracleConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveOracle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveOracle) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveOracle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_RemoveOracle_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveOracle(ctx, req.(*MsgRemoveOracle)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateOracleParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateOracleParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateOracleParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateOracleParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateOracleParams(ctx, req.(*MsgUpdateOracleParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimWithdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimWithdrawal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimWithdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_ClaimWithdrawal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimWithdrawal(ctx, req.(*MsgClaimWithdrawal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateNAV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateNAV) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateNAV(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateNAV_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateNAV(ctx, req.(*MsgUpdateNAV)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_HandleStaleInflight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgHandleStaleInflight) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).HandleStaleInflight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_HandleStaleInflight_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).HandleStaleInflight(ctx, req.(*MsgHandleStaleInflight)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateDepositLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateDepositLimits) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateDepositLimits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateDepositLimits_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateDepositLimits(ctx, req.(*MsgUpdateDepositLimits)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CleanupStaleInflight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCleanupStaleInflight) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CleanupStaleInflight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_CleanupStaleInflight_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CleanupStaleInflight(ctx, req.(*MsgCleanupStaleInflight)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "noble.dollar.vaults.v2.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Deposit", + Handler: _Msg_Deposit_Handler, + }, + { + MethodName: "RequestWithdrawal", + Handler: _Msg_RequestWithdrawal_Handler, + }, + { + MethodName: "SetYieldPreference", + Handler: _Msg_SetYieldPreference_Handler, + }, + { + MethodName: "ProcessWithdrawalQueue", + Handler: _Msg_ProcessWithdrawalQueue_Handler, + }, + { + MethodName: "UpdateVaultConfig", + Handler: _Msg_UpdateVaultConfig_Handler, + }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "CreateCrossChainRoute", + Handler: _Msg_CreateCrossChainRoute_Handler, + }, + { + MethodName: "UpdateCrossChainRoute", + Handler: _Msg_UpdateCrossChainRoute_Handler, + }, + { + MethodName: "DisableCrossChainRoute", + Handler: _Msg_DisableCrossChainRoute_Handler, + }, + { + MethodName: "CreateRemotePosition", + Handler: _Msg_CreateRemotePosition_Handler, + }, + { + MethodName: "CloseRemotePosition", + Handler: _Msg_CloseRemotePosition_Handler, + }, + { + MethodName: "Rebalance", + Handler: _Msg_Rebalance_Handler, + }, + { + MethodName: "RemoteDeposit", + Handler: _Msg_RemoteDeposit_Handler, + }, + { + MethodName: "RemoteWithdraw", + Handler: _Msg_RemoteWithdraw_Handler, + }, + { + MethodName: "ProcessInFlightPosition", + Handler: _Msg_ProcessInFlightPosition_Handler, + }, + { + MethodName: "RegisterOracle", + Handler: _Msg_RegisterOracle_Handler, + }, + { + MethodName: "UpdateOracleConfig", + Handler: _Msg_UpdateOracleConfig_Handler, + }, + { + MethodName: "RemoveOracle", + Handler: _Msg_RemoveOracle_Handler, + }, + { + MethodName: "UpdateOracleParams", + Handler: _Msg_UpdateOracleParams_Handler, + }, + { + MethodName: "ClaimWithdrawal", + Handler: _Msg_ClaimWithdrawal_Handler, + }, + { + MethodName: "UpdateNAV", + Handler: _Msg_UpdateNAV_Handler, + }, + { + MethodName: "HandleStaleInflight", + Handler: _Msg_HandleStaleInflight_Handler, + }, + { + MethodName: "UpdateDepositLimits", + Handler: _Msg_UpdateDepositLimits_Handler, + }, + { + MethodName: "CleanupStaleInflight", + Handler: _Msg_CleanupStaleInflight_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "noble/dollar/vaults/v2/tx.proto", +} diff --git a/api/vaults/v2/vaults.pulsar.go b/api/vaults/v2/vaults.pulsar.go new file mode 100644 index 00000000..43ab8115 --- /dev/null +++ b/api/vaults/v2/vaults.pulsar.go @@ -0,0 +1,8666 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package vaultsv2 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_UserPosition protoreflect.MessageDescriptor + fd_UserPosition_deposit_amount protoreflect.FieldDescriptor + fd_UserPosition_accrued_yield protoreflect.FieldDescriptor + fd_UserPosition_first_deposit_time protoreflect.FieldDescriptor + fd_UserPosition_last_activity_time protoreflect.FieldDescriptor + fd_UserPosition_receive_yield protoreflect.FieldDescriptor + fd_UserPosition_amount_pending_withdrawal protoreflect.FieldDescriptor + fd_UserPosition_active_withdrawal_requests protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_UserPosition = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("UserPosition") + fd_UserPosition_deposit_amount = md_UserPosition.Fields().ByName("deposit_amount") + fd_UserPosition_accrued_yield = md_UserPosition.Fields().ByName("accrued_yield") + fd_UserPosition_first_deposit_time = md_UserPosition.Fields().ByName("first_deposit_time") + fd_UserPosition_last_activity_time = md_UserPosition.Fields().ByName("last_activity_time") + fd_UserPosition_receive_yield = md_UserPosition.Fields().ByName("receive_yield") + fd_UserPosition_amount_pending_withdrawal = md_UserPosition.Fields().ByName("amount_pending_withdrawal") + fd_UserPosition_active_withdrawal_requests = md_UserPosition.Fields().ByName("active_withdrawal_requests") +} + +var _ protoreflect.Message = (*fastReflection_UserPosition)(nil) + +type fastReflection_UserPosition UserPosition + +func (x *UserPosition) ProtoReflect() protoreflect.Message { + return (*fastReflection_UserPosition)(x) +} + +func (x *UserPosition) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_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_UserPosition_messageType fastReflection_UserPosition_messageType +var _ protoreflect.MessageType = fastReflection_UserPosition_messageType{} + +type fastReflection_UserPosition_messageType struct{} + +func (x fastReflection_UserPosition_messageType) Zero() protoreflect.Message { + return (*fastReflection_UserPosition)(nil) +} +func (x fastReflection_UserPosition_messageType) New() protoreflect.Message { + return new(fastReflection_UserPosition) +} +func (x fastReflection_UserPosition_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_UserPosition +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_UserPosition) Descriptor() protoreflect.MessageDescriptor { + return md_UserPosition +} + +// 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_UserPosition) Type() protoreflect.MessageType { + return _fastReflection_UserPosition_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_UserPosition) New() protoreflect.Message { + return new(fastReflection_UserPosition) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_UserPosition) Interface() protoreflect.ProtoMessage { + return (*UserPosition)(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_UserPosition) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DepositAmount != "" { + value := protoreflect.ValueOfString(x.DepositAmount) + if !f(fd_UserPosition_deposit_amount, value) { + return + } + } + if x.AccruedYield != "" { + value := protoreflect.ValueOfString(x.AccruedYield) + if !f(fd_UserPosition_accrued_yield, value) { + return + } + } + if x.FirstDepositTime != nil { + value := protoreflect.ValueOfMessage(x.FirstDepositTime.ProtoReflect()) + if !f(fd_UserPosition_first_deposit_time, value) { + return + } + } + if x.LastActivityTime != nil { + value := protoreflect.ValueOfMessage(x.LastActivityTime.ProtoReflect()) + if !f(fd_UserPosition_last_activity_time, value) { + return + } + } + if x.ReceiveYield != false { + value := protoreflect.ValueOfBool(x.ReceiveYield) + if !f(fd_UserPosition_receive_yield, value) { + return + } + } + if x.AmountPendingWithdrawal != "" { + value := protoreflect.ValueOfString(x.AmountPendingWithdrawal) + if !f(fd_UserPosition_amount_pending_withdrawal, value) { + return + } + } + if x.ActiveWithdrawalRequests != int32(0) { + value := protoreflect.ValueOfInt32(x.ActiveWithdrawalRequests) + if !f(fd_UserPosition_active_withdrawal_requests, 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_UserPosition) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPosition.deposit_amount": + return x.DepositAmount != "" + case "noble.dollar.vaults.v2.UserPosition.accrued_yield": + return x.AccruedYield != "" + case "noble.dollar.vaults.v2.UserPosition.first_deposit_time": + return x.FirstDepositTime != nil + case "noble.dollar.vaults.v2.UserPosition.last_activity_time": + return x.LastActivityTime != nil + case "noble.dollar.vaults.v2.UserPosition.receive_yield": + return x.ReceiveYield != false + case "noble.dollar.vaults.v2.UserPosition.amount_pending_withdrawal": + return x.AmountPendingWithdrawal != "" + case "noble.dollar.vaults.v2.UserPosition.active_withdrawal_requests": + return x.ActiveWithdrawalRequests != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPosition 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_UserPosition) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPosition.deposit_amount": + x.DepositAmount = "" + case "noble.dollar.vaults.v2.UserPosition.accrued_yield": + x.AccruedYield = "" + case "noble.dollar.vaults.v2.UserPosition.first_deposit_time": + x.FirstDepositTime = nil + case "noble.dollar.vaults.v2.UserPosition.last_activity_time": + x.LastActivityTime = nil + case "noble.dollar.vaults.v2.UserPosition.receive_yield": + x.ReceiveYield = false + case "noble.dollar.vaults.v2.UserPosition.amount_pending_withdrawal": + x.AmountPendingWithdrawal = "" + case "noble.dollar.vaults.v2.UserPosition.active_withdrawal_requests": + x.ActiveWithdrawalRequests = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPosition 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_UserPosition) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.UserPosition.deposit_amount": + value := x.DepositAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.UserPosition.accrued_yield": + value := x.AccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.UserPosition.first_deposit_time": + value := x.FirstDepositTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPosition.last_activity_time": + value := x.LastActivityTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPosition.receive_yield": + value := x.ReceiveYield + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.UserPosition.amount_pending_withdrawal": + value := x.AmountPendingWithdrawal + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.UserPosition.active_withdrawal_requests": + value := x.ActiveWithdrawalRequests + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPosition 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_UserPosition) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPosition.deposit_amount": + x.DepositAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.UserPosition.accrued_yield": + x.AccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.UserPosition.first_deposit_time": + x.FirstDepositTime = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.UserPosition.last_activity_time": + x.LastActivityTime = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.UserPosition.receive_yield": + x.ReceiveYield = value.Bool() + case "noble.dollar.vaults.v2.UserPosition.amount_pending_withdrawal": + x.AmountPendingWithdrawal = value.Interface().(string) + case "noble.dollar.vaults.v2.UserPosition.active_withdrawal_requests": + x.ActiveWithdrawalRequests = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPosition 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_UserPosition) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPosition.first_deposit_time": + if x.FirstDepositTime == nil { + x.FirstDepositTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.FirstDepositTime.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPosition.last_activity_time": + if x.LastActivityTime == nil { + x.LastActivityTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastActivityTime.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPosition.deposit_amount": + panic(fmt.Errorf("field deposit_amount of message noble.dollar.vaults.v2.UserPosition is not mutable")) + case "noble.dollar.vaults.v2.UserPosition.accrued_yield": + panic(fmt.Errorf("field accrued_yield of message noble.dollar.vaults.v2.UserPosition is not mutable")) + case "noble.dollar.vaults.v2.UserPosition.receive_yield": + panic(fmt.Errorf("field receive_yield of message noble.dollar.vaults.v2.UserPosition is not mutable")) + case "noble.dollar.vaults.v2.UserPosition.amount_pending_withdrawal": + panic(fmt.Errorf("field amount_pending_withdrawal of message noble.dollar.vaults.v2.UserPosition is not mutable")) + case "noble.dollar.vaults.v2.UserPosition.active_withdrawal_requests": + panic(fmt.Errorf("field active_withdrawal_requests of message noble.dollar.vaults.v2.UserPosition is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPosition 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_UserPosition) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.UserPosition.deposit_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.UserPosition.accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.UserPosition.first_deposit_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPosition.last_activity_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.UserPosition.receive_yield": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.UserPosition.amount_pending_withdrawal": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.UserPosition.active_withdrawal_requests": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.UserPosition")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.UserPosition 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_UserPosition) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.UserPosition", 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_UserPosition) 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_UserPosition) 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_UserPosition) 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_UserPosition) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*UserPosition) + 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.DepositAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.FirstDepositTime != nil { + l = options.Size(x.FirstDepositTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.LastActivityTime != nil { + l = options.Size(x.LastActivityTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ReceiveYield { + n += 2 + } + l = len(x.AmountPendingWithdrawal) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ActiveWithdrawalRequests != 0 { + n += 1 + runtime.Sov(uint64(x.ActiveWithdrawalRequests)) + } + 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().(*UserPosition) + 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.ActiveWithdrawalRequests != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ActiveWithdrawalRequests)) + i-- + dAtA[i] = 0x38 + } + if len(x.AmountPendingWithdrawal) > 0 { + i -= len(x.AmountPendingWithdrawal) + copy(dAtA[i:], x.AmountPendingWithdrawal) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountPendingWithdrawal))) + i-- + dAtA[i] = 0x32 + } + if x.ReceiveYield { + i-- + if x.ReceiveYield { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if x.LastActivityTime != nil { + encoded, err := options.Marshal(x.LastActivityTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if x.FirstDepositTime != nil { + encoded, err := options.Marshal(x.FirstDepositTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.AccruedYield) > 0 { + i -= len(x.AccruedYield) + copy(dAtA[i:], x.AccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccruedYield))) + i-- + dAtA[i] = 0x12 + } + if len(x.DepositAmount) > 0 { + i -= len(x.DepositAmount) + copy(dAtA[i:], x.DepositAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DepositAmount))) + 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().(*UserPosition) + 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: UserPosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UserPosition: 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 DepositAmount", 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.DepositAmount = 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 AccruedYield", 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.AccruedYield = 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 FirstDepositTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.FirstDepositTime == nil { + x.FirstDepositTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.FirstDepositTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastActivityTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastActivityTime == nil { + x.LastActivityTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastActivityTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceiveYield", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ReceiveYield = bool(v != 0) + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AmountPendingWithdrawal", 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.AmountPendingWithdrawal = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveWithdrawalRequests", wireType) + } + x.ActiveWithdrawalRequests = 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.ActiveWithdrawalRequests |= int32(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, + } +} + +var ( + md_WithdrawalRequest protoreflect.MessageDescriptor + fd_WithdrawalRequest_request_id protoreflect.FieldDescriptor + fd_WithdrawalRequest_requester protoreflect.FieldDescriptor + fd_WithdrawalRequest_withdraw_amount protoreflect.FieldDescriptor + fd_WithdrawalRequest_request_time protoreflect.FieldDescriptor + fd_WithdrawalRequest_unlock_time protoreflect.FieldDescriptor + fd_WithdrawalRequest_status protoreflect.FieldDescriptor + fd_WithdrawalRequest_estimated_amount protoreflect.FieldDescriptor + fd_WithdrawalRequest_request_block_height protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_WithdrawalRequest = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("WithdrawalRequest") + fd_WithdrawalRequest_request_id = md_WithdrawalRequest.Fields().ByName("request_id") + fd_WithdrawalRequest_requester = md_WithdrawalRequest.Fields().ByName("requester") + fd_WithdrawalRequest_withdraw_amount = md_WithdrawalRequest.Fields().ByName("withdraw_amount") + fd_WithdrawalRequest_request_time = md_WithdrawalRequest.Fields().ByName("request_time") + fd_WithdrawalRequest_unlock_time = md_WithdrawalRequest.Fields().ByName("unlock_time") + fd_WithdrawalRequest_status = md_WithdrawalRequest.Fields().ByName("status") + fd_WithdrawalRequest_estimated_amount = md_WithdrawalRequest.Fields().ByName("estimated_amount") + fd_WithdrawalRequest_request_block_height = md_WithdrawalRequest.Fields().ByName("request_block_height") +} + +var _ protoreflect.Message = (*fastReflection_WithdrawalRequest)(nil) + +type fastReflection_WithdrawalRequest WithdrawalRequest + +func (x *WithdrawalRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_WithdrawalRequest)(x) +} + +func (x *WithdrawalRequest) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[1] + 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_WithdrawalRequest_messageType fastReflection_WithdrawalRequest_messageType +var _ protoreflect.MessageType = fastReflection_WithdrawalRequest_messageType{} + +type fastReflection_WithdrawalRequest_messageType struct{} + +func (x fastReflection_WithdrawalRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_WithdrawalRequest)(nil) +} +func (x fastReflection_WithdrawalRequest_messageType) New() protoreflect.Message { + return new(fastReflection_WithdrawalRequest) +} +func (x fastReflection_WithdrawalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WithdrawalRequest) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalRequest +} + +// 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_WithdrawalRequest) Type() protoreflect.MessageType { + return _fastReflection_WithdrawalRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WithdrawalRequest) New() protoreflect.Message { + return new(fastReflection_WithdrawalRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WithdrawalRequest) Interface() protoreflect.ProtoMessage { + return (*WithdrawalRequest)(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_WithdrawalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestId != "" { + value := protoreflect.ValueOfString(x.RequestId) + if !f(fd_WithdrawalRequest_request_id, value) { + return + } + } + if x.Requester != "" { + value := protoreflect.ValueOfString(x.Requester) + if !f(fd_WithdrawalRequest_requester, value) { + return + } + } + if x.WithdrawAmount != "" { + value := protoreflect.ValueOfString(x.WithdrawAmount) + if !f(fd_WithdrawalRequest_withdraw_amount, value) { + return + } + } + if x.RequestTime != nil { + value := protoreflect.ValueOfMessage(x.RequestTime.ProtoReflect()) + if !f(fd_WithdrawalRequest_request_time, value) { + return + } + } + if x.UnlockTime != nil { + value := protoreflect.ValueOfMessage(x.UnlockTime.ProtoReflect()) + if !f(fd_WithdrawalRequest_unlock_time, value) { + return + } + } + if x.Status != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status)) + if !f(fd_WithdrawalRequest_status, value) { + return + } + } + if x.EstimatedAmount != "" { + value := protoreflect.ValueOfString(x.EstimatedAmount) + if !f(fd_WithdrawalRequest_estimated_amount, value) { + return + } + } + if x.RequestBlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.RequestBlockHeight) + if !f(fd_WithdrawalRequest_request_block_height, 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_WithdrawalRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequest.request_id": + return x.RequestId != "" + case "noble.dollar.vaults.v2.WithdrawalRequest.requester": + return x.Requester != "" + case "noble.dollar.vaults.v2.WithdrawalRequest.withdraw_amount": + return x.WithdrawAmount != "" + case "noble.dollar.vaults.v2.WithdrawalRequest.request_time": + return x.RequestTime != nil + case "noble.dollar.vaults.v2.WithdrawalRequest.unlock_time": + return x.UnlockTime != nil + case "noble.dollar.vaults.v2.WithdrawalRequest.status": + return x.Status != 0 + case "noble.dollar.vaults.v2.WithdrawalRequest.estimated_amount": + return x.EstimatedAmount != "" + case "noble.dollar.vaults.v2.WithdrawalRequest.request_block_height": + return x.RequestBlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequest 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_WithdrawalRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequest.request_id": + x.RequestId = "" + case "noble.dollar.vaults.v2.WithdrawalRequest.requester": + x.Requester = "" + case "noble.dollar.vaults.v2.WithdrawalRequest.withdraw_amount": + x.WithdrawAmount = "" + case "noble.dollar.vaults.v2.WithdrawalRequest.request_time": + x.RequestTime = nil + case "noble.dollar.vaults.v2.WithdrawalRequest.unlock_time": + x.UnlockTime = nil + case "noble.dollar.vaults.v2.WithdrawalRequest.status": + x.Status = 0 + case "noble.dollar.vaults.v2.WithdrawalRequest.estimated_amount": + x.EstimatedAmount = "" + case "noble.dollar.vaults.v2.WithdrawalRequest.request_block_height": + x.RequestBlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequest 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_WithdrawalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequest.request_id": + value := x.RequestId + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalRequest.requester": + value := x.Requester + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalRequest.withdraw_amount": + value := x.WithdrawAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalRequest.request_time": + value := x.RequestTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequest.unlock_time": + value := x.UnlockTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequest.status": + value := x.Status + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "noble.dollar.vaults.v2.WithdrawalRequest.estimated_amount": + value := x.EstimatedAmount + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalRequest.request_block_height": + value := x.RequestBlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequest 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_WithdrawalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequest.request_id": + x.RequestId = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalRequest.requester": + x.Requester = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalRequest.withdraw_amount": + x.WithdrawAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalRequest.request_time": + x.RequestTime = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.WithdrawalRequest.unlock_time": + x.UnlockTime = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.WithdrawalRequest.status": + x.Status = (WithdrawalRequestStatus)(value.Enum()) + case "noble.dollar.vaults.v2.WithdrawalRequest.estimated_amount": + x.EstimatedAmount = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalRequest.request_block_height": + x.RequestBlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequest 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_WithdrawalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequest.request_time": + if x.RequestTime == nil { + x.RequestTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.RequestTime.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequest.unlock_time": + if x.UnlockTime == nil { + x.UnlockTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.UnlockTime.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequest.request_id": + panic(fmt.Errorf("field request_id of message noble.dollar.vaults.v2.WithdrawalRequest is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalRequest.requester": + panic(fmt.Errorf("field requester of message noble.dollar.vaults.v2.WithdrawalRequest is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalRequest.withdraw_amount": + panic(fmt.Errorf("field withdraw_amount of message noble.dollar.vaults.v2.WithdrawalRequest is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalRequest.status": + panic(fmt.Errorf("field status of message noble.dollar.vaults.v2.WithdrawalRequest is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalRequest.estimated_amount": + panic(fmt.Errorf("field estimated_amount of message noble.dollar.vaults.v2.WithdrawalRequest is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalRequest.request_block_height": + panic(fmt.Errorf("field request_block_height of message noble.dollar.vaults.v2.WithdrawalRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequest 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_WithdrawalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalRequest.request_id": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalRequest.requester": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalRequest.withdraw_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalRequest.request_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequest.unlock_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.WithdrawalRequest.status": + return protoreflect.ValueOfEnum(0) + case "noble.dollar.vaults.v2.WithdrawalRequest.estimated_amount": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalRequest.request_block_height": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalRequest")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalRequest 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_WithdrawalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.WithdrawalRequest", 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_WithdrawalRequest) 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_WithdrawalRequest) 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_WithdrawalRequest) 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_WithdrawalRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WithdrawalRequest) + 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.RequestId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Requester) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.WithdrawAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RequestTime != nil { + l = options.Size(x.RequestTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.UnlockTime != nil { + l = options.Size(x.UnlockTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Status != 0 { + n += 1 + runtime.Sov(uint64(x.Status)) + } + l = len(x.EstimatedAmount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.RequestBlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.RequestBlockHeight)) + } + 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().(*WithdrawalRequest) + 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.RequestBlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RequestBlockHeight)) + i-- + dAtA[i] = 0x40 + } + if len(x.EstimatedAmount) > 0 { + i -= len(x.EstimatedAmount) + copy(dAtA[i:], x.EstimatedAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EstimatedAmount))) + i-- + dAtA[i] = 0x3a + } + if x.Status != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Status)) + i-- + dAtA[i] = 0x30 + } + if x.UnlockTime != nil { + encoded, err := options.Marshal(x.UnlockTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if x.RequestTime != nil { + encoded, err := options.Marshal(x.RequestTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.WithdrawAmount) > 0 { + i -= len(x.WithdrawAmount) + copy(dAtA[i:], x.WithdrawAmount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WithdrawAmount))) + i-- + dAtA[i] = 0x1a + } + if len(x.Requester) > 0 { + i -= len(x.Requester) + copy(dAtA[i:], x.Requester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Requester))) + i-- + dAtA[i] = 0x12 + } + if len(x.RequestId) > 0 { + i -= len(x.RequestId) + copy(dAtA[i:], x.RequestId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) + 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().(*WithdrawalRequest) + 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: WithdrawalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithdrawalRequest: 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 RequestId", 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.RequestId = 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 Requester", 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.Requester = 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 WithdrawAmount", 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.WithdrawAmount = 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 RequestTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.RequestTime == nil { + x.RequestTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RequestTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnlockTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.UnlockTime == nil { + x.UnlockTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnlockTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + x.Status = 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.Status |= WithdrawalRequestStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EstimatedAmount", 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.EstimatedAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestBlockHeight", wireType) + } + x.RequestBlockHeight = 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.RequestBlockHeight |= int64(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, + } +} + +var ( + md_VaultState protoreflect.MessageDescriptor + fd_VaultState_total_deposits protoreflect.FieldDescriptor + fd_VaultState_total_accrued_yield protoreflect.FieldDescriptor + fd_VaultState_total_nav protoreflect.FieldDescriptor + fd_VaultState_total_users protoreflect.FieldDescriptor + fd_VaultState_deposits_enabled protoreflect.FieldDescriptor + fd_VaultState_withdrawals_enabled protoreflect.FieldDescriptor + fd_VaultState_last_nav_update protoreflect.FieldDescriptor + fd_VaultState_total_amount_pending_withdrawal protoreflect.FieldDescriptor + fd_VaultState_pending_withdrawal_requests protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_VaultState = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("VaultState") + fd_VaultState_total_deposits = md_VaultState.Fields().ByName("total_deposits") + fd_VaultState_total_accrued_yield = md_VaultState.Fields().ByName("total_accrued_yield") + fd_VaultState_total_nav = md_VaultState.Fields().ByName("total_nav") + fd_VaultState_total_users = md_VaultState.Fields().ByName("total_users") + fd_VaultState_deposits_enabled = md_VaultState.Fields().ByName("deposits_enabled") + fd_VaultState_withdrawals_enabled = md_VaultState.Fields().ByName("withdrawals_enabled") + fd_VaultState_last_nav_update = md_VaultState.Fields().ByName("last_nav_update") + fd_VaultState_total_amount_pending_withdrawal = md_VaultState.Fields().ByName("total_amount_pending_withdrawal") + fd_VaultState_pending_withdrawal_requests = md_VaultState.Fields().ByName("pending_withdrawal_requests") +} + +var _ protoreflect.Message = (*fastReflection_VaultState)(nil) + +type fastReflection_VaultState VaultState + +func (x *VaultState) ProtoReflect() protoreflect.Message { + return (*fastReflection_VaultState)(x) +} + +func (x *VaultState) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[2] + 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_VaultState_messageType fastReflection_VaultState_messageType +var _ protoreflect.MessageType = fastReflection_VaultState_messageType{} + +type fastReflection_VaultState_messageType struct{} + +func (x fastReflection_VaultState_messageType) Zero() protoreflect.Message { + return (*fastReflection_VaultState)(nil) +} +func (x fastReflection_VaultState_messageType) New() protoreflect.Message { + return new(fastReflection_VaultState) +} +func (x fastReflection_VaultState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_VaultState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_VaultState) Descriptor() protoreflect.MessageDescriptor { + return md_VaultState +} + +// 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_VaultState) Type() protoreflect.MessageType { + return _fastReflection_VaultState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_VaultState) New() protoreflect.Message { + return new(fastReflection_VaultState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_VaultState) Interface() protoreflect.ProtoMessage { + return (*VaultState)(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_VaultState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_VaultState_total_deposits, value) { + return + } + } + if x.TotalAccruedYield != "" { + value := protoreflect.ValueOfString(x.TotalAccruedYield) + if !f(fd_VaultState_total_accrued_yield, value) { + return + } + } + if x.TotalNav != "" { + value := protoreflect.ValueOfString(x.TotalNav) + if !f(fd_VaultState_total_nav, value) { + return + } + } + if x.TotalUsers != uint64(0) { + value := protoreflect.ValueOfUint64(x.TotalUsers) + if !f(fd_VaultState_total_users, value) { + return + } + } + if x.DepositsEnabled != false { + value := protoreflect.ValueOfBool(x.DepositsEnabled) + if !f(fd_VaultState_deposits_enabled, value) { + return + } + } + if x.WithdrawalsEnabled != false { + value := protoreflect.ValueOfBool(x.WithdrawalsEnabled) + if !f(fd_VaultState_withdrawals_enabled, value) { + return + } + } + if x.LastNavUpdate != nil { + value := protoreflect.ValueOfMessage(x.LastNavUpdate.ProtoReflect()) + if !f(fd_VaultState_last_nav_update, value) { + return + } + } + if x.TotalAmountPendingWithdrawal != "" { + value := protoreflect.ValueOfString(x.TotalAmountPendingWithdrawal) + if !f(fd_VaultState_total_amount_pending_withdrawal, value) { + return + } + } + if x.PendingWithdrawalRequests != int32(0) { + value := protoreflect.ValueOfInt32(x.PendingWithdrawalRequests) + if !f(fd_VaultState_pending_withdrawal_requests, 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_VaultState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultState.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.VaultState.total_accrued_yield": + return x.TotalAccruedYield != "" + case "noble.dollar.vaults.v2.VaultState.total_nav": + return x.TotalNav != "" + case "noble.dollar.vaults.v2.VaultState.total_users": + return x.TotalUsers != uint64(0) + case "noble.dollar.vaults.v2.VaultState.deposits_enabled": + return x.DepositsEnabled != false + case "noble.dollar.vaults.v2.VaultState.withdrawals_enabled": + return x.WithdrawalsEnabled != false + case "noble.dollar.vaults.v2.VaultState.last_nav_update": + return x.LastNavUpdate != nil + case "noble.dollar.vaults.v2.VaultState.total_amount_pending_withdrawal": + return x.TotalAmountPendingWithdrawal != "" + case "noble.dollar.vaults.v2.VaultState.pending_withdrawal_requests": + return x.PendingWithdrawalRequests != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultState 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_VaultState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultState.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.VaultState.total_accrued_yield": + x.TotalAccruedYield = "" + case "noble.dollar.vaults.v2.VaultState.total_nav": + x.TotalNav = "" + case "noble.dollar.vaults.v2.VaultState.total_users": + x.TotalUsers = uint64(0) + case "noble.dollar.vaults.v2.VaultState.deposits_enabled": + x.DepositsEnabled = false + case "noble.dollar.vaults.v2.VaultState.withdrawals_enabled": + x.WithdrawalsEnabled = false + case "noble.dollar.vaults.v2.VaultState.last_nav_update": + x.LastNavUpdate = nil + case "noble.dollar.vaults.v2.VaultState.total_amount_pending_withdrawal": + x.TotalAmountPendingWithdrawal = "" + case "noble.dollar.vaults.v2.VaultState.pending_withdrawal_requests": + x.PendingWithdrawalRequests = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultState 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_VaultState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.VaultState.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultState.total_accrued_yield": + value := x.TotalAccruedYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultState.total_nav": + value := x.TotalNav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultState.total_users": + value := x.TotalUsers + return protoreflect.ValueOfUint64(value) + case "noble.dollar.vaults.v2.VaultState.deposits_enabled": + value := x.DepositsEnabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.VaultState.withdrawals_enabled": + value := x.WithdrawalsEnabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.VaultState.last_nav_update": + value := x.LastNavUpdate + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.VaultState.total_amount_pending_withdrawal": + value := x.TotalAmountPendingWithdrawal + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.VaultState.pending_withdrawal_requests": + value := x.PendingWithdrawalRequests + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultState 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_VaultState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultState.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultState.total_accrued_yield": + x.TotalAccruedYield = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultState.total_nav": + x.TotalNav = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultState.total_users": + x.TotalUsers = value.Uint() + case "noble.dollar.vaults.v2.VaultState.deposits_enabled": + x.DepositsEnabled = value.Bool() + case "noble.dollar.vaults.v2.VaultState.withdrawals_enabled": + x.WithdrawalsEnabled = value.Bool() + case "noble.dollar.vaults.v2.VaultState.last_nav_update": + x.LastNavUpdate = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.VaultState.total_amount_pending_withdrawal": + x.TotalAmountPendingWithdrawal = value.Interface().(string) + case "noble.dollar.vaults.v2.VaultState.pending_withdrawal_requests": + x.PendingWithdrawalRequests = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultState 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_VaultState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultState.last_nav_update": + if x.LastNavUpdate == nil { + x.LastNavUpdate = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.LastNavUpdate.ProtoReflect()) + case "noble.dollar.vaults.v2.VaultState.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.total_accrued_yield": + panic(fmt.Errorf("field total_accrued_yield of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.total_nav": + panic(fmt.Errorf("field total_nav of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.total_users": + panic(fmt.Errorf("field total_users of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.deposits_enabled": + panic(fmt.Errorf("field deposits_enabled of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.withdrawals_enabled": + panic(fmt.Errorf("field withdrawals_enabled of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.total_amount_pending_withdrawal": + panic(fmt.Errorf("field total_amount_pending_withdrawal of message noble.dollar.vaults.v2.VaultState is not mutable")) + case "noble.dollar.vaults.v2.VaultState.pending_withdrawal_requests": + panic(fmt.Errorf("field pending_withdrawal_requests of message noble.dollar.vaults.v2.VaultState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultState 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_VaultState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.VaultState.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultState.total_accrued_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultState.total_nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultState.total_users": + return protoreflect.ValueOfUint64(uint64(0)) + case "noble.dollar.vaults.v2.VaultState.deposits_enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.VaultState.withdrawals_enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.VaultState.last_nav_update": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.VaultState.total_amount_pending_withdrawal": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.VaultState.pending_withdrawal_requests": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.VaultState")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.VaultState 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_VaultState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.VaultState", 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_VaultState) 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_VaultState) 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_VaultState) 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_VaultState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*VaultState) + 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.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAccruedYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalNav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TotalUsers != 0 { + n += 1 + runtime.Sov(uint64(x.TotalUsers)) + } + if x.DepositsEnabled { + n += 2 + } + if x.WithdrawalsEnabled { + n += 2 + } + if x.LastNavUpdate != nil { + l = options.Size(x.LastNavUpdate) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAmountPendingWithdrawal) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PendingWithdrawalRequests != 0 { + n += 1 + runtime.Sov(uint64(x.PendingWithdrawalRequests)) + } + 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().(*VaultState) + 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.PendingWithdrawalRequests != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.PendingWithdrawalRequests)) + i-- + dAtA[i] = 0x48 + } + if len(x.TotalAmountPendingWithdrawal) > 0 { + i -= len(x.TotalAmountPendingWithdrawal) + copy(dAtA[i:], x.TotalAmountPendingWithdrawal) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountPendingWithdrawal))) + i-- + dAtA[i] = 0x42 + } + if x.LastNavUpdate != nil { + encoded, err := options.Marshal(x.LastNavUpdate) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + if x.WithdrawalsEnabled { + i-- + if x.WithdrawalsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if x.DepositsEnabled { + i-- + if x.DepositsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if x.TotalUsers != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TotalUsers)) + i-- + dAtA[i] = 0x20 + } + if len(x.TotalNav) > 0 { + i -= len(x.TotalNav) + copy(dAtA[i:], x.TotalNav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalNav))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalAccruedYield) > 0 { + i -= len(x.TotalAccruedYield) + copy(dAtA[i:], x.TotalAccruedYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAccruedYield))) + i-- + dAtA[i] = 0x12 + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + 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().(*VaultState) + 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: VaultState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: VaultState: 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 TotalDeposits", 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.TotalDeposits = 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 TotalAccruedYield", 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.TotalAccruedYield = 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 TotalNav", 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.TotalNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalUsers", wireType) + } + x.TotalUsers = 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.TotalUsers |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DepositsEnabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.DepositsEnabled = bool(v != 0) + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WithdrawalsEnabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.WithdrawalsEnabled = bool(v != 0) + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastNavUpdate", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.LastNavUpdate == nil { + x.LastNavUpdate = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastNavUpdate); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalAmountPendingWithdrawal", 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.TotalAmountPendingWithdrawal = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PendingWithdrawalRequests", wireType) + } + x.PendingWithdrawalRequests = 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.PendingWithdrawalRequests |= int32(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, + } +} + +var ( + md_YieldCalculation protoreflect.MessageDescriptor + fd_YieldCalculation_total_deposits protoreflect.FieldDescriptor + fd_YieldCalculation_total_yield protoreflect.FieldDescriptor + fd_YieldCalculation_yield_rate protoreflect.FieldDescriptor + fd_YieldCalculation_calculation_time protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_YieldCalculation = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("YieldCalculation") + fd_YieldCalculation_total_deposits = md_YieldCalculation.Fields().ByName("total_deposits") + fd_YieldCalculation_total_yield = md_YieldCalculation.Fields().ByName("total_yield") + fd_YieldCalculation_yield_rate = md_YieldCalculation.Fields().ByName("yield_rate") + fd_YieldCalculation_calculation_time = md_YieldCalculation.Fields().ByName("calculation_time") +} + +var _ protoreflect.Message = (*fastReflection_YieldCalculation)(nil) + +type fastReflection_YieldCalculation YieldCalculation + +func (x *YieldCalculation) ProtoReflect() protoreflect.Message { + return (*fastReflection_YieldCalculation)(x) +} + +func (x *YieldCalculation) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[3] + 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_YieldCalculation_messageType fastReflection_YieldCalculation_messageType +var _ protoreflect.MessageType = fastReflection_YieldCalculation_messageType{} + +type fastReflection_YieldCalculation_messageType struct{} + +func (x fastReflection_YieldCalculation_messageType) Zero() protoreflect.Message { + return (*fastReflection_YieldCalculation)(nil) +} +func (x fastReflection_YieldCalculation_messageType) New() protoreflect.Message { + return new(fastReflection_YieldCalculation) +} +func (x fastReflection_YieldCalculation_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_YieldCalculation +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_YieldCalculation) Descriptor() protoreflect.MessageDescriptor { + return md_YieldCalculation +} + +// 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_YieldCalculation) Type() protoreflect.MessageType { + return _fastReflection_YieldCalculation_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_YieldCalculation) New() protoreflect.Message { + return new(fastReflection_YieldCalculation) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_YieldCalculation) Interface() protoreflect.ProtoMessage { + return (*YieldCalculation)(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_YieldCalculation) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalDeposits != "" { + value := protoreflect.ValueOfString(x.TotalDeposits) + if !f(fd_YieldCalculation_total_deposits, value) { + return + } + } + if x.TotalYield != "" { + value := protoreflect.ValueOfString(x.TotalYield) + if !f(fd_YieldCalculation_total_yield, value) { + return + } + } + if x.YieldRate != "" { + value := protoreflect.ValueOfString(x.YieldRate) + if !f(fd_YieldCalculation_yield_rate, value) { + return + } + } + if x.CalculationTime != nil { + value := protoreflect.ValueOfMessage(x.CalculationTime.ProtoReflect()) + if !f(fd_YieldCalculation_calculation_time, 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_YieldCalculation) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldCalculation.total_deposits": + return x.TotalDeposits != "" + case "noble.dollar.vaults.v2.YieldCalculation.total_yield": + return x.TotalYield != "" + case "noble.dollar.vaults.v2.YieldCalculation.yield_rate": + return x.YieldRate != "" + case "noble.dollar.vaults.v2.YieldCalculation.calculation_time": + return x.CalculationTime != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldCalculation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldCalculation 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_YieldCalculation) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldCalculation.total_deposits": + x.TotalDeposits = "" + case "noble.dollar.vaults.v2.YieldCalculation.total_yield": + x.TotalYield = "" + case "noble.dollar.vaults.v2.YieldCalculation.yield_rate": + x.YieldRate = "" + case "noble.dollar.vaults.v2.YieldCalculation.calculation_time": + x.CalculationTime = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldCalculation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldCalculation 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_YieldCalculation) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.YieldCalculation.total_deposits": + value := x.TotalDeposits + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldCalculation.total_yield": + value := x.TotalYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldCalculation.yield_rate": + value := x.YieldRate + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldCalculation.calculation_time": + value := x.CalculationTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldCalculation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldCalculation 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_YieldCalculation) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldCalculation.total_deposits": + x.TotalDeposits = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldCalculation.total_yield": + x.TotalYield = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldCalculation.yield_rate": + x.YieldRate = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldCalculation.calculation_time": + x.CalculationTime = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldCalculation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldCalculation 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_YieldCalculation) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldCalculation.calculation_time": + if x.CalculationTime == nil { + x.CalculationTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.CalculationTime.ProtoReflect()) + case "noble.dollar.vaults.v2.YieldCalculation.total_deposits": + panic(fmt.Errorf("field total_deposits of message noble.dollar.vaults.v2.YieldCalculation is not mutable")) + case "noble.dollar.vaults.v2.YieldCalculation.total_yield": + panic(fmt.Errorf("field total_yield of message noble.dollar.vaults.v2.YieldCalculation is not mutable")) + case "noble.dollar.vaults.v2.YieldCalculation.yield_rate": + panic(fmt.Errorf("field yield_rate of message noble.dollar.vaults.v2.YieldCalculation is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldCalculation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldCalculation 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_YieldCalculation) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldCalculation.total_deposits": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldCalculation.total_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldCalculation.yield_rate": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldCalculation.calculation_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldCalculation")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldCalculation 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_YieldCalculation) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.YieldCalculation", 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_YieldCalculation) 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_YieldCalculation) 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_YieldCalculation) 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_YieldCalculation) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*YieldCalculation) + 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.TotalDeposits) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.CalculationTime != nil { + l = options.Size(x.CalculationTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*YieldCalculation) + 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.CalculationTime != nil { + encoded, err := options.Marshal(x.CalculationTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.YieldRate) > 0 { + i -= len(x.YieldRate) + copy(dAtA[i:], x.YieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldRate))) + i-- + dAtA[i] = 0x1a + } + if len(x.TotalYield) > 0 { + i -= len(x.TotalYield) + copy(dAtA[i:], x.TotalYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalYield))) + i-- + dAtA[i] = 0x12 + } + if len(x.TotalDeposits) > 0 { + i -= len(x.TotalDeposits) + copy(dAtA[i:], x.TotalDeposits) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalDeposits))) + 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().(*YieldCalculation) + 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: YieldCalculation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: YieldCalculation: 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 TotalDeposits", 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.TotalDeposits = 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 TotalYield", 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.TotalYield = 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 YieldRate", 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.YieldRate = 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 CalculationTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.CalculationTime == nil { + x.CalculationTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CalculationTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + 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, + } +} + +var ( + md_DepositResult protoreflect.MessageDescriptor + fd_DepositResult_amount_deposited protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_DepositResult = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("DepositResult") + fd_DepositResult_amount_deposited = md_DepositResult.Fields().ByName("amount_deposited") +} + +var _ protoreflect.Message = (*fastReflection_DepositResult)(nil) + +type fastReflection_DepositResult DepositResult + +func (x *DepositResult) ProtoReflect() protoreflect.Message { + return (*fastReflection_DepositResult)(x) +} + +func (x *DepositResult) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[4] + 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_DepositResult_messageType fastReflection_DepositResult_messageType +var _ protoreflect.MessageType = fastReflection_DepositResult_messageType{} + +type fastReflection_DepositResult_messageType struct{} + +func (x fastReflection_DepositResult_messageType) Zero() protoreflect.Message { + return (*fastReflection_DepositResult)(nil) +} +func (x fastReflection_DepositResult_messageType) New() protoreflect.Message { + return new(fastReflection_DepositResult) +} +func (x fastReflection_DepositResult_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DepositResult +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DepositResult) Descriptor() protoreflect.MessageDescriptor { + return md_DepositResult +} + +// 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_DepositResult) Type() protoreflect.MessageType { + return _fastReflection_DepositResult_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DepositResult) New() protoreflect.Message { + return new(fastReflection_DepositResult) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DepositResult) Interface() protoreflect.ProtoMessage { + return (*DepositResult)(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_DepositResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.AmountDeposited != "" { + value := protoreflect.ValueOfString(x.AmountDeposited) + if !f(fd_DepositResult_amount_deposited, 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_DepositResult) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositResult.amount_deposited": + return x.AmountDeposited != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositResult 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_DepositResult) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositResult.amount_deposited": + x.AmountDeposited = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositResult 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_DepositResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.DepositResult.amount_deposited": + value := x.AmountDeposited + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositResult 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_DepositResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositResult.amount_deposited": + x.AmountDeposited = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositResult 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_DepositResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositResult.amount_deposited": + panic(fmt.Errorf("field amount_deposited of message noble.dollar.vaults.v2.DepositResult is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositResult 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_DepositResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositResult.amount_deposited": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositResult 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_DepositResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.DepositResult", 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_DepositResult) 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_DepositResult) 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_DepositResult) 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_DepositResult) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DepositResult) + 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.AmountDeposited) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*DepositResult) + 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 len(x.AmountDeposited) > 0 { + i -= len(x.AmountDeposited) + copy(dAtA[i:], x.AmountDeposited) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AmountDeposited))) + 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().(*DepositResult) + 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: DepositResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DepositResult: 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 AmountDeposited", 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.AmountDeposited = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_WithdrawalResult protoreflect.MessageDescriptor + fd_WithdrawalResult_principal_withdrawn protoreflect.FieldDescriptor + fd_WithdrawalResult_yield_withdrawn protoreflect.FieldDescriptor + fd_WithdrawalResult_fees_paid protoreflect.FieldDescriptor + fd_WithdrawalResult_total_amount_received protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_WithdrawalResult = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("WithdrawalResult") + fd_WithdrawalResult_principal_withdrawn = md_WithdrawalResult.Fields().ByName("principal_withdrawn") + fd_WithdrawalResult_yield_withdrawn = md_WithdrawalResult.Fields().ByName("yield_withdrawn") + fd_WithdrawalResult_fees_paid = md_WithdrawalResult.Fields().ByName("fees_paid") + fd_WithdrawalResult_total_amount_received = md_WithdrawalResult.Fields().ByName("total_amount_received") +} + +var _ protoreflect.Message = (*fastReflection_WithdrawalResult)(nil) + +type fastReflection_WithdrawalResult WithdrawalResult + +func (x *WithdrawalResult) ProtoReflect() protoreflect.Message { + return (*fastReflection_WithdrawalResult)(x) +} + +func (x *WithdrawalResult) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[5] + 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_WithdrawalResult_messageType fastReflection_WithdrawalResult_messageType +var _ protoreflect.MessageType = fastReflection_WithdrawalResult_messageType{} + +type fastReflection_WithdrawalResult_messageType struct{} + +func (x fastReflection_WithdrawalResult_messageType) Zero() protoreflect.Message { + return (*fastReflection_WithdrawalResult)(nil) +} +func (x fastReflection_WithdrawalResult_messageType) New() protoreflect.Message { + return new(fastReflection_WithdrawalResult) +} +func (x fastReflection_WithdrawalResult_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalResult +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WithdrawalResult) Descriptor() protoreflect.MessageDescriptor { + return md_WithdrawalResult +} + +// 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_WithdrawalResult) Type() protoreflect.MessageType { + return _fastReflection_WithdrawalResult_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WithdrawalResult) New() protoreflect.Message { + return new(fastReflection_WithdrawalResult) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WithdrawalResult) Interface() protoreflect.ProtoMessage { + return (*WithdrawalResult)(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_WithdrawalResult) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PrincipalWithdrawn != "" { + value := protoreflect.ValueOfString(x.PrincipalWithdrawn) + if !f(fd_WithdrawalResult_principal_withdrawn, value) { + return + } + } + if x.YieldWithdrawn != "" { + value := protoreflect.ValueOfString(x.YieldWithdrawn) + if !f(fd_WithdrawalResult_yield_withdrawn, value) { + return + } + } + if x.FeesPaid != "" { + value := protoreflect.ValueOfString(x.FeesPaid) + if !f(fd_WithdrawalResult_fees_paid, value) { + return + } + } + if x.TotalAmountReceived != "" { + value := protoreflect.ValueOfString(x.TotalAmountReceived) + if !f(fd_WithdrawalResult_total_amount_received, 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_WithdrawalResult) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalResult.principal_withdrawn": + return x.PrincipalWithdrawn != "" + case "noble.dollar.vaults.v2.WithdrawalResult.yield_withdrawn": + return x.YieldWithdrawn != "" + case "noble.dollar.vaults.v2.WithdrawalResult.fees_paid": + return x.FeesPaid != "" + case "noble.dollar.vaults.v2.WithdrawalResult.total_amount_received": + return x.TotalAmountReceived != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalResult 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_WithdrawalResult) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalResult.principal_withdrawn": + x.PrincipalWithdrawn = "" + case "noble.dollar.vaults.v2.WithdrawalResult.yield_withdrawn": + x.YieldWithdrawn = "" + case "noble.dollar.vaults.v2.WithdrawalResult.fees_paid": + x.FeesPaid = "" + case "noble.dollar.vaults.v2.WithdrawalResult.total_amount_received": + x.TotalAmountReceived = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalResult 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_WithdrawalResult) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.WithdrawalResult.principal_withdrawn": + value := x.PrincipalWithdrawn + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalResult.yield_withdrawn": + value := x.YieldWithdrawn + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalResult.fees_paid": + value := x.FeesPaid + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.WithdrawalResult.total_amount_received": + value := x.TotalAmountReceived + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalResult 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_WithdrawalResult) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalResult.principal_withdrawn": + x.PrincipalWithdrawn = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalResult.yield_withdrawn": + x.YieldWithdrawn = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalResult.fees_paid": + x.FeesPaid = value.Interface().(string) + case "noble.dollar.vaults.v2.WithdrawalResult.total_amount_received": + x.TotalAmountReceived = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalResult 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_WithdrawalResult) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalResult.principal_withdrawn": + panic(fmt.Errorf("field principal_withdrawn of message noble.dollar.vaults.v2.WithdrawalResult is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalResult.yield_withdrawn": + panic(fmt.Errorf("field yield_withdrawn of message noble.dollar.vaults.v2.WithdrawalResult is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalResult.fees_paid": + panic(fmt.Errorf("field fees_paid of message noble.dollar.vaults.v2.WithdrawalResult is not mutable")) + case "noble.dollar.vaults.v2.WithdrawalResult.total_amount_received": + panic(fmt.Errorf("field total_amount_received of message noble.dollar.vaults.v2.WithdrawalResult is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalResult 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_WithdrawalResult) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.WithdrawalResult.principal_withdrawn": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalResult.yield_withdrawn": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalResult.fees_paid": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.WithdrawalResult.total_amount_received": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.WithdrawalResult")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.WithdrawalResult 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_WithdrawalResult) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.WithdrawalResult", 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_WithdrawalResult) 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_WithdrawalResult) 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_WithdrawalResult) 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_WithdrawalResult) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WithdrawalResult) + 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.PrincipalWithdrawn) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldWithdrawn) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.FeesPaid) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.TotalAmountReceived) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*WithdrawalResult) + 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 len(x.TotalAmountReceived) > 0 { + i -= len(x.TotalAmountReceived) + copy(dAtA[i:], x.TotalAmountReceived) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalAmountReceived))) + i-- + dAtA[i] = 0x22 + } + if len(x.FeesPaid) > 0 { + i -= len(x.FeesPaid) + copy(dAtA[i:], x.FeesPaid) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeesPaid))) + i-- + dAtA[i] = 0x1a + } + if len(x.YieldWithdrawn) > 0 { + i -= len(x.YieldWithdrawn) + copy(dAtA[i:], x.YieldWithdrawn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldWithdrawn))) + i-- + dAtA[i] = 0x12 + } + if len(x.PrincipalWithdrawn) > 0 { + i -= len(x.PrincipalWithdrawn) + copy(dAtA[i:], x.PrincipalWithdrawn) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PrincipalWithdrawn))) + 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().(*WithdrawalResult) + 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: WithdrawalResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithdrawalResult: 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 PrincipalWithdrawn", 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.PrincipalWithdrawn = 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 YieldWithdrawn", 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.YieldWithdrawn = 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 FeesPaid", 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.FeesPaid = 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 TotalAmountReceived", 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.TotalAmountReceived = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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, + } +} + +var ( + md_YieldDistribution protoreflect.MessageDescriptor + fd_YieldDistribution_total_yield protoreflect.FieldDescriptor + fd_YieldDistribution_yield_rate protoreflect.FieldDescriptor + fd_YieldDistribution_distribution_time protoreflect.FieldDescriptor + fd_YieldDistribution_eligible_depositors protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_YieldDistribution = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("YieldDistribution") + fd_YieldDistribution_total_yield = md_YieldDistribution.Fields().ByName("total_yield") + fd_YieldDistribution_yield_rate = md_YieldDistribution.Fields().ByName("yield_rate") + fd_YieldDistribution_distribution_time = md_YieldDistribution.Fields().ByName("distribution_time") + fd_YieldDistribution_eligible_depositors = md_YieldDistribution.Fields().ByName("eligible_depositors") +} + +var _ protoreflect.Message = (*fastReflection_YieldDistribution)(nil) + +type fastReflection_YieldDistribution YieldDistribution + +func (x *YieldDistribution) ProtoReflect() protoreflect.Message { + return (*fastReflection_YieldDistribution)(x) +} + +func (x *YieldDistribution) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[6] + 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_YieldDistribution_messageType fastReflection_YieldDistribution_messageType +var _ protoreflect.MessageType = fastReflection_YieldDistribution_messageType{} + +type fastReflection_YieldDistribution_messageType struct{} + +func (x fastReflection_YieldDistribution_messageType) Zero() protoreflect.Message { + return (*fastReflection_YieldDistribution)(nil) +} +func (x fastReflection_YieldDistribution_messageType) New() protoreflect.Message { + return new(fastReflection_YieldDistribution) +} +func (x fastReflection_YieldDistribution_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_YieldDistribution +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_YieldDistribution) Descriptor() protoreflect.MessageDescriptor { + return md_YieldDistribution +} + +// 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_YieldDistribution) Type() protoreflect.MessageType { + return _fastReflection_YieldDistribution_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_YieldDistribution) New() protoreflect.Message { + return new(fastReflection_YieldDistribution) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_YieldDistribution) Interface() protoreflect.ProtoMessage { + return (*YieldDistribution)(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_YieldDistribution) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalYield != "" { + value := protoreflect.ValueOfString(x.TotalYield) + if !f(fd_YieldDistribution_total_yield, value) { + return + } + } + if x.YieldRate != "" { + value := protoreflect.ValueOfString(x.YieldRate) + if !f(fd_YieldDistribution_yield_rate, value) { + return + } + } + if x.DistributionTime != nil { + value := protoreflect.ValueOfMessage(x.DistributionTime.ProtoReflect()) + if !f(fd_YieldDistribution_distribution_time, value) { + return + } + } + if x.EligibleDepositors != uint64(0) { + value := protoreflect.ValueOfUint64(x.EligibleDepositors) + if !f(fd_YieldDistribution_eligible_depositors, 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_YieldDistribution) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDistribution.total_yield": + return x.TotalYield != "" + case "noble.dollar.vaults.v2.YieldDistribution.yield_rate": + return x.YieldRate != "" + case "noble.dollar.vaults.v2.YieldDistribution.distribution_time": + return x.DistributionTime != nil + case "noble.dollar.vaults.v2.YieldDistribution.eligible_depositors": + return x.EligibleDepositors != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDistribution")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDistribution 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_YieldDistribution) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDistribution.total_yield": + x.TotalYield = "" + case "noble.dollar.vaults.v2.YieldDistribution.yield_rate": + x.YieldRate = "" + case "noble.dollar.vaults.v2.YieldDistribution.distribution_time": + x.DistributionTime = nil + case "noble.dollar.vaults.v2.YieldDistribution.eligible_depositors": + x.EligibleDepositors = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDistribution")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDistribution 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_YieldDistribution) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.YieldDistribution.total_yield": + value := x.TotalYield + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldDistribution.yield_rate": + value := x.YieldRate + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.YieldDistribution.distribution_time": + value := x.DistributionTime + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.YieldDistribution.eligible_depositors": + value := x.EligibleDepositors + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDistribution")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDistribution 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_YieldDistribution) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDistribution.total_yield": + x.TotalYield = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldDistribution.yield_rate": + x.YieldRate = value.Interface().(string) + case "noble.dollar.vaults.v2.YieldDistribution.distribution_time": + x.DistributionTime = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.YieldDistribution.eligible_depositors": + x.EligibleDepositors = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDistribution")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDistribution 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_YieldDistribution) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDistribution.distribution_time": + if x.DistributionTime == nil { + x.DistributionTime = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.DistributionTime.ProtoReflect()) + case "noble.dollar.vaults.v2.YieldDistribution.total_yield": + panic(fmt.Errorf("field total_yield of message noble.dollar.vaults.v2.YieldDistribution is not mutable")) + case "noble.dollar.vaults.v2.YieldDistribution.yield_rate": + panic(fmt.Errorf("field yield_rate of message noble.dollar.vaults.v2.YieldDistribution is not mutable")) + case "noble.dollar.vaults.v2.YieldDistribution.eligible_depositors": + panic(fmt.Errorf("field eligible_depositors of message noble.dollar.vaults.v2.YieldDistribution is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDistribution")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDistribution 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_YieldDistribution) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.YieldDistribution.total_yield": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldDistribution.yield_rate": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.YieldDistribution.distribution_time": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.YieldDistribution.eligible_depositors": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.YieldDistribution")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.YieldDistribution 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_YieldDistribution) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.YieldDistribution", 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_YieldDistribution) 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_YieldDistribution) 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_YieldDistribution) 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_YieldDistribution) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*YieldDistribution) + 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.TotalYield) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.YieldRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DistributionTime != nil { + l = options.Size(x.DistributionTime) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EligibleDepositors != 0 { + n += 1 + runtime.Sov(uint64(x.EligibleDepositors)) + } + 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().(*YieldDistribution) + 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.EligibleDepositors != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EligibleDepositors)) + i-- + dAtA[i] = 0x20 + } + if x.DistributionTime != nil { + encoded, err := options.Marshal(x.DistributionTime) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.YieldRate) > 0 { + i -= len(x.YieldRate) + copy(dAtA[i:], x.YieldRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.YieldRate))) + i-- + dAtA[i] = 0x12 + } + if len(x.TotalYield) > 0 { + i -= len(x.TotalYield) + copy(dAtA[i:], x.TotalYield) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalYield))) + 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().(*YieldDistribution) + 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: YieldDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: YieldDistribution: 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 TotalYield", 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.TotalYield = 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 YieldRate", 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.YieldRate = 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 DistributionTime", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.DistributionTime == nil { + x.DistributionTime = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DistributionTime); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EligibleDepositors", wireType) + } + x.EligibleDepositors = 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.EligibleDepositors |= 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, + } +} + +var ( + md_DepositLimit protoreflect.MessageDescriptor + fd_DepositLimit_max_user_deposit_per_window protoreflect.FieldDescriptor + fd_DepositLimit_max_block_deposit_volume protoreflect.FieldDescriptor + fd_DepositLimit_global_deposit_cap protoreflect.FieldDescriptor + fd_DepositLimit_deposit_cooldown_blocks protoreflect.FieldDescriptor + fd_DepositLimit_velocity_window_blocks protoreflect.FieldDescriptor + fd_DepositLimit_max_deposits_per_window protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_DepositLimit = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("DepositLimit") + fd_DepositLimit_max_user_deposit_per_window = md_DepositLimit.Fields().ByName("max_user_deposit_per_window") + fd_DepositLimit_max_block_deposit_volume = md_DepositLimit.Fields().ByName("max_block_deposit_volume") + fd_DepositLimit_global_deposit_cap = md_DepositLimit.Fields().ByName("global_deposit_cap") + fd_DepositLimit_deposit_cooldown_blocks = md_DepositLimit.Fields().ByName("deposit_cooldown_blocks") + fd_DepositLimit_velocity_window_blocks = md_DepositLimit.Fields().ByName("velocity_window_blocks") + fd_DepositLimit_max_deposits_per_window = md_DepositLimit.Fields().ByName("max_deposits_per_window") +} + +var _ protoreflect.Message = (*fastReflection_DepositLimit)(nil) + +type fastReflection_DepositLimit DepositLimit + +func (x *DepositLimit) ProtoReflect() protoreflect.Message { + return (*fastReflection_DepositLimit)(x) +} + +func (x *DepositLimit) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[7] + 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_DepositLimit_messageType fastReflection_DepositLimit_messageType +var _ protoreflect.MessageType = fastReflection_DepositLimit_messageType{} + +type fastReflection_DepositLimit_messageType struct{} + +func (x fastReflection_DepositLimit_messageType) Zero() protoreflect.Message { + return (*fastReflection_DepositLimit)(nil) +} +func (x fastReflection_DepositLimit_messageType) New() protoreflect.Message { + return new(fastReflection_DepositLimit) +} +func (x fastReflection_DepositLimit_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DepositLimit +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DepositLimit) Descriptor() protoreflect.MessageDescriptor { + return md_DepositLimit +} + +// 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_DepositLimit) Type() protoreflect.MessageType { + return _fastReflection_DepositLimit_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DepositLimit) New() protoreflect.Message { + return new(fastReflection_DepositLimit) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DepositLimit) Interface() protoreflect.ProtoMessage { + return (*DepositLimit)(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_DepositLimit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.MaxUserDepositPerWindow != "" { + value := protoreflect.ValueOfString(x.MaxUserDepositPerWindow) + if !f(fd_DepositLimit_max_user_deposit_per_window, value) { + return + } + } + if x.MaxBlockDepositVolume != "" { + value := protoreflect.ValueOfString(x.MaxBlockDepositVolume) + if !f(fd_DepositLimit_max_block_deposit_volume, value) { + return + } + } + if x.GlobalDepositCap != "" { + value := protoreflect.ValueOfString(x.GlobalDepositCap) + if !f(fd_DepositLimit_global_deposit_cap, value) { + return + } + } + if x.DepositCooldownBlocks != int64(0) { + value := protoreflect.ValueOfInt64(x.DepositCooldownBlocks) + if !f(fd_DepositLimit_deposit_cooldown_blocks, value) { + return + } + } + if x.VelocityWindowBlocks != int64(0) { + value := protoreflect.ValueOfInt64(x.VelocityWindowBlocks) + if !f(fd_DepositLimit_velocity_window_blocks, value) { + return + } + } + if x.MaxDepositsPerWindow != uint32(0) { + value := protoreflect.ValueOfUint32(x.MaxDepositsPerWindow) + if !f(fd_DepositLimit_max_deposits_per_window, 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_DepositLimit) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositLimit.max_user_deposit_per_window": + return x.MaxUserDepositPerWindow != "" + case "noble.dollar.vaults.v2.DepositLimit.max_block_deposit_volume": + return x.MaxBlockDepositVolume != "" + case "noble.dollar.vaults.v2.DepositLimit.global_deposit_cap": + return x.GlobalDepositCap != "" + case "noble.dollar.vaults.v2.DepositLimit.deposit_cooldown_blocks": + return x.DepositCooldownBlocks != int64(0) + case "noble.dollar.vaults.v2.DepositLimit.velocity_window_blocks": + return x.VelocityWindowBlocks != int64(0) + case "noble.dollar.vaults.v2.DepositLimit.max_deposits_per_window": + return x.MaxDepositsPerWindow != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositLimit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositLimit 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_DepositLimit) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositLimit.max_user_deposit_per_window": + x.MaxUserDepositPerWindow = "" + case "noble.dollar.vaults.v2.DepositLimit.max_block_deposit_volume": + x.MaxBlockDepositVolume = "" + case "noble.dollar.vaults.v2.DepositLimit.global_deposit_cap": + x.GlobalDepositCap = "" + case "noble.dollar.vaults.v2.DepositLimit.deposit_cooldown_blocks": + x.DepositCooldownBlocks = int64(0) + case "noble.dollar.vaults.v2.DepositLimit.velocity_window_blocks": + x.VelocityWindowBlocks = int64(0) + case "noble.dollar.vaults.v2.DepositLimit.max_deposits_per_window": + x.MaxDepositsPerWindow = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositLimit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositLimit 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_DepositLimit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.DepositLimit.max_user_deposit_per_window": + value := x.MaxUserDepositPerWindow + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.DepositLimit.max_block_deposit_volume": + value := x.MaxBlockDepositVolume + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.DepositLimit.global_deposit_cap": + value := x.GlobalDepositCap + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.DepositLimit.deposit_cooldown_blocks": + value := x.DepositCooldownBlocks + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.DepositLimit.velocity_window_blocks": + value := x.VelocityWindowBlocks + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.DepositLimit.max_deposits_per_window": + value := x.MaxDepositsPerWindow + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositLimit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositLimit 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_DepositLimit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositLimit.max_user_deposit_per_window": + x.MaxUserDepositPerWindow = value.Interface().(string) + case "noble.dollar.vaults.v2.DepositLimit.max_block_deposit_volume": + x.MaxBlockDepositVolume = value.Interface().(string) + case "noble.dollar.vaults.v2.DepositLimit.global_deposit_cap": + x.GlobalDepositCap = value.Interface().(string) + case "noble.dollar.vaults.v2.DepositLimit.deposit_cooldown_blocks": + x.DepositCooldownBlocks = value.Int() + case "noble.dollar.vaults.v2.DepositLimit.velocity_window_blocks": + x.VelocityWindowBlocks = value.Int() + case "noble.dollar.vaults.v2.DepositLimit.max_deposits_per_window": + x.MaxDepositsPerWindow = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositLimit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositLimit 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_DepositLimit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositLimit.max_user_deposit_per_window": + panic(fmt.Errorf("field max_user_deposit_per_window of message noble.dollar.vaults.v2.DepositLimit is not mutable")) + case "noble.dollar.vaults.v2.DepositLimit.max_block_deposit_volume": + panic(fmt.Errorf("field max_block_deposit_volume of message noble.dollar.vaults.v2.DepositLimit is not mutable")) + case "noble.dollar.vaults.v2.DepositLimit.global_deposit_cap": + panic(fmt.Errorf("field global_deposit_cap of message noble.dollar.vaults.v2.DepositLimit is not mutable")) + case "noble.dollar.vaults.v2.DepositLimit.deposit_cooldown_blocks": + panic(fmt.Errorf("field deposit_cooldown_blocks of message noble.dollar.vaults.v2.DepositLimit is not mutable")) + case "noble.dollar.vaults.v2.DepositLimit.velocity_window_blocks": + panic(fmt.Errorf("field velocity_window_blocks of message noble.dollar.vaults.v2.DepositLimit is not mutable")) + case "noble.dollar.vaults.v2.DepositLimit.max_deposits_per_window": + panic(fmt.Errorf("field max_deposits_per_window of message noble.dollar.vaults.v2.DepositLimit is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositLimit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositLimit 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_DepositLimit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositLimit.max_user_deposit_per_window": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.DepositLimit.max_block_deposit_volume": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.DepositLimit.global_deposit_cap": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.DepositLimit.deposit_cooldown_blocks": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.DepositLimit.velocity_window_blocks": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.DepositLimit.max_deposits_per_window": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositLimit")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositLimit 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_DepositLimit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.DepositLimit", 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_DepositLimit) 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_DepositLimit) 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_DepositLimit) 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_DepositLimit) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DepositLimit) + 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.MaxUserDepositPerWindow) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MaxBlockDepositVolume) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.GlobalDepositCap) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DepositCooldownBlocks != 0 { + n += 1 + runtime.Sov(uint64(x.DepositCooldownBlocks)) + } + if x.VelocityWindowBlocks != 0 { + n += 1 + runtime.Sov(uint64(x.VelocityWindowBlocks)) + } + if x.MaxDepositsPerWindow != 0 { + n += 1 + runtime.Sov(uint64(x.MaxDepositsPerWindow)) + } + 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().(*DepositLimit) + 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.MaxDepositsPerWindow != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxDepositsPerWindow)) + i-- + dAtA[i] = 0x30 + } + if x.VelocityWindowBlocks != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.VelocityWindowBlocks)) + i-- + dAtA[i] = 0x28 + } + if x.DepositCooldownBlocks != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DepositCooldownBlocks)) + i-- + dAtA[i] = 0x20 + } + if len(x.GlobalDepositCap) > 0 { + i -= len(x.GlobalDepositCap) + copy(dAtA[i:], x.GlobalDepositCap) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GlobalDepositCap))) + i-- + dAtA[i] = 0x1a + } + if len(x.MaxBlockDepositVolume) > 0 { + i -= len(x.MaxBlockDepositVolume) + copy(dAtA[i:], x.MaxBlockDepositVolume) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxBlockDepositVolume))) + i-- + dAtA[i] = 0x12 + } + if len(x.MaxUserDepositPerWindow) > 0 { + i -= len(x.MaxUserDepositPerWindow) + copy(dAtA[i:], x.MaxUserDepositPerWindow) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxUserDepositPerWindow))) + 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().(*DepositLimit) + 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: DepositLimit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DepositLimit: 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 MaxUserDepositPerWindow", 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.MaxUserDepositPerWindow = 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 MaxBlockDepositVolume", 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.MaxBlockDepositVolume = 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 GlobalDepositCap", 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.GlobalDepositCap = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DepositCooldownBlocks", wireType) + } + x.DepositCooldownBlocks = 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.DepositCooldownBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VelocityWindowBlocks", wireType) + } + x.VelocityWindowBlocks = 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.VelocityWindowBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxDepositsPerWindow", wireType) + } + x.MaxDepositsPerWindow = 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.MaxDepositsPerWindow |= uint32(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, + } +} + +var ( + md_DepositVelocity protoreflect.MessageDescriptor + fd_DepositVelocity_last_deposit_block protoreflect.FieldDescriptor + fd_DepositVelocity_recent_deposit_count protoreflect.FieldDescriptor + fd_DepositVelocity_recent_deposit_volume protoreflect.FieldDescriptor + fd_DepositVelocity_time_window_blocks protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_DepositVelocity = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("DepositVelocity") + fd_DepositVelocity_last_deposit_block = md_DepositVelocity.Fields().ByName("last_deposit_block") + fd_DepositVelocity_recent_deposit_count = md_DepositVelocity.Fields().ByName("recent_deposit_count") + fd_DepositVelocity_recent_deposit_volume = md_DepositVelocity.Fields().ByName("recent_deposit_volume") + fd_DepositVelocity_time_window_blocks = md_DepositVelocity.Fields().ByName("time_window_blocks") +} + +var _ protoreflect.Message = (*fastReflection_DepositVelocity)(nil) + +type fastReflection_DepositVelocity DepositVelocity + +func (x *DepositVelocity) ProtoReflect() protoreflect.Message { + return (*fastReflection_DepositVelocity)(x) +} + +func (x *DepositVelocity) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[8] + 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_DepositVelocity_messageType fastReflection_DepositVelocity_messageType +var _ protoreflect.MessageType = fastReflection_DepositVelocity_messageType{} + +type fastReflection_DepositVelocity_messageType struct{} + +func (x fastReflection_DepositVelocity_messageType) Zero() protoreflect.Message { + return (*fastReflection_DepositVelocity)(nil) +} +func (x fastReflection_DepositVelocity_messageType) New() protoreflect.Message { + return new(fastReflection_DepositVelocity) +} +func (x fastReflection_DepositVelocity_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DepositVelocity +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DepositVelocity) Descriptor() protoreflect.MessageDescriptor { + return md_DepositVelocity +} + +// 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_DepositVelocity) Type() protoreflect.MessageType { + return _fastReflection_DepositVelocity_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DepositVelocity) New() protoreflect.Message { + return new(fastReflection_DepositVelocity) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DepositVelocity) Interface() protoreflect.ProtoMessage { + return (*DepositVelocity)(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_DepositVelocity) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LastDepositBlock != int64(0) { + value := protoreflect.ValueOfInt64(x.LastDepositBlock) + if !f(fd_DepositVelocity_last_deposit_block, value) { + return + } + } + if x.RecentDepositCount != uint32(0) { + value := protoreflect.ValueOfUint32(x.RecentDepositCount) + if !f(fd_DepositVelocity_recent_deposit_count, value) { + return + } + } + if x.RecentDepositVolume != "" { + value := protoreflect.ValueOfString(x.RecentDepositVolume) + if !f(fd_DepositVelocity_recent_deposit_volume, value) { + return + } + } + if x.TimeWindowBlocks != int64(0) { + value := protoreflect.ValueOfInt64(x.TimeWindowBlocks) + if !f(fd_DepositVelocity_time_window_blocks, 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_DepositVelocity) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositVelocity.last_deposit_block": + return x.LastDepositBlock != int64(0) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_count": + return x.RecentDepositCount != uint32(0) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_volume": + return x.RecentDepositVolume != "" + case "noble.dollar.vaults.v2.DepositVelocity.time_window_blocks": + return x.TimeWindowBlocks != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositVelocity")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositVelocity 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_DepositVelocity) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositVelocity.last_deposit_block": + x.LastDepositBlock = int64(0) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_count": + x.RecentDepositCount = uint32(0) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_volume": + x.RecentDepositVolume = "" + case "noble.dollar.vaults.v2.DepositVelocity.time_window_blocks": + x.TimeWindowBlocks = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositVelocity")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositVelocity 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_DepositVelocity) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.DepositVelocity.last_deposit_block": + value := x.LastDepositBlock + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_count": + value := x.RecentDepositCount + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_volume": + value := x.RecentDepositVolume + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.DepositVelocity.time_window_blocks": + value := x.TimeWindowBlocks + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositVelocity")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositVelocity 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_DepositVelocity) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositVelocity.last_deposit_block": + x.LastDepositBlock = value.Int() + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_count": + x.RecentDepositCount = uint32(value.Uint()) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_volume": + x.RecentDepositVolume = value.Interface().(string) + case "noble.dollar.vaults.v2.DepositVelocity.time_window_blocks": + x.TimeWindowBlocks = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositVelocity")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositVelocity 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_DepositVelocity) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositVelocity.last_deposit_block": + panic(fmt.Errorf("field last_deposit_block of message noble.dollar.vaults.v2.DepositVelocity is not mutable")) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_count": + panic(fmt.Errorf("field recent_deposit_count of message noble.dollar.vaults.v2.DepositVelocity is not mutable")) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_volume": + panic(fmt.Errorf("field recent_deposit_volume of message noble.dollar.vaults.v2.DepositVelocity is not mutable")) + case "noble.dollar.vaults.v2.DepositVelocity.time_window_blocks": + panic(fmt.Errorf("field time_window_blocks of message noble.dollar.vaults.v2.DepositVelocity is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositVelocity")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositVelocity 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_DepositVelocity) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.DepositVelocity.last_deposit_block": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_count": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.DepositVelocity.recent_deposit_volume": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.DepositVelocity.time_window_blocks": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.DepositVelocity")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.DepositVelocity 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_DepositVelocity) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.DepositVelocity", 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_DepositVelocity) 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_DepositVelocity) 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_DepositVelocity) 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_DepositVelocity) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DepositVelocity) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.LastDepositBlock != 0 { + n += 1 + runtime.Sov(uint64(x.LastDepositBlock)) + } + if x.RecentDepositCount != 0 { + n += 1 + runtime.Sov(uint64(x.RecentDepositCount)) + } + l = len(x.RecentDepositVolume) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TimeWindowBlocks != 0 { + n += 1 + runtime.Sov(uint64(x.TimeWindowBlocks)) + } + 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().(*DepositVelocity) + 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.TimeWindowBlocks != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TimeWindowBlocks)) + i-- + dAtA[i] = 0x20 + } + if len(x.RecentDepositVolume) > 0 { + i -= len(x.RecentDepositVolume) + copy(dAtA[i:], x.RecentDepositVolume) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RecentDepositVolume))) + i-- + dAtA[i] = 0x1a + } + if x.RecentDepositCount != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.RecentDepositCount)) + i-- + dAtA[i] = 0x10 + } + if x.LastDepositBlock != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LastDepositBlock)) + i-- + dAtA[i] = 0x8 + } + 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().(*DepositVelocity) + 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: DepositVelocity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DepositVelocity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastDepositBlock", wireType) + } + x.LastDepositBlock = 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.LastDepositBlock |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecentDepositCount", wireType) + } + x.RecentDepositCount = 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.RecentDepositCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecentDepositVolume", 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.RecentDepositVolume = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimeWindowBlocks", wireType) + } + x.TimeWindowBlocks = 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.TimeWindowBlocks |= int64(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, + } +} + +var ( + md_TWAPConfig protoreflect.MessageDescriptor + fd_TWAPConfig_enabled protoreflect.FieldDescriptor + fd_TWAPConfig_window_size protoreflect.FieldDescriptor + fd_TWAPConfig_min_snapshot_interval protoreflect.FieldDescriptor + fd_TWAPConfig_max_snapshot_age protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_TWAPConfig = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("TWAPConfig") + fd_TWAPConfig_enabled = md_TWAPConfig.Fields().ByName("enabled") + fd_TWAPConfig_window_size = md_TWAPConfig.Fields().ByName("window_size") + fd_TWAPConfig_min_snapshot_interval = md_TWAPConfig.Fields().ByName("min_snapshot_interval") + fd_TWAPConfig_max_snapshot_age = md_TWAPConfig.Fields().ByName("max_snapshot_age") +} + +var _ protoreflect.Message = (*fastReflection_TWAPConfig)(nil) + +type fastReflection_TWAPConfig TWAPConfig + +func (x *TWAPConfig) ProtoReflect() protoreflect.Message { + return (*fastReflection_TWAPConfig)(x) +} + +func (x *TWAPConfig) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[9] + 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_TWAPConfig_messageType fastReflection_TWAPConfig_messageType +var _ protoreflect.MessageType = fastReflection_TWAPConfig_messageType{} + +type fastReflection_TWAPConfig_messageType struct{} + +func (x fastReflection_TWAPConfig_messageType) Zero() protoreflect.Message { + return (*fastReflection_TWAPConfig)(nil) +} +func (x fastReflection_TWAPConfig_messageType) New() protoreflect.Message { + return new(fastReflection_TWAPConfig) +} +func (x fastReflection_TWAPConfig_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TWAPConfig +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TWAPConfig) Descriptor() protoreflect.MessageDescriptor { + return md_TWAPConfig +} + +// 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_TWAPConfig) Type() protoreflect.MessageType { + return _fastReflection_TWAPConfig_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TWAPConfig) New() protoreflect.Message { + return new(fastReflection_TWAPConfig) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TWAPConfig) Interface() protoreflect.ProtoMessage { + return (*TWAPConfig)(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_TWAPConfig) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Enabled != false { + value := protoreflect.ValueOfBool(x.Enabled) + if !f(fd_TWAPConfig_enabled, value) { + return + } + } + if x.WindowSize != uint32(0) { + value := protoreflect.ValueOfUint32(x.WindowSize) + if !f(fd_TWAPConfig_window_size, value) { + return + } + } + if x.MinSnapshotInterval != int64(0) { + value := protoreflect.ValueOfInt64(x.MinSnapshotInterval) + if !f(fd_TWAPConfig_min_snapshot_interval, value) { + return + } + } + if x.MaxSnapshotAge != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxSnapshotAge) + if !f(fd_TWAPConfig_max_snapshot_age, 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_TWAPConfig) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TWAPConfig.enabled": + return x.Enabled != false + case "noble.dollar.vaults.v2.TWAPConfig.window_size": + return x.WindowSize != uint32(0) + case "noble.dollar.vaults.v2.TWAPConfig.min_snapshot_interval": + return x.MinSnapshotInterval != int64(0) + case "noble.dollar.vaults.v2.TWAPConfig.max_snapshot_age": + return x.MaxSnapshotAge != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TWAPConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TWAPConfig 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_TWAPConfig) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TWAPConfig.enabled": + x.Enabled = false + case "noble.dollar.vaults.v2.TWAPConfig.window_size": + x.WindowSize = uint32(0) + case "noble.dollar.vaults.v2.TWAPConfig.min_snapshot_interval": + x.MinSnapshotInterval = int64(0) + case "noble.dollar.vaults.v2.TWAPConfig.max_snapshot_age": + x.MaxSnapshotAge = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TWAPConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TWAPConfig 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_TWAPConfig) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.TWAPConfig.enabled": + value := x.Enabled + return protoreflect.ValueOfBool(value) + case "noble.dollar.vaults.v2.TWAPConfig.window_size": + value := x.WindowSize + return protoreflect.ValueOfUint32(value) + case "noble.dollar.vaults.v2.TWAPConfig.min_snapshot_interval": + value := x.MinSnapshotInterval + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.TWAPConfig.max_snapshot_age": + value := x.MaxSnapshotAge + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TWAPConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TWAPConfig 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_TWAPConfig) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TWAPConfig.enabled": + x.Enabled = value.Bool() + case "noble.dollar.vaults.v2.TWAPConfig.window_size": + x.WindowSize = uint32(value.Uint()) + case "noble.dollar.vaults.v2.TWAPConfig.min_snapshot_interval": + x.MinSnapshotInterval = value.Int() + case "noble.dollar.vaults.v2.TWAPConfig.max_snapshot_age": + x.MaxSnapshotAge = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TWAPConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TWAPConfig 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_TWAPConfig) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TWAPConfig.enabled": + panic(fmt.Errorf("field enabled of message noble.dollar.vaults.v2.TWAPConfig is not mutable")) + case "noble.dollar.vaults.v2.TWAPConfig.window_size": + panic(fmt.Errorf("field window_size of message noble.dollar.vaults.v2.TWAPConfig is not mutable")) + case "noble.dollar.vaults.v2.TWAPConfig.min_snapshot_interval": + panic(fmt.Errorf("field min_snapshot_interval of message noble.dollar.vaults.v2.TWAPConfig is not mutable")) + case "noble.dollar.vaults.v2.TWAPConfig.max_snapshot_age": + panic(fmt.Errorf("field max_snapshot_age of message noble.dollar.vaults.v2.TWAPConfig is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TWAPConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TWAPConfig 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_TWAPConfig) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.TWAPConfig.enabled": + return protoreflect.ValueOfBool(false) + case "noble.dollar.vaults.v2.TWAPConfig.window_size": + return protoreflect.ValueOfUint32(uint32(0)) + case "noble.dollar.vaults.v2.TWAPConfig.min_snapshot_interval": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.TWAPConfig.max_snapshot_age": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.TWAPConfig")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.TWAPConfig 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_TWAPConfig) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.TWAPConfig", 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_TWAPConfig) 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_TWAPConfig) 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_TWAPConfig) 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_TWAPConfig) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TWAPConfig) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Enabled { + n += 2 + } + if x.WindowSize != 0 { + n += 1 + runtime.Sov(uint64(x.WindowSize)) + } + if x.MinSnapshotInterval != 0 { + n += 1 + runtime.Sov(uint64(x.MinSnapshotInterval)) + } + if x.MaxSnapshotAge != 0 { + n += 1 + runtime.Sov(uint64(x.MaxSnapshotAge)) + } + 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().(*TWAPConfig) + 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.MaxSnapshotAge != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxSnapshotAge)) + i-- + dAtA[i] = 0x20 + } + if x.MinSnapshotInterval != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MinSnapshotInterval)) + i-- + dAtA[i] = 0x18 + } + if x.WindowSize != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.WindowSize)) + i-- + dAtA[i] = 0x10 + } + if x.Enabled { + i-- + if x.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + 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().(*TWAPConfig) + 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: TWAPConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TWAPConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + 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++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Enabled = bool(v != 0) + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WindowSize", wireType) + } + x.WindowSize = 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.WindowSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinSnapshotInterval", wireType) + } + x.MinSnapshotInterval = 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.MinSnapshotInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxSnapshotAge", wireType) + } + x.MaxSnapshotAge = 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.MaxSnapshotAge |= int64(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, + } +} + +var ( + md_NAVSnapshot protoreflect.MessageDescriptor + fd_NAVSnapshot_nav protoreflect.FieldDescriptor + fd_NAVSnapshot_timestamp protoreflect.FieldDescriptor + fd_NAVSnapshot_block_height protoreflect.FieldDescriptor + fd_NAVSnapshot_total_shares protoreflect.FieldDescriptor +) + +func init() { + file_noble_dollar_vaults_v2_vaults_proto_init() + md_NAVSnapshot = File_noble_dollar_vaults_v2_vaults_proto.Messages().ByName("NAVSnapshot") + fd_NAVSnapshot_nav = md_NAVSnapshot.Fields().ByName("nav") + fd_NAVSnapshot_timestamp = md_NAVSnapshot.Fields().ByName("timestamp") + fd_NAVSnapshot_block_height = md_NAVSnapshot.Fields().ByName("block_height") + fd_NAVSnapshot_total_shares = md_NAVSnapshot.Fields().ByName("total_shares") +} + +var _ protoreflect.Message = (*fastReflection_NAVSnapshot)(nil) + +type fastReflection_NAVSnapshot NAVSnapshot + +func (x *NAVSnapshot) ProtoReflect() protoreflect.Message { + return (*fastReflection_NAVSnapshot)(x) +} + +func (x *NAVSnapshot) slowProtoReflect() protoreflect.Message { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[10] + 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_NAVSnapshot_messageType fastReflection_NAVSnapshot_messageType +var _ protoreflect.MessageType = fastReflection_NAVSnapshot_messageType{} + +type fastReflection_NAVSnapshot_messageType struct{} + +func (x fastReflection_NAVSnapshot_messageType) Zero() protoreflect.Message { + return (*fastReflection_NAVSnapshot)(nil) +} +func (x fastReflection_NAVSnapshot_messageType) New() protoreflect.Message { + return new(fastReflection_NAVSnapshot) +} +func (x fastReflection_NAVSnapshot_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_NAVSnapshot +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_NAVSnapshot) Descriptor() protoreflect.MessageDescriptor { + return md_NAVSnapshot +} + +// 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_NAVSnapshot) Type() protoreflect.MessageType { + return _fastReflection_NAVSnapshot_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_NAVSnapshot) New() protoreflect.Message { + return new(fastReflection_NAVSnapshot) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_NAVSnapshot) Interface() protoreflect.ProtoMessage { + return (*NAVSnapshot)(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_NAVSnapshot) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nav != "" { + value := protoreflect.ValueOfString(x.Nav) + if !f(fd_NAVSnapshot_nav, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_NAVSnapshot_timestamp, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_NAVSnapshot_block_height, value) { + return + } + } + if x.TotalShares != "" { + value := protoreflect.ValueOfString(x.TotalShares) + if !f(fd_NAVSnapshot_total_shares, 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_NAVSnapshot) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVSnapshot.nav": + return x.Nav != "" + case "noble.dollar.vaults.v2.NAVSnapshot.timestamp": + return x.Timestamp != nil + case "noble.dollar.vaults.v2.NAVSnapshot.block_height": + return x.BlockHeight != int64(0) + case "noble.dollar.vaults.v2.NAVSnapshot.total_shares": + return x.TotalShares != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVSnapshot 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_NAVSnapshot) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVSnapshot.nav": + x.Nav = "" + case "noble.dollar.vaults.v2.NAVSnapshot.timestamp": + x.Timestamp = nil + case "noble.dollar.vaults.v2.NAVSnapshot.block_height": + x.BlockHeight = int64(0) + case "noble.dollar.vaults.v2.NAVSnapshot.total_shares": + x.TotalShares = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVSnapshot 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_NAVSnapshot) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "noble.dollar.vaults.v2.NAVSnapshot.nav": + value := x.Nav + return protoreflect.ValueOfString(value) + case "noble.dollar.vaults.v2.NAVSnapshot.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVSnapshot.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "noble.dollar.vaults.v2.NAVSnapshot.total_shares": + value := x.TotalShares + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVSnapshot 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_NAVSnapshot) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVSnapshot.nav": + x.Nav = value.Interface().(string) + case "noble.dollar.vaults.v2.NAVSnapshot.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "noble.dollar.vaults.v2.NAVSnapshot.block_height": + x.BlockHeight = value.Int() + case "noble.dollar.vaults.v2.NAVSnapshot.total_shares": + x.TotalShares = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVSnapshot 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_NAVSnapshot) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVSnapshot.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVSnapshot.nav": + panic(fmt.Errorf("field nav of message noble.dollar.vaults.v2.NAVSnapshot is not mutable")) + case "noble.dollar.vaults.v2.NAVSnapshot.block_height": + panic(fmt.Errorf("field block_height of message noble.dollar.vaults.v2.NAVSnapshot is not mutable")) + case "noble.dollar.vaults.v2.NAVSnapshot.total_shares": + panic(fmt.Errorf("field total_shares of message noble.dollar.vaults.v2.NAVSnapshot is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVSnapshot 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_NAVSnapshot) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "noble.dollar.vaults.v2.NAVSnapshot.nav": + return protoreflect.ValueOfString("") + case "noble.dollar.vaults.v2.NAVSnapshot.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "noble.dollar.vaults.v2.NAVSnapshot.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "noble.dollar.vaults.v2.NAVSnapshot.total_shares": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: noble.dollar.vaults.v2.NAVSnapshot")) + } + panic(fmt.Errorf("message noble.dollar.vaults.v2.NAVSnapshot 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_NAVSnapshot) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in noble.dollar.vaults.v2.NAVSnapshot", 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_NAVSnapshot) 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_NAVSnapshot) 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_NAVSnapshot) 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_NAVSnapshot) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*NAVSnapshot) + 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.Nav) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + l = len(x.TotalShares) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + 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().(*NAVSnapshot) + 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 len(x.TotalShares) > 0 { + i -= len(x.TotalShares) + copy(dAtA[i:], x.TotalShares) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalShares))) + i-- + dAtA[i] = 0x22 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Nav) > 0 { + i -= len(x.Nav) + copy(dAtA[i:], x.Nav) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Nav))) + 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().(*NAVSnapshot) + 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: NAVSnapshot: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NAVSnapshot: 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 Nav", 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.Nav = 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 Timestamp", wireType) + } + var msglen int + 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++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + 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 + } + if x.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 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.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalShares", 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.TotalShares = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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: noble/dollar/vaults/v2/vaults.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) +) + +// WithdrawalRequestStatus represents the status of a withdrawal request +type WithdrawalRequestStatus int32 + +const ( + // Request is pending (waiting for unlock time) + WithdrawalRequestStatus_WITHDRAWAL_REQUEST_STATUS_PENDING WithdrawalRequestStatus = 0 + // Request is ready to be processed + WithdrawalRequestStatus_WITHDRAWAL_REQUEST_STATUS_READY WithdrawalRequestStatus = 1 + // Request has been processed + WithdrawalRequestStatus_WITHDRAWAL_REQUEST_STATUS_PROCESSED WithdrawalRequestStatus = 2 + // Request was cancelled by user + WithdrawalRequestStatus_WITHDRAWAL_REQUEST_STATUS_CANCELLED WithdrawalRequestStatus = 3 + // Request expired without processing + WithdrawalRequestStatus_WITHDRAWAL_REQUEST_STATUS_EXPIRED WithdrawalRequestStatus = 4 +) + +// Enum value maps for WithdrawalRequestStatus. +var ( + WithdrawalRequestStatus_name = map[int32]string{ + 0: "WITHDRAWAL_REQUEST_STATUS_PENDING", + 1: "WITHDRAWAL_REQUEST_STATUS_READY", + 2: "WITHDRAWAL_REQUEST_STATUS_PROCESSED", + 3: "WITHDRAWAL_REQUEST_STATUS_CANCELLED", + 4: "WITHDRAWAL_REQUEST_STATUS_EXPIRED", + } + WithdrawalRequestStatus_value = map[string]int32{ + "WITHDRAWAL_REQUEST_STATUS_PENDING": 0, + "WITHDRAWAL_REQUEST_STATUS_READY": 1, + "WITHDRAWAL_REQUEST_STATUS_PROCESSED": 2, + "WITHDRAWAL_REQUEST_STATUS_CANCELLED": 3, + "WITHDRAWAL_REQUEST_STATUS_EXPIRED": 4, + } +) + +func (x WithdrawalRequestStatus) Enum() *WithdrawalRequestStatus { + p := new(WithdrawalRequestStatus) + *p = x + return p +} + +func (x WithdrawalRequestStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WithdrawalRequestStatus) Descriptor() protoreflect.EnumDescriptor { + return file_noble_dollar_vaults_v2_vaults_proto_enumTypes[0].Descriptor() +} + +func (WithdrawalRequestStatus) Type() protoreflect.EnumType { + return &file_noble_dollar_vaults_v2_vaults_proto_enumTypes[0] +} + +func (x WithdrawalRequestStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WithdrawalRequestStatus.Descriptor instead. +func (WithdrawalRequestStatus) EnumDescriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{0} +} + +// UserPosition represents a user's position in the V2 yield-tracking vault system +type UserPosition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current deposit amount (principal) + DepositAmount string `protobuf:"bytes,1,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` + // Accrued yield on the position + AccruedYield string `protobuf:"bytes,2,opt,name=accrued_yield,json=accruedYield,proto3" json:"accrued_yield,omitempty"` + // Timestamp of first deposit + FirstDepositTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_deposit_time,json=firstDepositTime,proto3" json:"first_deposit_time,omitempty"` + // Timestamp of last deposit/withdrawal + LastActivityTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_activity_time,json=lastActivityTime,proto3" json:"last_activity_time,omitempty"` + // Whether user wants to receive yield (vs contributing to fee pool) + ReceiveYield bool `protobuf:"varint,5,opt,name=receive_yield,json=receiveYield,proto3" json:"receive_yield,omitempty"` + // Amount pending withdrawal + AmountPendingWithdrawal string `protobuf:"bytes,6,opt,name=amount_pending_withdrawal,json=amountPendingWithdrawal,proto3" json:"amount_pending_withdrawal,omitempty"` + // Number of active withdrawal requests + ActiveWithdrawalRequests int32 `protobuf:"varint,7,opt,name=active_withdrawal_requests,json=activeWithdrawalRequests,proto3" json:"active_withdrawal_requests,omitempty"` +} + +func (x *UserPosition) Reset() { + *x = UserPosition{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserPosition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserPosition) ProtoMessage() {} + +// Deprecated: Use UserPosition.ProtoReflect.Descriptor instead. +func (*UserPosition) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{0} +} + +func (x *UserPosition) GetDepositAmount() string { + if x != nil { + return x.DepositAmount + } + return "" +} + +func (x *UserPosition) GetAccruedYield() string { + if x != nil { + return x.AccruedYield + } + return "" +} + +func (x *UserPosition) GetFirstDepositTime() *timestamppb.Timestamp { + if x != nil { + return x.FirstDepositTime + } + return nil +} + +func (x *UserPosition) GetLastActivityTime() *timestamppb.Timestamp { + if x != nil { + return x.LastActivityTime + } + return nil +} + +func (x *UserPosition) GetReceiveYield() bool { + if x != nil { + return x.ReceiveYield + } + return false +} + +func (x *UserPosition) GetAmountPendingWithdrawal() string { + if x != nil { + return x.AmountPendingWithdrawal + } + return "" +} + +func (x *UserPosition) GetActiveWithdrawalRequests() int32 { + if x != nil { + return x.ActiveWithdrawalRequests + } + return 0 +} + +// WithdrawalRequest represents a pending withdrawal request +type WithdrawalRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique request ID + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Address of the account that created the request + Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` + // Amount to withdraw (including yield) + WithdrawAmount string `protobuf:"bytes,3,opt,name=withdraw_amount,json=withdrawAmount,proto3" json:"withdraw_amount,omitempty"` + // When the withdrawal was requested + RequestTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` + // When the withdrawal can be processed + UnlockTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty"` + // Current status of the withdrawal request + Status WithdrawalRequestStatus `protobuf:"varint,6,opt,name=status,proto3,enum=noble.dollar.vaults.v2.WithdrawalRequestStatus" json:"status,omitempty"` + // Estimated amount to receive (calculated at request time) + EstimatedAmount string `protobuf:"bytes,7,opt,name=estimated_amount,json=estimatedAmount,proto3" json:"estimated_amount,omitempty"` + // Block height when request was made + RequestBlockHeight int64 `protobuf:"varint,8,opt,name=request_block_height,json=requestBlockHeight,proto3" json:"request_block_height,omitempty"` +} + +func (x *WithdrawalRequest) Reset() { + *x = WithdrawalRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WithdrawalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WithdrawalRequest) ProtoMessage() {} + +// Deprecated: Use WithdrawalRequest.ProtoReflect.Descriptor instead. +func (*WithdrawalRequest) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{1} +} + +func (x *WithdrawalRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *WithdrawalRequest) GetRequester() string { + if x != nil { + return x.Requester + } + return "" +} + +func (x *WithdrawalRequest) GetWithdrawAmount() string { + if x != nil { + return x.WithdrawAmount + } + return "" +} + +func (x *WithdrawalRequest) GetRequestTime() *timestamppb.Timestamp { + if x != nil { + return x.RequestTime + } + return nil +} + +func (x *WithdrawalRequest) GetUnlockTime() *timestamppb.Timestamp { + if x != nil { + return x.UnlockTime + } + return nil +} + +func (x *WithdrawalRequest) GetStatus() WithdrawalRequestStatus { + if x != nil { + return x.Status + } + return WithdrawalRequestStatus_WITHDRAWAL_REQUEST_STATUS_PENDING +} + +func (x *WithdrawalRequest) GetEstimatedAmount() string { + if x != nil { + return x.EstimatedAmount + } + return "" +} + +func (x *WithdrawalRequest) GetRequestBlockHeight() int64 { + if x != nil { + return x.RequestBlockHeight + } + return 0 +} + +// VaultState represents the current state of a V2 vault +type VaultState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total deposits in the vault + TotalDeposits string `protobuf:"bytes,1,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + // Total accrued yield + TotalAccruedYield string `protobuf:"bytes,2,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + // Total Net Asset Value (deposits + yield) + TotalNav string `protobuf:"bytes,3,opt,name=total_nav,json=totalNav,proto3" json:"total_nav,omitempty"` + // Total number of users with positions + TotalUsers uint64 `protobuf:"varint,4,opt,name=total_users,json=totalUsers,proto3" json:"total_users,omitempty"` + // Whether deposits are currently enabled + DepositsEnabled bool `protobuf:"varint,5,opt,name=deposits_enabled,json=depositsEnabled,proto3" json:"deposits_enabled,omitempty"` + // Whether withdrawals are currently enabled + WithdrawalsEnabled bool `protobuf:"varint,6,opt,name=withdrawals_enabled,json=withdrawalsEnabled,proto3" json:"withdrawals_enabled,omitempty"` + // Last NAV update timestamp + LastNavUpdate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_nav_update,json=lastNavUpdate,proto3" json:"last_nav_update,omitempty"` + // Total amount pending withdrawal + TotalAmountPendingWithdrawal string `protobuf:"bytes,8,opt,name=total_amount_pending_withdrawal,json=totalAmountPendingWithdrawal,proto3" json:"total_amount_pending_withdrawal,omitempty"` + // Number of pending withdrawal requests + PendingWithdrawalRequests int32 `protobuf:"varint,9,opt,name=pending_withdrawal_requests,json=pendingWithdrawalRequests,proto3" json:"pending_withdrawal_requests,omitempty"` +} + +func (x *VaultState) Reset() { + *x = VaultState{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VaultState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VaultState) ProtoMessage() {} + +// Deprecated: Use VaultState.ProtoReflect.Descriptor instead. +func (*VaultState) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{2} +} + +func (x *VaultState) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *VaultState) GetTotalAccruedYield() string { + if x != nil { + return x.TotalAccruedYield + } + return "" +} + +func (x *VaultState) GetTotalNav() string { + if x != nil { + return x.TotalNav + } + return "" +} + +func (x *VaultState) GetTotalUsers() uint64 { + if x != nil { + return x.TotalUsers + } + return 0 +} + +func (x *VaultState) GetDepositsEnabled() bool { + if x != nil { + return x.DepositsEnabled + } + return false +} + +func (x *VaultState) GetWithdrawalsEnabled() bool { + if x != nil { + return x.WithdrawalsEnabled + } + return false +} + +func (x *VaultState) GetLastNavUpdate() *timestamppb.Timestamp { + if x != nil { + return x.LastNavUpdate + } + return nil +} + +func (x *VaultState) GetTotalAmountPendingWithdrawal() string { + if x != nil { + return x.TotalAmountPendingWithdrawal + } + return "" +} + +func (x *VaultState) GetPendingWithdrawalRequests() int32 { + if x != nil { + return x.PendingWithdrawalRequests + } + return 0 +} + +// YieldCalculation contains details about yield calculations +type YieldCalculation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total deposits used in calculation + TotalDeposits string `protobuf:"bytes,1,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + // Total accrued yield + TotalYield string `protobuf:"bytes,2,opt,name=total_yield,json=totalYield,proto3" json:"total_yield,omitempty"` + // Yield rate (APY percentage) + YieldRate string `protobuf:"bytes,3,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` + // Calculation timestamp + CalculationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=calculation_time,json=calculationTime,proto3" json:"calculation_time,omitempty"` +} + +func (x *YieldCalculation) Reset() { + *x = YieldCalculation{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *YieldCalculation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*YieldCalculation) ProtoMessage() {} + +// Deprecated: Use YieldCalculation.ProtoReflect.Descriptor instead. +func (*YieldCalculation) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{3} +} + +func (x *YieldCalculation) GetTotalDeposits() string { + if x != nil { + return x.TotalDeposits + } + return "" +} + +func (x *YieldCalculation) GetTotalYield() string { + if x != nil { + return x.TotalYield + } + return "" +} + +func (x *YieldCalculation) GetYieldRate() string { + if x != nil { + return x.YieldRate + } + return "" +} + +func (x *YieldCalculation) GetCalculationTime() *timestamppb.Timestamp { + if x != nil { + return x.CalculationTime + } + return nil +} + +// DepositResult contains the outcome of a deposit operation +type DepositResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Amount deposited + AmountDeposited string `protobuf:"bytes,1,opt,name=amount_deposited,json=amountDeposited,proto3" json:"amount_deposited,omitempty"` +} + +func (x *DepositResult) Reset() { + *x = DepositResult{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DepositResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DepositResult) ProtoMessage() {} + +// Deprecated: Use DepositResult.ProtoReflect.Descriptor instead. +func (*DepositResult) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{4} +} + +func (x *DepositResult) GetAmountDeposited() string { + if x != nil { + return x.AmountDeposited + } + return "" +} + +// WithdrawalResult contains the outcome of a withdrawal operation +type WithdrawalResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Principal withdrawn + PrincipalWithdrawn string `protobuf:"bytes,1,opt,name=principal_withdrawn,json=principalWithdrawn,proto3" json:"principal_withdrawn,omitempty"` + // Yield withdrawn + YieldWithdrawn string `protobuf:"bytes,2,opt,name=yield_withdrawn,json=yieldWithdrawn,proto3" json:"yield_withdrawn,omitempty"` + // Fees paid + FeesPaid string `protobuf:"bytes,3,opt,name=fees_paid,json=feesPaid,proto3" json:"fees_paid,omitempty"` + // Total amount received (principal + yield - fees) + TotalAmountReceived string `protobuf:"bytes,4,opt,name=total_amount_received,json=totalAmountReceived,proto3" json:"total_amount_received,omitempty"` +} + +func (x *WithdrawalResult) Reset() { + *x = WithdrawalResult{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WithdrawalResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WithdrawalResult) ProtoMessage() {} + +// Deprecated: Use WithdrawalResult.ProtoReflect.Descriptor instead. +func (*WithdrawalResult) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{5} +} + +func (x *WithdrawalResult) GetPrincipalWithdrawn() string { + if x != nil { + return x.PrincipalWithdrawn + } + return "" +} + +func (x *WithdrawalResult) GetYieldWithdrawn() string { + if x != nil { + return x.YieldWithdrawn + } + return "" +} + +func (x *WithdrawalResult) GetFeesPaid() string { + if x != nil { + return x.FeesPaid + } + return "" +} + +func (x *WithdrawalResult) GetTotalAmountReceived() string { + if x != nil { + return x.TotalAmountReceived + } + return "" +} + +// YieldDistribution represents yield distribution to shareholders +type YieldDistribution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Total yield amount distributed + TotalYield string `protobuf:"bytes,1,opt,name=total_yield,json=totalYield,proto3" json:"total_yield,omitempty"` + // Yield rate applied + YieldRate string `protobuf:"bytes,2,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` + // Distribution timestamp + DistributionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=distribution_time,json=distributionTime,proto3" json:"distribution_time,omitempty"` + // Number of eligible depositors + EligibleDepositors uint64 `protobuf:"varint,4,opt,name=eligible_depositors,json=eligibleDepositors,proto3" json:"eligible_depositors,omitempty"` +} + +func (x *YieldDistribution) Reset() { + *x = YieldDistribution{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *YieldDistribution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*YieldDistribution) ProtoMessage() {} + +// Deprecated: Use YieldDistribution.ProtoReflect.Descriptor instead. +func (*YieldDistribution) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{6} +} + +func (x *YieldDistribution) GetTotalYield() string { + if x != nil { + return x.TotalYield + } + return "" +} + +func (x *YieldDistribution) GetYieldRate() string { + if x != nil { + return x.YieldRate + } + return "" +} + +func (x *YieldDistribution) GetDistributionTime() *timestamppb.Timestamp { + if x != nil { + return x.DistributionTime + } + return nil +} + +func (x *YieldDistribution) GetEligibleDepositors() uint64 { + if x != nil { + return x.EligibleDepositors + } + return 0 +} + +// DepositLimit defines deposit limits and risk controls +type DepositLimit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maximum deposit amount per user per time window + MaxUserDepositPerWindow string `protobuf:"bytes,1,opt,name=max_user_deposit_per_window,json=maxUserDepositPerWindow,proto3" json:"max_user_deposit_per_window,omitempty"` + // Maximum deposit volume per block + MaxBlockDepositVolume string `protobuf:"bytes,2,opt,name=max_block_deposit_volume,json=maxBlockDepositVolume,proto3" json:"max_block_deposit_volume,omitempty"` + // Global maximum total deposits (vault capacity) + GlobalDepositCap string `protobuf:"bytes,3,opt,name=global_deposit_cap,json=globalDepositCap,proto3" json:"global_deposit_cap,omitempty"` + // Cooldown period in blocks between deposits + DepositCooldownBlocks int64 `protobuf:"varint,4,opt,name=deposit_cooldown_blocks,json=depositCooldownBlocks,proto3" json:"deposit_cooldown_blocks,omitempty"` + // Time window for velocity tracking (in blocks) + VelocityWindowBlocks int64 `protobuf:"varint,5,opt,name=velocity_window_blocks,json=velocityWindowBlocks,proto3" json:"velocity_window_blocks,omitempty"` + // Maximum number of deposits per user in time window + MaxDepositsPerWindow uint32 `protobuf:"varint,6,opt,name=max_deposits_per_window,json=maxDepositsPerWindow,proto3" json:"max_deposits_per_window,omitempty"` +} + +func (x *DepositLimit) Reset() { + *x = DepositLimit{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DepositLimit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DepositLimit) ProtoMessage() {} + +// Deprecated: Use DepositLimit.ProtoReflect.Descriptor instead. +func (*DepositLimit) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{7} +} + +func (x *DepositLimit) GetMaxUserDepositPerWindow() string { + if x != nil { + return x.MaxUserDepositPerWindow + } + return "" +} + +func (x *DepositLimit) GetMaxBlockDepositVolume() string { + if x != nil { + return x.MaxBlockDepositVolume + } + return "" +} + +func (x *DepositLimit) GetGlobalDepositCap() string { + if x != nil { + return x.GlobalDepositCap + } + return "" +} + +func (x *DepositLimit) GetDepositCooldownBlocks() int64 { + if x != nil { + return x.DepositCooldownBlocks + } + return 0 +} + +func (x *DepositLimit) GetVelocityWindowBlocks() int64 { + if x != nil { + return x.VelocityWindowBlocks + } + return 0 +} + +func (x *DepositLimit) GetMaxDepositsPerWindow() uint32 { + if x != nil { + return x.MaxDepositsPerWindow + } + return 0 +} + +// DepositVelocity tracks user deposit velocity for risk monitoring +type DepositVelocity struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Block height of last deposit + LastDepositBlock int64 `protobuf:"varint,1,opt,name=last_deposit_block,json=lastDepositBlock,proto3" json:"last_deposit_block,omitempty"` + // Number of deposits in recent time window + RecentDepositCount uint32 `protobuf:"varint,2,opt,name=recent_deposit_count,json=recentDepositCount,proto3" json:"recent_deposit_count,omitempty"` + // Total volume deposited in recent time window + RecentDepositVolume string `protobuf:"bytes,3,opt,name=recent_deposit_volume,json=recentDepositVolume,proto3" json:"recent_deposit_volume,omitempty"` + // Time window size in blocks + TimeWindowBlocks int64 `protobuf:"varint,4,opt,name=time_window_blocks,json=timeWindowBlocks,proto3" json:"time_window_blocks,omitempty"` +} + +func (x *DepositVelocity) Reset() { + *x = DepositVelocity{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DepositVelocity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DepositVelocity) ProtoMessage() {} + +// Deprecated: Use DepositVelocity.ProtoReflect.Descriptor instead. +func (*DepositVelocity) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{8} +} + +func (x *DepositVelocity) GetLastDepositBlock() int64 { + if x != nil { + return x.LastDepositBlock + } + return 0 +} + +func (x *DepositVelocity) GetRecentDepositCount() uint32 { + if x != nil { + return x.RecentDepositCount + } + return 0 +} + +func (x *DepositVelocity) GetRecentDepositVolume() string { + if x != nil { + return x.RecentDepositVolume + } + return "" +} + +func (x *DepositVelocity) GetTimeWindowBlocks() int64 { + if x != nil { + return x.TimeWindowBlocks + } + return 0 +} + +// TWAPConfig configures Time-Weighted Average Price for share pricing +type TWAPConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Whether TWAP is enabled for share pricing + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Number of historical NAV snapshots to include in TWAP calculation + WindowSize uint32 `protobuf:"varint,2,opt,name=window_size,json=windowSize,proto3" json:"window_size,omitempty"` + // Minimum time between NAV snapshots (in seconds) + MinSnapshotInterval int64 `protobuf:"varint,3,opt,name=min_snapshot_interval,json=minSnapshotInterval,proto3" json:"min_snapshot_interval,omitempty"` + // Maximum age of snapshots to include (in seconds) + MaxSnapshotAge int64 `protobuf:"varint,4,opt,name=max_snapshot_age,json=maxSnapshotAge,proto3" json:"max_snapshot_age,omitempty"` +} + +func (x *TWAPConfig) Reset() { + *x = TWAPConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TWAPConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TWAPConfig) ProtoMessage() {} + +// Deprecated: Use TWAPConfig.ProtoReflect.Descriptor instead. +func (*TWAPConfig) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{9} +} + +func (x *TWAPConfig) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *TWAPConfig) GetWindowSize() uint32 { + if x != nil { + return x.WindowSize + } + return 0 +} + +func (x *TWAPConfig) GetMinSnapshotInterval() int64 { + if x != nil { + return x.MinSnapshotInterval + } + return 0 +} + +func (x *TWAPConfig) GetMaxSnapshotAge() int64 { + if x != nil { + return x.MaxSnapshotAge + } + return 0 +} + +// NAVSnapshot represents a point-in-time NAV observation for TWAP +type NAVSnapshot struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // NAV value at this snapshot + Nav string `protobuf:"bytes,1,opt,name=nav,proto3" json:"nav,omitempty"` + // Timestamp of this snapshot + Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Block height at this snapshot + BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Total shares at this snapshot (for reference) + TotalShares string `protobuf:"bytes,4,opt,name=total_shares,json=totalShares,proto3" json:"total_shares,omitempty"` +} + +func (x *NAVSnapshot) Reset() { + *x = NAVSnapshot{} + if protoimpl.UnsafeEnabled { + mi := &file_noble_dollar_vaults_v2_vaults_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NAVSnapshot) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NAVSnapshot) ProtoMessage() {} + +// Deprecated: Use NAVSnapshot.ProtoReflect.Descriptor instead. +func (*NAVSnapshot) Descriptor() ([]byte, []int) { + return file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP(), []int{10} +} + +func (x *NAVSnapshot) GetNav() string { + if x != nil { + return x.Nav + } + return "" +} + +func (x *NAVSnapshot) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *NAVSnapshot) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *NAVSnapshot) GetTotalShares() string { + if x != nil { + return x.TotalShares + } + return "" +} + +var File_noble_dollar_vaults_v2_vaults_proto protoreflect.FileDescriptor + +var file_noble_dollar_vaults_v2_vaults_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x11, 0x61, + 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, + 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xb7, 0x04, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x64, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x55, 0x0a, 0x0d, + 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x59, 0x69, + 0x65, 0x6c, 0x64, 0x12, 0x52, 0x0a, 0x12, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, + 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x10, 0x66, 0x69, 0x72, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x52, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x59, 0x69, 0x65, 0x6c, 0x64, + 0x12, 0x6c, 0x0a, 0x19, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x17, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x3c, + 0x0a, 0x1a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x18, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xad, 0x04, 0x0a, + 0x11, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x64, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x59, 0x0a, 0x0f, 0x77, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x41, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, + 0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x45, 0x0a, + 0x0b, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, + 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, + 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x69, + 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x5b, 0x0a, + 0x10, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x65, 0x73, 0x74, 0x69, 0x6d, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x9a, 0x05, 0x0a, + 0x0a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x57, 0x0a, 0x0e, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x63, + 0x63, 0x72, 0x75, 0x65, 0x64, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x63, 0x63, 0x72, 0x75, 0x65, + 0x64, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x4d, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x6e, 0x61, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x4e, 0x61, 0x76, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, + 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, + 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x76, 0x5f, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, + 0x01, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x76, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x12, 0x77, 0x0a, 0x1f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x1c, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x3e, 0x0a, 0x1b, 0x70, 0x65, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, + 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xe6, 0x02, 0x0a, 0x10, 0x59, 0x69, + 0x65, 0x6c, 0x64, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x57, + 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x59, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x55, 0x0a, 0x0a, 0x79, 0x69, + 0x65, 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, + 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x61, 0x74, + 0x65, 0x12, 0x4f, 0x0a, 0x10, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, + 0x01, 0x52, 0x0f, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, + 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x0d, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x5b, 0x0a, 0x10, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x0f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x64, + 0x22, 0x85, 0x03, 0x0a, 0x10, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x61, 0x0a, 0x13, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x12, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x57, + 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x12, 0x59, 0x0a, 0x0f, 0x79, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, + 0x61, 0x77, 0x6e, 0x12, 0x4d, 0x0a, 0x09, 0x66, 0x65, 0x65, 0x73, 0x5f, 0x70, 0x61, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x66, 0x65, 0x65, 0x73, 0x50, 0x61, + 0x69, 0x64, 0x12, 0x64, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, + 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x22, 0xc1, 0x02, 0x0a, 0x11, 0x59, 0x69, 0x65, + 0x6c, 0x64, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, + 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x59, 0x69, 0x65, 0x6c, + 0x64, 0x12, 0x55, 0x0a, 0x0a, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x79, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x51, 0x0a, 0x11, 0x64, 0x69, 0x73, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x10, 0x64, 0x69, 0x73, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x65, + 0x6c, 0x69, 0x67, 0x69, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, + 0x6c, 0x65, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x73, 0x22, 0xee, 0x03, 0x0a, + 0x0c, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x6e, 0x0a, + 0x1b, 0x6d, 0x61, 0x78, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x17, 0x6d, 0x61, 0x78, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x50, 0x65, 0x72, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x69, 0x0a, + 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x15, 0x6d, 0x61, 0x78, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x67, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x44, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x61, 0x70, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6f, 0x6c, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x43, 0x6f, 0x6f, 0x6c, 0x64, 0x6f, 0x77, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x12, 0x34, 0x0a, 0x16, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x5f, 0x77, 0x69, 0x6e, + 0x64, 0x6f, 0x77, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x14, 0x76, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, 0x79, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, + 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x6d, 0x61, 0x78, 0x44, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x73, 0x50, 0x65, 0x72, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x22, 0x85, 0x02, + 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x56, 0x65, 0x6c, 0x6f, 0x63, 0x69, 0x74, + 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6c, + 0x61, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x30, 0x0a, 0x14, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x72, + 0x65, 0x63, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x64, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, + 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x0a, 0x54, 0x57, 0x41, 0x50, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1f, + 0x0a, 0x0b, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x32, 0x0a, 0x15, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, + 0x6d, 0x69, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x76, 0x61, 0x6c, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6d, + 0x61, 0x78, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x41, 0x67, 0x65, 0x22, 0x8d, 0x02, + 0x0a, 0x0b, 0x4e, 0x41, 0x56, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x42, 0x0a, + 0x03, 0x6e, 0x61, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x03, 0x6e, 0x61, + 0x76, 0x12, 0x42, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x53, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x2a, 0xe4, 0x01, + 0x0a, 0x17, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x49, 0x54, + 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, + 0x12, 0x23, 0x0a, 0x1f, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x5f, 0x52, + 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, + 0x41, 0x44, 0x59, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, + 0x57, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x27, + 0x0a, 0x23, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x51, + 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, + 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x49, 0x54, 0x48, 0x44, + 0x52, 0x41, 0x57, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x04, + 0x88, 0xa3, 0x1e, 0x00, 0x42, 0xdd, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x6f, 0x62, + 0x6c, 0x65, 0x2e, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x37, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2e, 0x6e, 0x6f, 0x62, 0x6c, 0x65, + 0x2e, 0x78, 0x79, 0x7a, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x62, 0x6c, + 0x65, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2f, + 0x76, 0x32, 0x3b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x4e, 0x44, + 0x56, 0xaa, 0x02, 0x16, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, + 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x16, 0x4e, 0x6f, 0x62, + 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x22, 0x4e, 0x6f, 0x62, 0x6c, 0x65, 0x5c, 0x44, 0x6f, 0x6c, 0x6c, + 0x61, 0x72, 0x5c, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x4e, 0x6f, 0x62, 0x6c, 0x65, + 0x3a, 0x3a, 0x44, 0x6f, 0x6c, 0x6c, 0x61, 0x72, 0x3a, 0x3a, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_noble_dollar_vaults_v2_vaults_proto_rawDescOnce sync.Once + file_noble_dollar_vaults_v2_vaults_proto_rawDescData = file_noble_dollar_vaults_v2_vaults_proto_rawDesc +) + +func file_noble_dollar_vaults_v2_vaults_proto_rawDescGZIP() []byte { + file_noble_dollar_vaults_v2_vaults_proto_rawDescOnce.Do(func() { + file_noble_dollar_vaults_v2_vaults_proto_rawDescData = protoimpl.X.CompressGZIP(file_noble_dollar_vaults_v2_vaults_proto_rawDescData) + }) + return file_noble_dollar_vaults_v2_vaults_proto_rawDescData +} + +var file_noble_dollar_vaults_v2_vaults_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_noble_dollar_vaults_v2_vaults_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_noble_dollar_vaults_v2_vaults_proto_goTypes = []interface{}{ + (WithdrawalRequestStatus)(0), // 0: noble.dollar.vaults.v2.WithdrawalRequestStatus + (*UserPosition)(nil), // 1: noble.dollar.vaults.v2.UserPosition + (*WithdrawalRequest)(nil), // 2: noble.dollar.vaults.v2.WithdrawalRequest + (*VaultState)(nil), // 3: noble.dollar.vaults.v2.VaultState + (*YieldCalculation)(nil), // 4: noble.dollar.vaults.v2.YieldCalculation + (*DepositResult)(nil), // 5: noble.dollar.vaults.v2.DepositResult + (*WithdrawalResult)(nil), // 6: noble.dollar.vaults.v2.WithdrawalResult + (*YieldDistribution)(nil), // 7: noble.dollar.vaults.v2.YieldDistribution + (*DepositLimit)(nil), // 8: noble.dollar.vaults.v2.DepositLimit + (*DepositVelocity)(nil), // 9: noble.dollar.vaults.v2.DepositVelocity + (*TWAPConfig)(nil), // 10: noble.dollar.vaults.v2.TWAPConfig + (*NAVSnapshot)(nil), // 11: noble.dollar.vaults.v2.NAVSnapshot + (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp +} +var file_noble_dollar_vaults_v2_vaults_proto_depIdxs = []int32{ + 12, // 0: noble.dollar.vaults.v2.UserPosition.first_deposit_time:type_name -> google.protobuf.Timestamp + 12, // 1: noble.dollar.vaults.v2.UserPosition.last_activity_time:type_name -> google.protobuf.Timestamp + 12, // 2: noble.dollar.vaults.v2.WithdrawalRequest.request_time:type_name -> google.protobuf.Timestamp + 12, // 3: noble.dollar.vaults.v2.WithdrawalRequest.unlock_time:type_name -> google.protobuf.Timestamp + 0, // 4: noble.dollar.vaults.v2.WithdrawalRequest.status:type_name -> noble.dollar.vaults.v2.WithdrawalRequestStatus + 12, // 5: noble.dollar.vaults.v2.VaultState.last_nav_update:type_name -> google.protobuf.Timestamp + 12, // 6: noble.dollar.vaults.v2.YieldCalculation.calculation_time:type_name -> google.protobuf.Timestamp + 12, // 7: noble.dollar.vaults.v2.YieldDistribution.distribution_time:type_name -> google.protobuf.Timestamp + 12, // 8: noble.dollar.vaults.v2.NAVSnapshot.timestamp:type_name -> google.protobuf.Timestamp + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_noble_dollar_vaults_v2_vaults_proto_init() } +func file_noble_dollar_vaults_v2_vaults_proto_init() { + if File_noble_dollar_vaults_v2_vaults_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserPosition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawalRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VaultState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*YieldCalculation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DepositResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithdrawalResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*YieldDistribution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DepositLimit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DepositVelocity); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TWAPConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_noble_dollar_vaults_v2_vaults_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NAVSnapshot); 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_noble_dollar_vaults_v2_vaults_proto_rawDesc, + NumEnums: 1, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_noble_dollar_vaults_v2_vaults_proto_goTypes, + DependencyIndexes: file_noble_dollar_vaults_v2_vaults_proto_depIdxs, + EnumInfos: file_noble_dollar_vaults_v2_vaults_proto_enumTypes, + MessageInfos: file_noble_dollar_vaults_v2_vaults_proto_msgTypes, + }.Build() + File_noble_dollar_vaults_v2_vaults_proto = out.File + file_noble_dollar_vaults_v2_vaults_proto_rawDesc = nil + file_noble_dollar_vaults_v2_vaults_proto_goTypes = nil + file_noble_dollar_vaults_v2_vaults_proto_depIdxs = nil +} diff --git a/go.mod b/go.mod index e8de1641..42e161ef 100644 --- a/go.mod +++ b/go.mod @@ -314,3 +314,5 @@ require ( pgregory.net/rapid v1.1.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) + +replace github.com/gogo/protobuf/grpc => ./third_party/github.com/gogo/protobuf/grpc diff --git a/proto/noble/dollar/vaults/v2/cross_chain.proto b/proto/noble/dollar/vaults/v2/cross_chain.proto index e8a85594..023ad735 100644 --- a/proto/noble/dollar/vaults/v2/cross_chain.proto +++ b/proto/noble/dollar/vaults/v2/cross_chain.proto @@ -8,7 +8,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; import "hyperlane/warp/v1/types.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // CrossChainRoute defines a route for cross-chain operations // Currently supports Hyperlane, with potential for future IBC support diff --git a/proto/noble/dollar/vaults/v2/events.proto b/proto/noble/dollar/vaults/v2/events.proto index aebe758a..f6c38985 100644 --- a/proto/noble/dollar/vaults/v2/events.proto +++ b/proto/noble/dollar/vaults/v2/events.proto @@ -7,7 +7,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // EventDeposit is emitted when a user deposits into the V2 vault message EventDeposit { @@ -294,3 +294,242 @@ message EventVaultConfigUpdated { (gogoproto.stdtime) = true ]; } + +// EventInflightFundCreated is emitted when an inflight fund operation is initiated +message EventInflightFundCreated { + // Transaction ID + string transaction_id = 1; + + // Route ID + uint32 route_id = 2; + + // Operation type (DEPOSIT_TO_POSITION, WITHDRAWAL_FROM_POSITION, etc.) + string operation_type = 3; + + // Amount + string amount = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Value at initiation + string value_at_initiation = 5 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Initiator address + string initiator = 6 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // Source chain + string source_chain = 7; + + // Destination chain + string destination_chain = 8; + + // Expected completion time + google.protobuf.Timestamp expected_at = 9 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + + // Block height + int64 block_height = 10; + + // Timestamp + google.protobuf.Timestamp timestamp = 11 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +// EventInflightFundStatusChanged is emitted when an inflight fund's status changes +message EventInflightFundStatusChanged { + // Transaction ID + string transaction_id = 1; + + // Route ID + uint32 route_id = 2; + + // Previous status + string previous_status = 3; + + // New status + string new_status = 4; + + // Amount + string amount = 5 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Status change reason + string reason = 6; + + // Block height + int64 block_height = 7; + + // Timestamp + google.protobuf.Timestamp timestamp = 8 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +// EventInflightFundCompleted is emitted when an inflight fund operation completes +message EventInflightFundCompleted { + // Transaction ID + string transaction_id = 1; + + // Route ID + uint32 route_id = 2; + + // Operation type + string operation_type = 3; + + // Final amount + string final_amount = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Initial amount + string initial_amount = 5 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Time taken (seconds) + int64 duration_seconds = 6; + + // Block height + int64 block_height = 7; + + // Timestamp + google.protobuf.Timestamp timestamp = 8 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +// EventInflightFundStale is emitted when an inflight fund is detected as stale +message EventInflightFundStale { + // Transaction ID + string transaction_id = 1; + + // Route ID + uint32 route_id = 2; + + // Amount + string amount = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Hours overdue + int64 hours_overdue = 4; + + // Expected completion time + google.protobuf.Timestamp expected_at = 5 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + + // Current status + string current_status = 6; + + // Recommended action + string recommended_action = 7; + + // Block height + int64 block_height = 8; + + // Timestamp + google.protobuf.Timestamp timestamp = 9 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +// EventInflightFundCleaned is emitted when a stale inflight fund is cleaned up +message EventInflightFundCleaned { + // Transaction ID + string transaction_id = 1; + + // Route ID + uint32 route_id = 2; + + // Amount returned to vault + string amount_returned = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Reason for cleanup + string reason = 4; + + // Authority that triggered cleanup + string authority = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // Block height + int64 block_height = 6; + + // Timestamp + google.protobuf.Timestamp timestamp = 7 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +// EventRouteCapacityExceeded is emitted when a route's capacity limit is reached +message EventRouteCapacityExceeded { + // Route ID + uint32 route_id = 1; + + // Current inflight value + string current_inflight_value = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Route capacity limit + string capacity_limit = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Attempted operation amount + string attempted_amount = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Block height + int64 block_height = 5; + + // Timestamp + google.protobuf.Timestamp timestamp = 6 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} diff --git a/proto/noble/dollar/vaults/v2/fees.proto b/proto/noble/dollar/vaults/v2/fees.proto index 6a8ca6a8..437a334c 100644 --- a/proto/noble/dollar/vaults/v2/fees.proto +++ b/proto/noble/dollar/vaults/v2/fees.proto @@ -7,7 +7,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // FeeType defines the different types of fees that can be collected enum FeeType { diff --git a/proto/noble/dollar/vaults/v2/genesis.proto b/proto/noble/dollar/vaults/v2/genesis.proto index 33f2ed9c..b8277dd6 100644 --- a/proto/noble/dollar/vaults/v2/genesis.proto +++ b/proto/noble/dollar/vaults/v2/genesis.proto @@ -5,10 +5,11 @@ package noble.dollar.vaults.v2; import "amino/amino.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; import "noble/dollar/vaults/v2/nav.proto"; import "noble/dollar/vaults/v2/vaults.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // GenesisState defines the V2 vaults module's genesis state message GenesisState { @@ -66,6 +67,9 @@ message Params { // Whether V2 vault are enabled bool vault_enabled = 7; + + // TWAP configuration for share pricing + TWAPConfig twap_config = 8 [(gogoproto.nullable) = false]; } // VaultConfig stores configuration for a specific vault type diff --git a/proto/noble/dollar/vaults/v2/nav.proto b/proto/noble/dollar/vaults/v2/nav.proto index c44d1d31..abd919d8 100644 --- a/proto/noble/dollar/vaults/v2/nav.proto +++ b/proto/noble/dollar/vaults/v2/nav.proto @@ -7,7 +7,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // NAVBand defines the pricing bands for deposits and withdrawals message NAVBand { diff --git a/proto/noble/dollar/vaults/v2/oracle.proto b/proto/noble/dollar/vaults/v2/oracle.proto index d486c378..95967891 100644 --- a/proto/noble/dollar/vaults/v2/oracle.proto +++ b/proto/noble/dollar/vaults/v2/oracle.proto @@ -9,7 +9,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; import "noble/dollar/vaults/v2/cross_chain.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // ========== Oracle Types ========== diff --git a/proto/noble/dollar/vaults/v2/query.proto b/proto/noble/dollar/vaults/v2/query.proto index f04f623a..294d2f85 100644 --- a/proto/noble/dollar/vaults/v2/query.proto +++ b/proto/noble/dollar/vaults/v2/query.proto @@ -11,7 +11,7 @@ import "noble/dollar/vaults/v2/cross_chain.proto"; import "noble/dollar/vaults/v2/genesis.proto"; import "noble/dollar/vaults/v2/vaults.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // Query defines the gRPC querier service for V2 vaults service Query { diff --git a/proto/noble/dollar/vaults/v2/tx.proto b/proto/noble/dollar/vaults/v2/tx.proto index 1fdd17f1..af2020e5 100644 --- a/proto/noble/dollar/vaults/v2/tx.proto +++ b/proto/noble/dollar/vaults/v2/tx.proto @@ -10,8 +10,9 @@ import "google/protobuf/timestamp.proto"; import "noble/dollar/vaults/v2/cross_chain.proto"; import "noble/dollar/vaults/v2/genesis.proto"; import "noble/dollar/vaults/v2/oracle.proto"; +import "noble/dollar/vaults/v2/vaults.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // Msg defines the V2 vaults transaction service service Msg { @@ -86,6 +87,12 @@ service Msg { // Handle stale inflight fund record (authority only) rpc HandleStaleInflight(MsgHandleStaleInflight) returns (MsgHandleStaleInflightResponse); + + // Update deposit limits (authority only) + rpc UpdateDepositLimits(MsgUpdateDepositLimits) returns (MsgUpdateDepositLimitsResponse); + + // Cleanup stale inflight fund (authority only) + rpc CleanupStaleInflight(MsgCleanupStaleInflight) returns (MsgCleanupStaleInflightResponse); } // MsgDeposit allows users to deposit into a V2 vault @@ -107,8 +114,11 @@ message MsgDeposit { (amino.dont_omitempty) = true ]; - // Whether user wants to receive yield - optional bool receive_yield = 3; // optional for setting yield in a single message otherwise detaul to the current preference for the user. + // Whether user wants to receive yield for this deposit. + bool receive_yield = 3; + + // Set to true when the deposit should override the current preference. + bool receive_yield_override = 4; } // MsgDepositResponse returns the results of a deposit @@ -816,3 +826,68 @@ message MsgHandleStaleInflightResponse { (gogoproto.stdtime) = true ]; } + +// MsgUpdateDepositLimits updates deposit limits and risk controls +message MsgUpdateDepositLimits { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "dollar/vaults/v2/UpdateDepositLimits"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + // Authority performing the update + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // New deposit limits configuration + DepositLimit limits = 2 [(gogoproto.nullable) = false]; + + // Reason for the update + string reason = 3; +} + +// MsgUpdateDepositLimitsResponse confirms the deposit limits update +message MsgUpdateDepositLimitsResponse { + // Previous limits configuration (JSON) + string previous_limits = 1; + + // New limits configuration (JSON) + string new_limits = 2; +} + +// MsgCleanupStaleInflight removes a stale inflight fund and returns value to vault +message MsgCleanupStaleInflight { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "noble/dollar/vaults/v2/CleanupStaleInflight"; + + // Authority address (must match module authority) + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // Transaction ID of the stale inflight fund + string transaction_id = 2; + + // Reason for cleanup (for audit trail) + string reason = 3; +} + +// MsgCleanupStaleInflightResponse returns details of the cleanup +message MsgCleanupStaleInflightResponse { + // Transaction ID that was cleaned up + string transaction_id = 1; + + // Amount returned to vault + string amount_returned = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Route ID + uint32 route_id = 3; + + // Timestamp of cleanup + google.protobuf.Timestamp cleaned_at = 4 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} diff --git a/proto/noble/dollar/vaults/v2/vaults.proto b/proto/noble/dollar/vaults/v2/vaults.proto index a84279ac..c0409804 100644 --- a/proto/noble/dollar/vaults/v2/vaults.proto +++ b/proto/noble/dollar/vaults/v2/vaults.proto @@ -7,7 +7,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "dollar.noble.xyz/v2/types/vaults/v2"; +option go_package = "dollar.noble.xyz/v3/types/vaults/v2"; // NOBLE DOLLAR V2 VAULT SYSTEM - YIELD-TRACKING ACCOUNTING // @@ -286,3 +286,102 @@ message YieldDistribution { // Number of eligible depositors uint64 eligible_depositors = 4; } + +// DepositLimit defines deposit limits and risk controls +message DepositLimit { + // Maximum deposit amount per user per time window + string max_user_deposit_per_window = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Maximum deposit volume per block + string max_block_deposit_volume = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Global maximum total deposits (vault capacity) + string global_deposit_cap = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Cooldown period in blocks between deposits + int64 deposit_cooldown_blocks = 4; + + // Time window for velocity tracking (in blocks) + int64 velocity_window_blocks = 5; + + // Maximum number of deposits per user in time window + uint32 max_deposits_per_window = 6; +} + +// DepositVelocity tracks user deposit velocity for risk monitoring +message DepositVelocity { + // Block height of last deposit + int64 last_deposit_block = 1; + + // Number of deposits in recent time window + uint32 recent_deposit_count = 2; + + // Total volume deposited in recent time window + string recent_deposit_volume = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Time window size in blocks + int64 time_window_blocks = 4; +} + +// TWAPConfig configures Time-Weighted Average Price for share pricing +message TWAPConfig { + // Whether TWAP is enabled for share pricing + bool enabled = 1; + + // Number of historical NAV snapshots to include in TWAP calculation + uint32 window_size = 2; + + // Minimum time between NAV snapshots (in seconds) + int64 min_snapshot_interval = 3; + + // Maximum age of snapshots to include (in seconds) + int64 max_snapshot_age = 4; +} + +// NAVSnapshot represents a point-in-time NAV observation for TWAP +message NAVSnapshot { + // NAV value at this snapshot + string nav = 1 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + // Timestamp of this snapshot + google.protobuf.Timestamp timestamp = 2 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + + // Block height at this snapshot + int64 block_height = 3; + + // Total shares at this snapshot (for reference) + string total_shares = 4 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} diff --git a/third_party/github.com/gogo/protobuf/grpc/go.mod b/third_party/github.com/gogo/protobuf/grpc/go.mod new file mode 100644 index 00000000..6d77fd64 --- /dev/null +++ b/third_party/github.com/gogo/protobuf/grpc/go.mod @@ -0,0 +1,6 @@ +module github.com/gogo/protobuf/grpc + +go 1.24 + +require google.golang.org/grpc v1.70.0 + diff --git a/types/vaults/v2/codec.go b/types/vaults/v2/codec.go new file mode 100644 index 00000000..0e173971 --- /dev/null +++ b/types/vaults/v2/codec.go @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: BUSL-1.1 +// +// Copyright (C) 2025, NASD Inc. All rights reserved. +// Use of this software is governed by the Business Source License included +// in the LICENSE file of this repository and at www.mariadb.com/bsl11. +// +// ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY +// TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER +// VERSIONS OF THE LICENSED WORK. +// +// THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF +// LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF +// LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE). +// +// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +// TITLE. + +package v2 + +import ( + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + cdc.RegisterConcrete(&MsgDeposit{}, "dollar/vaults/v2/Deposit", nil) + cdc.RegisterConcrete(&MsgRequestWithdrawal{}, "dollar/vaults/v2/RequestWithdrawal", nil) + cdc.RegisterConcrete(&MsgClaimWithdrawal{}, "dollar/vaults/v2/ClaimWithdrawal", nil) + cdc.RegisterConcrete(&MsgSetYieldPreference{}, "dollar/vaults/v2/SetYieldPreference", nil) + cdc.RegisterConcrete(&MsgProcessWithdrawalQueue{}, "dollar/vaults/v2/ProcessWithdrawalQueue", nil) + cdc.RegisterConcrete(&MsgUpdateVaultConfig{}, "dollar/vaults/v2/UpdateVaultConfig", nil) + cdc.RegisterConcrete(&MsgUpdateParams{}, "dollar/vaults/v2/UpdateParams", nil) + cdc.RegisterConcrete(&MsgCreateCrossChainRoute{}, "dollar/vaults/v2/CreateCrossChainRoute", nil) + cdc.RegisterConcrete(&MsgUpdateCrossChainRoute{}, "dollar/vaults/v2/UpdateCrossChainRoute", nil) + cdc.RegisterConcrete(&MsgDisableCrossChainRoute{}, "dollar/vaults/v2/DisableCrossChainRoute", nil) + cdc.RegisterConcrete(&MsgCreateRemotePosition{}, "dollar/vaults/v2/CreateRemotePosition", nil) + cdc.RegisterConcrete(&MsgCloseRemotePosition{}, "dollar/vaults/v2/CloseRemotePosition", nil) + cdc.RegisterConcrete(&MsgRebalance{}, "dollar/vaults/v2/Rebalance", nil) + cdc.RegisterConcrete(&MsgRemoteDeposit{}, "dollar/vaults/v2/RemoteDeposit", nil) + cdc.RegisterConcrete(&MsgRemoteWithdraw{}, "dollar/vaults/v2/RemoteWithdraw", nil) + cdc.RegisterConcrete(&MsgProcessInFlightPosition{}, "dollar/vaults/v2/ProcessInFlightPosition", nil) + cdc.RegisterConcrete(&MsgUpdateNAV{}, "dollar/vaults/v2/UpdateNAV", nil) + cdc.RegisterConcrete(&MsgHandleStaleInflight{}, "dollar/vaults/v2/HandleStaleInflight", nil) + cdc.RegisterConcrete(&MsgRegisterOracle{}, "dollar/vaults/v2/RegisterOracle", nil) + cdc.RegisterConcrete(&MsgUpdateOracleConfig{}, "dollar/vaults/v2/UpdateOracleConfig", nil) + cdc.RegisterConcrete(&MsgRemoveOracle{}, "dollar/vaults/v2/RemoveOracle", nil) + cdc.RegisterConcrete(&MsgUpdateOracleParams{}, "dollar/vaults/v2/UpdateOracleParams", nil) +} + +func RegisterInterfaces(registry codectypes.InterfaceRegistry) { + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/types/vaults/v2/cross_chain.pb.go b/types/vaults/v2/cross_chain.pb.go new file mode 100644 index 00000000..ed9fe775 --- /dev/null +++ b/types/vaults/v2/cross_chain.pb.go @@ -0,0 +1,5371 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/cross_chain.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + encoding_binary "encoding/binary" + fmt "fmt" + github_com_bcp_innovations_hyperlane_cosmos_util "github.com/bcp-innovations/hyperlane-cosmos/util" + _ "github.com/bcp-innovations/hyperlane-cosmos/x/warp/types" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// RemotePositionStatus represents the status of a remote position +type RemotePositionStatus int32 + +const ( + // Position is active and being tracked + REMOTE_POSITION_ACTIVE RemotePositionStatus = 0 + // Position is being withdrawn from + REMOTE_POSITION_WITHDRAWING RemotePositionStatus = 1 + // Position has been closed + REMOTE_POSITION_CLOSED RemotePositionStatus = 2 + // Position is in error state + REMOTE_POSITION_ERROR RemotePositionStatus = 3 +) + +var RemotePositionStatus_name = map[int32]string{ + 0: "REMOTE_POSITION_ACTIVE", + 1: "REMOTE_POSITION_WITHDRAWING", + 2: "REMOTE_POSITION_CLOSED", + 3: "REMOTE_POSITION_ERROR", +} + +var RemotePositionStatus_value = map[string]int32{ + "REMOTE_POSITION_ACTIVE": 0, + "REMOTE_POSITION_WITHDRAWING": 1, + "REMOTE_POSITION_CLOSED": 2, + "REMOTE_POSITION_ERROR": 3, +} + +func (x RemotePositionStatus) String() string { + return proto.EnumName(RemotePositionStatus_name, int32(x)) +} + +func (RemotePositionStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{0} +} + +// OperationType represents the type of cross-chain operation +type OperationType int32 + +const ( + // Deposit operation + OPERATION_TYPE_DEPOSIT OperationType = 0 + // Withdrawal operation + OPERATION_TYPE_WITHDRAWAL OperationType = 1 + // Rebalance operation + OPERATION_TYPE_REBALANCE OperationType = 2 +) + +var OperationType_name = map[int32]string{ + 0: "OPERATION_TYPE_DEPOSIT", + 1: "OPERATION_TYPE_WITHDRAWAL", + 2: "OPERATION_TYPE_REBALANCE", +} + +var OperationType_value = map[string]int32{ + "OPERATION_TYPE_DEPOSIT": 0, + "OPERATION_TYPE_WITHDRAWAL": 1, + "OPERATION_TYPE_REBALANCE": 2, +} + +func (x OperationType) String() string { + return proto.EnumName(OperationType_name, int32(x)) +} + +func (OperationType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{1} +} + +// InflightType defines the type of inflight funds +type InflightType int32 + +const ( + // USDN being deployed to a remote position + INFLIGHT_DEPOSIT_TO_POSITION InflightType = 0 + // USDN returning from a remote position + INFLIGHT_WITHDRAWAL_FROM_POSITION InflightType = 1 + // USDN moving between positions (via Noble) + INFLIGHT_REBALANCE_BETWEEN_POSITIONS InflightType = 2 + // USDN awaiting deployment to positions + INFLIGHT_PENDING_DEPLOYMENT InflightType = 3 + // USDN awaiting distribution to withdrawal queue + INFLIGHT_PENDING_WITHDRAWAL_DISTRIBUTION InflightType = 4 +) + +var InflightType_name = map[int32]string{ + 0: "INFLIGHT_DEPOSIT_TO_POSITION", + 1: "INFLIGHT_WITHDRAWAL_FROM_POSITION", + 2: "INFLIGHT_REBALANCE_BETWEEN_POSITIONS", + 3: "INFLIGHT_PENDING_DEPLOYMENT", + 4: "INFLIGHT_PENDING_WITHDRAWAL_DISTRIBUTION", +} + +var InflightType_value = map[string]int32{ + "INFLIGHT_DEPOSIT_TO_POSITION": 0, + "INFLIGHT_WITHDRAWAL_FROM_POSITION": 1, + "INFLIGHT_REBALANCE_BETWEEN_POSITIONS": 2, + "INFLIGHT_PENDING_DEPLOYMENT": 3, + "INFLIGHT_PENDING_WITHDRAWAL_DISTRIBUTION": 4, +} + +func (x InflightType) String() string { + return proto.EnumName(InflightType_name, int32(x)) +} + +func (InflightType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{2} +} + +// InflightStatus represents the status of inflight funds +type InflightStatus int32 + +const ( + // Transaction is pending + INFLIGHT_PENDING InflightStatus = 0 + // Transaction is confirmed by provider + INFLIGHT_CONFIRMED InflightStatus = 1 + // Transaction completed successfully + INFLIGHT_COMPLETED InflightStatus = 2 + // Transaction failed + INFLIGHT_FAILED InflightStatus = 3 + // Transaction timed out + INFLIGHT_TIMEOUT InflightStatus = 4 +) + +var InflightStatus_name = map[int32]string{ + 0: "INFLIGHT_PENDING", + 1: "INFLIGHT_CONFIRMED", + 2: "INFLIGHT_COMPLETED", + 3: "INFLIGHT_FAILED", + 4: "INFLIGHT_TIMEOUT", +} + +var InflightStatus_value = map[string]int32{ + "INFLIGHT_PENDING": 0, + "INFLIGHT_CONFIRMED": 1, + "INFLIGHT_COMPLETED": 2, + "INFLIGHT_FAILED": 3, + "INFLIGHT_TIMEOUT": 4, +} + +func (x InflightStatus) String() string { + return proto.EnumName(InflightStatus_name, int32(x)) +} + +func (InflightStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{3} +} + +// OracleUpdateStatus represents the status of an oracle update +type OracleUpdateStatus int32 + +const ( + // Update has been validated + ORACLE_UPDATE_VALIDATED OracleUpdateStatus = 0 + // Update has been applied to position + ORACLE_UPDATE_APPLIED OracleUpdateStatus = 1 + // Update was rejected (stale, invalid, etc.) + ORACLE_UPDATE_REJECTED OracleUpdateStatus = 2 +) + +var OracleUpdateStatus_name = map[int32]string{ + 0: "ORACLE_UPDATE_VALIDATED", + 1: "ORACLE_UPDATE_APPLIED", + 2: "ORACLE_UPDATE_REJECTED", +} + +var OracleUpdateStatus_value = map[string]int32{ + "ORACLE_UPDATE_VALIDATED": 0, + "ORACLE_UPDATE_APPLIED": 1, + "ORACLE_UPDATE_REJECTED": 2, +} + +func (x OracleUpdateStatus) String() string { + return proto.EnumName(OracleUpdateStatus_name, int32(x)) +} + +func (OracleUpdateStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{4} +} + +// ProviderType represents the cross-chain provider type +type ProviderType int32 + +const ( + // Hyperlane provider + PROVIDER_TYPE_HYPERLANE ProviderType = 0 + // IBC provider + PROVIDER_TYPE_IBC ProviderType = 1 +) + +var ProviderType_name = map[int32]string{ + 0: "PROVIDER_TYPE_HYPERLANE", + 1: "PROVIDER_TYPE_IBC", +} + +var ProviderType_value = map[string]int32{ + "PROVIDER_TYPE_HYPERLANE": 0, + "PROVIDER_TYPE_IBC": 1, +} + +func (x ProviderType) String() string { + return proto.EnumName(ProviderType_name, int32(x)) +} + +func (ProviderType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{5} +} + +// CrossChainRoute defines a route for cross-chain operations +// Currently supports Hyperlane, with potential for future IBC support +type CrossChainRoute struct { + // HypToken + HyptokenId github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,1,opt,name=hyptoken_id,json=hyptokenId,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"hyptoken_id"` + // Reciever chain hook; + ReceiverChainHook github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,2,opt,name=receiver_chain_hook,json=receiverChainHook,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"receiver_chain_hook"` + // Vault + RemotePositionAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,3,opt,name=remote_position_address,json=remotePositionAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"remote_position_address"` + // Maximum value allowed inflight on this route + MaxInflightValue cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=max_inflight_value,json=maxInflightValue,proto3,customtype=cosmossdk.io/math.Int" json:"max_inflight_value"` +} + +func (m *CrossChainRoute) Reset() { *m = CrossChainRoute{} } +func (m *CrossChainRoute) String() string { return proto.CompactTextString(m) } +func (*CrossChainRoute) ProtoMessage() {} +func (*CrossChainRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{0} +} +func (m *CrossChainRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossChainRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossChainRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossChainRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossChainRoute.Merge(m, src) +} +func (m *CrossChainRoute) XXX_Size() int { + return m.Size() +} +func (m *CrossChainRoute) XXX_DiscardUnknown() { + xxx_messageInfo_CrossChainRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossChainRoute proto.InternalMessageInfo + +// RemotePosition represents a position in an ERC-4626 compatible vault on another chain +type RemotePosition struct { + // HypToken + HyptokenId github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,1,opt,name=hyptoken_id,json=hyptokenId,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"hyptoken_id"` + // Address of the ERC-4626 compatible vault + VaultAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,2,opt,name=vault_address,json=vaultAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"vault_address"` + // Number of vault shares held + SharesHeld cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=shares_held,json=sharesHeld,proto3,customtype=cosmossdk.io/math.Int" json:"shares_held"` + // Principal amount initially deposited (in USDN) + Principal cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=principal,proto3,customtype=cosmossdk.io/math.Int" json:"principal"` + // Current share price from oracle + SharePrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=share_price,json=sharePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"share_price"` + // Total value of position (shares * price) + TotalValue cosmossdk_io_math.Int `protobuf:"bytes,6,opt,name=total_value,json=totalValue,proto3,customtype=cosmossdk.io/math.Int" json:"total_value"` + // Last oracle update timestamp + LastUpdate time.Time `protobuf:"bytes,7,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"` + // Position status + Status RemotePositionStatus `protobuf:"varint,8,opt,name=status,proto3,enum=noble.dollar.vaults.v2.RemotePositionStatus" json:"status,omitempty"` + // Oracle configuration for this position + OracleAddress string `protobuf:"bytes,9,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` + // Maximum staleness for oracle data (seconds) + MaxStaleness int64 `protobuf:"varint,10,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` +} + +func (m *RemotePosition) Reset() { *m = RemotePosition{} } +func (m *RemotePosition) String() string { return proto.CompactTextString(m) } +func (*RemotePosition) ProtoMessage() {} +func (*RemotePosition) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{1} +} +func (m *RemotePosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemotePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemotePosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemotePosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemotePosition.Merge(m, src) +} +func (m *RemotePosition) XXX_Size() int { + return m.Size() +} +func (m *RemotePosition) XXX_DiscardUnknown() { + xxx_messageInfo_RemotePosition.DiscardUnknown(m) +} + +var xxx_messageInfo_RemotePosition proto.InternalMessageInfo + +func (m *RemotePosition) GetLastUpdate() time.Time { + if m != nil { + return m.LastUpdate + } + return time.Time{} +} + +func (m *RemotePosition) GetStatus() RemotePositionStatus { + if m != nil { + return m.Status + } + return REMOTE_POSITION_ACTIVE +} + +func (m *RemotePosition) GetOracleAddress() string { + if m != nil { + return m.OracleAddress + } + return "" +} + +func (m *RemotePosition) GetMaxStaleness() int64 { + if m != nil { + return m.MaxStaleness + } + return 0 +} + +// InflightFund represents funds in transit between Noble and remote positions +type InflightFund struct { + // Unique identifier for this inflight transaction + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Transaction ID (Hyperlane message ID or IBC packet sequence) + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Amount in USDN (always USDN, never shares) + Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Origin information + // + // Types that are valid to be assigned to Origin: + // *InflightFund_NobleOrigin + // *InflightFund_RemoteOrigin + Origin isInflightFund_Origin `protobuf_oneof:"origin"` + // Destination information + // + // Types that are valid to be assigned to Destination: + // *InflightFund_NobleDestination + // *InflightFund_RemoteDestination + Destination isInflightFund_Destination `protobuf_oneof:"destination"` + // When the operation was initiated + InitiatedAt time.Time `protobuf:"bytes,8,opt,name=initiated_at,json=initiatedAt,proto3,stdtime" json:"initiated_at"` + // Expected completion time + ExpectedAt time.Time `protobuf:"bytes,9,opt,name=expected_at,json=expectedAt,proto3,stdtime" json:"expected_at"` + // Current status + Status InflightStatus `protobuf:"varint,10,opt,name=status,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"status,omitempty"` + // Value at initiation (for NAV calculation) + ValueAtInitiation cosmossdk_io_math.Int `protobuf:"bytes,11,opt,name=value_at_initiation,json=valueAtInitiation,proto3,customtype=cosmossdk.io/math.Int" json:"value_at_initiation"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,12,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (m *InflightFund) Reset() { *m = InflightFund{} } +func (m *InflightFund) String() string { return proto.CompactTextString(m) } +func (*InflightFund) ProtoMessage() {} +func (*InflightFund) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{2} +} +func (m *InflightFund) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InflightFund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InflightFund.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InflightFund) XXX_Merge(src proto.Message) { + xxx_messageInfo_InflightFund.Merge(m, src) +} +func (m *InflightFund) XXX_Size() int { + return m.Size() +} +func (m *InflightFund) XXX_DiscardUnknown() { + xxx_messageInfo_InflightFund.DiscardUnknown(m) +} + +var xxx_messageInfo_InflightFund proto.InternalMessageInfo + +type isInflightFund_Origin interface { + isInflightFund_Origin() + MarshalTo([]byte) (int, error) + Size() int +} +type isInflightFund_Destination interface { + isInflightFund_Destination() + MarshalTo([]byte) (int, error) + Size() int +} + +type InflightFund_NobleOrigin struct { + NobleOrigin *NobleEndpoint `protobuf:"bytes,4,opt,name=noble_origin,json=nobleOrigin,proto3,oneof" json:"noble_origin,omitempty"` +} +type InflightFund_RemoteOrigin struct { + RemoteOrigin *RemotePosition `protobuf:"bytes,5,opt,name=remote_origin,json=remoteOrigin,proto3,oneof" json:"remote_origin,omitempty"` +} +type InflightFund_NobleDestination struct { + NobleDestination *NobleEndpoint `protobuf:"bytes,6,opt,name=noble_destination,json=nobleDestination,proto3,oneof" json:"noble_destination,omitempty"` +} +type InflightFund_RemoteDestination struct { + RemoteDestination *RemotePosition `protobuf:"bytes,7,opt,name=remote_destination,json=remoteDestination,proto3,oneof" json:"remote_destination,omitempty"` +} + +func (*InflightFund_NobleOrigin) isInflightFund_Origin() {} +func (*InflightFund_RemoteOrigin) isInflightFund_Origin() {} +func (*InflightFund_NobleDestination) isInflightFund_Destination() {} +func (*InflightFund_RemoteDestination) isInflightFund_Destination() {} + +func (m *InflightFund) GetOrigin() isInflightFund_Origin { + if m != nil { + return m.Origin + } + return nil +} +func (m *InflightFund) GetDestination() isInflightFund_Destination { + if m != nil { + return m.Destination + } + return nil +} + +func (m *InflightFund) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *InflightFund) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *InflightFund) GetNobleOrigin() *NobleEndpoint { + if x, ok := m.GetOrigin().(*InflightFund_NobleOrigin); ok { + return x.NobleOrigin + } + return nil +} + +func (m *InflightFund) GetRemoteOrigin() *RemotePosition { + if x, ok := m.GetOrigin().(*InflightFund_RemoteOrigin); ok { + return x.RemoteOrigin + } + return nil +} + +func (m *InflightFund) GetNobleDestination() *NobleEndpoint { + if x, ok := m.GetDestination().(*InflightFund_NobleDestination); ok { + return x.NobleDestination + } + return nil +} + +func (m *InflightFund) GetRemoteDestination() *RemotePosition { + if x, ok := m.GetDestination().(*InflightFund_RemoteDestination); ok { + return x.RemoteDestination + } + return nil +} + +func (m *InflightFund) GetInitiatedAt() time.Time { + if m != nil { + return m.InitiatedAt + } + return time.Time{} +} + +func (m *InflightFund) GetExpectedAt() time.Time { + if m != nil { + return m.ExpectedAt + } + return time.Time{} +} + +func (m *InflightFund) GetStatus() InflightStatus { + if m != nil { + return m.Status + } + return INFLIGHT_PENDING +} + +func (m *InflightFund) GetProviderTracking() *ProviderTrackingInfo { + if m != nil { + return m.ProviderTracking + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*InflightFund) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*InflightFund_NobleOrigin)(nil), + (*InflightFund_RemoteOrigin)(nil), + (*InflightFund_NobleDestination)(nil), + (*InflightFund_RemoteDestination)(nil), + } +} + +// NobleEndpoint represents Noble as an origin or destination +type NobleEndpoint struct { + // Purpose/context of the operation (deposit, withdrawal, rebalance) + OperationType OperationType `protobuf:"varint,1,opt,name=operation_type,json=operationType,proto3,enum=noble.dollar.vaults.v2.OperationType" json:"operation_type,omitempty"` +} + +func (m *NobleEndpoint) Reset() { *m = NobleEndpoint{} } +func (m *NobleEndpoint) String() string { return proto.CompactTextString(m) } +func (*NobleEndpoint) ProtoMessage() {} +func (*NobleEndpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{3} +} +func (m *NobleEndpoint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NobleEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NobleEndpoint.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NobleEndpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_NobleEndpoint.Merge(m, src) +} +func (m *NobleEndpoint) XXX_Size() int { + return m.Size() +} +func (m *NobleEndpoint) XXX_DiscardUnknown() { + xxx_messageInfo_NobleEndpoint.DiscardUnknown(m) +} + +var xxx_messageInfo_NobleEndpoint proto.InternalMessageInfo + +func (m *NobleEndpoint) GetOperationType() OperationType { + if m != nil { + return m.OperationType + } + return OPERATION_TYPE_DEPOSIT +} + +// ProviderTrackingInfo contains provider-specific tracking data +type ProviderTrackingInfo struct { + // Types that are valid to be assigned to TrackingInfo: + // + // *ProviderTrackingInfo_HyperlaneTracking + TrackingInfo isProviderTrackingInfo_TrackingInfo `protobuf_oneof:"tracking_info"` +} + +func (m *ProviderTrackingInfo) Reset() { *m = ProviderTrackingInfo{} } +func (m *ProviderTrackingInfo) String() string { return proto.CompactTextString(m) } +func (*ProviderTrackingInfo) ProtoMessage() {} +func (*ProviderTrackingInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{4} +} +func (m *ProviderTrackingInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProviderTrackingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProviderTrackingInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ProviderTrackingInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProviderTrackingInfo.Merge(m, src) +} +func (m *ProviderTrackingInfo) XXX_Size() int { + return m.Size() +} +func (m *ProviderTrackingInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ProviderTrackingInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ProviderTrackingInfo proto.InternalMessageInfo + +type isProviderTrackingInfo_TrackingInfo interface { + isProviderTrackingInfo_TrackingInfo() + MarshalTo([]byte) (int, error) + Size() int +} + +type ProviderTrackingInfo_HyperlaneTracking struct { + HyperlaneTracking *HyperlaneTrackingInfo `protobuf:"bytes,1,opt,name=hyperlane_tracking,json=hyperlaneTracking,proto3,oneof" json:"hyperlane_tracking,omitempty"` +} + +func (*ProviderTrackingInfo_HyperlaneTracking) isProviderTrackingInfo_TrackingInfo() {} + +func (m *ProviderTrackingInfo) GetTrackingInfo() isProviderTrackingInfo_TrackingInfo { + if m != nil { + return m.TrackingInfo + } + return nil +} + +func (m *ProviderTrackingInfo) GetHyperlaneTracking() *HyperlaneTrackingInfo { + if x, ok := m.GetTrackingInfo().(*ProviderTrackingInfo_HyperlaneTracking); ok { + return x.HyperlaneTracking + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ProviderTrackingInfo) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ProviderTrackingInfo_HyperlaneTracking)(nil), + } +} + +// HyperlaneTrackingInfo contains Hyperlane-specific tracking data +type HyperlaneTrackingInfo struct { + // Hyperlane message ID + MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + // Origin domain + OriginDomain uint32 `protobuf:"varint,2,opt,name=origin_domain,json=originDomain,proto3" json:"origin_domain,omitempty"` + // Destination domain + DestinationDomain uint32 `protobuf:"varint,3,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` + // Message nonce + Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Transaction hash on origin chain + OriginTxHash string `protobuf:"bytes,5,opt,name=origin_tx_hash,json=originTxHash,proto3" json:"origin_tx_hash,omitempty"` + // Transaction hash on destination chain + DestinationTxHash string `protobuf:"bytes,6,opt,name=destination_tx_hash,json=destinationTxHash,proto3" json:"destination_tx_hash,omitempty"` + // Whether message has been processed + Processed bool `protobuf:"varint,7,opt,name=processed,proto3" json:"processed,omitempty"` +} + +func (m *HyperlaneTrackingInfo) Reset() { *m = HyperlaneTrackingInfo{} } +func (m *HyperlaneTrackingInfo) String() string { return proto.CompactTextString(m) } +func (*HyperlaneTrackingInfo) ProtoMessage() {} +func (*HyperlaneTrackingInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{5} +} +func (m *HyperlaneTrackingInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HyperlaneTrackingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HyperlaneTrackingInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *HyperlaneTrackingInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperlaneTrackingInfo.Merge(m, src) +} +func (m *HyperlaneTrackingInfo) XXX_Size() int { + return m.Size() +} +func (m *HyperlaneTrackingInfo) XXX_DiscardUnknown() { + xxx_messageInfo_HyperlaneTrackingInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperlaneTrackingInfo proto.InternalMessageInfo + +func (m *HyperlaneTrackingInfo) GetMessageId() []byte { + if m != nil { + return m.MessageId + } + return nil +} + +func (m *HyperlaneTrackingInfo) GetOriginDomain() uint32 { + if m != nil { + return m.OriginDomain + } + return 0 +} + +func (m *HyperlaneTrackingInfo) GetDestinationDomain() uint32 { + if m != nil { + return m.DestinationDomain + } + return 0 +} + +func (m *HyperlaneTrackingInfo) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *HyperlaneTrackingInfo) GetOriginTxHash() string { + if m != nil { + return m.OriginTxHash + } + return "" +} + +func (m *HyperlaneTrackingInfo) GetDestinationTxHash() string { + if m != nil { + return m.DestinationTxHash + } + return "" +} + +func (m *HyperlaneTrackingInfo) GetProcessed() bool { + if m != nil { + return m.Processed + } + return false +} + +// NAVOracleUpdate represents an oracle price update received via cross-chain messaging +type NAVOracleUpdate struct { + // Position identifier this update is for + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Current share price + SharePrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=share_price,json=sharePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"share_price"` + // Number of shares held + SharesHeld cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=shares_held,json=sharesHeld,proto3,customtype=cosmossdk.io/math.Int" json:"shares_held"` + // Timestamp of the update + Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Source chain identifier + SourceChain string `protobuf:"bytes,5,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Message ID (Hyperlane message ID or IBC packet) + MessageId string `protobuf:"bytes,6,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` + // Update status + Status OracleUpdateStatus `protobuf:"varint,7,opt,name=status,proto3,enum=noble.dollar.vaults.v2.OracleUpdateStatus" json:"status,omitempty"` +} + +func (m *NAVOracleUpdate) Reset() { *m = NAVOracleUpdate{} } +func (m *NAVOracleUpdate) String() string { return proto.CompactTextString(m) } +func (*NAVOracleUpdate) ProtoMessage() {} +func (*NAVOracleUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{6} +} +func (m *NAVOracleUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVOracleUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVOracleUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVOracleUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVOracleUpdate.Merge(m, src) +} +func (m *NAVOracleUpdate) XXX_Size() int { + return m.Size() +} +func (m *NAVOracleUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_NAVOracleUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVOracleUpdate proto.InternalMessageInfo + +func (m *NAVOracleUpdate) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *NAVOracleUpdate) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *NAVOracleUpdate) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *NAVOracleUpdate) GetMessageId() string { + if m != nil { + return m.MessageId + } + return "" +} + +func (m *NAVOracleUpdate) GetStatus() OracleUpdateStatus { + if m != nil { + return m.Status + } + return ORACLE_UPDATE_VALIDATED +} + +// PositionOracleConfig stores oracle configuration for a position +type PositionOracleConfig struct { + // Unique position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Expected origin mailbox/channel + OriginIdentifier string `protobuf:"bytes,2,opt,name=origin_identifier,json=originIdentifier,proto3" json:"origin_identifier,omitempty"` + // Maximum age before data is considered stale (seconds) + MaxStaleness int64 `protobuf:"varint,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Authorized oracle contract address on remote chain + OracleContract string `protobuf:"bytes,4,opt,name=oracle_contract,json=oracleContract,proto3" json:"oracle_contract,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,5,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Last update timestamp + LastUpdate time.Time `protobuf:"bytes,6,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"` + // Provider type (HYPERLANE, IBC) + ProviderType ProviderType `protobuf:"varint,7,opt,name=provider_type,json=providerType,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"provider_type,omitempty"` +} + +func (m *PositionOracleConfig) Reset() { *m = PositionOracleConfig{} } +func (m *PositionOracleConfig) String() string { return proto.CompactTextString(m) } +func (*PositionOracleConfig) ProtoMessage() {} +func (*PositionOracleConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{7} +} +func (m *PositionOracleConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionOracleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionOracleConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PositionOracleConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionOracleConfig.Merge(m, src) +} +func (m *PositionOracleConfig) XXX_Size() int { + return m.Size() +} +func (m *PositionOracleConfig) XXX_DiscardUnknown() { + xxx_messageInfo_PositionOracleConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionOracleConfig proto.InternalMessageInfo + +func (m *PositionOracleConfig) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *PositionOracleConfig) GetOriginIdentifier() string { + if m != nil { + return m.OriginIdentifier + } + return "" +} + +func (m *PositionOracleConfig) GetMaxStaleness() int64 { + if m != nil { + return m.MaxStaleness + } + return 0 +} + +func (m *PositionOracleConfig) GetOracleContract() string { + if m != nil { + return m.OracleContract + } + return "" +} + +func (m *PositionOracleConfig) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *PositionOracleConfig) GetLastUpdate() time.Time { + if m != nil { + return m.LastUpdate + } + return time.Time{} +} + +func (m *PositionOracleConfig) GetProviderType() ProviderType { + if m != nil { + return m.ProviderType + } + return PROVIDER_TYPE_HYPERLANE +} + +// CrossChainPositionSnapshot provides a snapshot of all cross-chain positions +type CrossChainPositionSnapshot struct { + // Total value of all remote positions + TotalRemoteValue cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_remote_value,json=totalRemoteValue,proto3,customtype=cosmossdk.io/math.Int" json:"total_remote_value"` + // Total value of inflight funds + TotalInflightValue cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_inflight_value,json=totalInflightValue,proto3,customtype=cosmossdk.io/math.Int" json:"total_inflight_value"` + // Number of active remote positions + ActivePositions int64 `protobuf:"varint,3,opt,name=active_positions,json=activePositions,proto3" json:"active_positions,omitempty"` + // Number of positions with stale data + StalePositions int64 `protobuf:"varint,4,opt,name=stale_positions,json=stalePositions,proto3" json:"stale_positions,omitempty"` + // Snapshot timestamp + Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Breakdown by route + ValueByRoute map[uint32]string `protobuf:"bytes,6,rep,name=value_by_route,json=valueByRoute,proto3" json:"value_by_route,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *CrossChainPositionSnapshot) Reset() { *m = CrossChainPositionSnapshot{} } +func (m *CrossChainPositionSnapshot) String() string { return proto.CompactTextString(m) } +func (*CrossChainPositionSnapshot) ProtoMessage() {} +func (*CrossChainPositionSnapshot) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{8} +} +func (m *CrossChainPositionSnapshot) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossChainPositionSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossChainPositionSnapshot.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossChainPositionSnapshot) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossChainPositionSnapshot.Merge(m, src) +} +func (m *CrossChainPositionSnapshot) XXX_Size() int { + return m.Size() +} +func (m *CrossChainPositionSnapshot) XXX_DiscardUnknown() { + xxx_messageInfo_CrossChainPositionSnapshot.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossChainPositionSnapshot proto.InternalMessageInfo + +func (m *CrossChainPositionSnapshot) GetActivePositions() int64 { + if m != nil { + return m.ActivePositions + } + return 0 +} + +func (m *CrossChainPositionSnapshot) GetStalePositions() int64 { + if m != nil { + return m.StalePositions + } + return 0 +} + +func (m *CrossChainPositionSnapshot) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *CrossChainPositionSnapshot) GetValueByRoute() map[uint32]string { + if m != nil { + return m.ValueByRoute + } + return nil +} + +// CrossChainConfig defines global configuration for cross-chain operations +type CrossChainConfig struct { + // Maximum total remote position value as percentage of vault (basis points) + MaxRemoteExposure int32 `protobuf:"varint,1,opt,name=max_remote_exposure,json=maxRemoteExposure,proto3" json:"max_remote_exposure,omitempty"` + // Default operation timeout (seconds) + DefaultTimeout int64 `protobuf:"varint,2,opt,name=default_timeout,json=defaultTimeout,proto3" json:"default_timeout,omitempty"` + // Position update frequency (seconds) + UpdateFrequency int64 `protobuf:"varint,3,opt,name=update_frequency,json=updateFrequency,proto3" json:"update_frequency,omitempty"` + // Maximum number of remote positions + MaxRemotePositions uint32 `protobuf:"varint,4,opt,name=max_remote_positions,json=maxRemotePositions,proto3" json:"max_remote_positions,omitempty"` + // Allowed chains (can be Hyperlane domains or IBC chain IDs) + AllowedChains []string `protobuf:"bytes,5,rep,name=allowed_chains,json=allowedChains,proto3" json:"allowed_chains,omitempty"` + // Whether cross-chain operations are enabled + Enabled bool `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Maximum duration funds can be inflight (seconds) + MaxInflightDuration int64 `protobuf:"varint,7,opt,name=max_inflight_duration,json=maxInflightDuration,proto3" json:"max_inflight_duration,omitempty"` + // Maximum total value allowed inflight + MaxInflightValue cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=max_inflight_value,json=maxInflightValue,proto3,customtype=cosmossdk.io/math.Int" json:"max_inflight_value"` + // Supported providers (currently only HYPERLANE) + SupportedProviders []ProviderType `protobuf:"varint,9,rep,packed,name=supported_providers,json=supportedProviders,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"supported_providers,omitempty"` +} + +func (m *CrossChainConfig) Reset() { *m = CrossChainConfig{} } +func (m *CrossChainConfig) String() string { return proto.CompactTextString(m) } +func (*CrossChainConfig) ProtoMessage() {} +func (*CrossChainConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{9} +} +func (m *CrossChainConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossChainConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossChainConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossChainConfig.Merge(m, src) +} +func (m *CrossChainConfig) XXX_Size() int { + return m.Size() +} +func (m *CrossChainConfig) XXX_DiscardUnknown() { + xxx_messageInfo_CrossChainConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossChainConfig proto.InternalMessageInfo + +func (m *CrossChainConfig) GetMaxRemoteExposure() int32 { + if m != nil { + return m.MaxRemoteExposure + } + return 0 +} + +func (m *CrossChainConfig) GetDefaultTimeout() int64 { + if m != nil { + return m.DefaultTimeout + } + return 0 +} + +func (m *CrossChainConfig) GetUpdateFrequency() int64 { + if m != nil { + return m.UpdateFrequency + } + return 0 +} + +func (m *CrossChainConfig) GetMaxRemotePositions() uint32 { + if m != nil { + return m.MaxRemotePositions + } + return 0 +} + +func (m *CrossChainConfig) GetAllowedChains() []string { + if m != nil { + return m.AllowedChains + } + return nil +} + +func (m *CrossChainConfig) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + +func (m *CrossChainConfig) GetMaxInflightDuration() int64 { + if m != nil { + return m.MaxInflightDuration + } + return 0 +} + +func (m *CrossChainConfig) GetSupportedProviders() []ProviderType { + if m != nil { + return m.SupportedProviders + } + return nil +} + +// StaleInflightAlert represents an alert for inflight funds exceeding expected duration +type StaleInflightAlert struct { + // Route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Transaction ID + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Hours overdue + HoursOverdue float64 `protobuf:"fixed64,3,opt,name=hours_overdue,json=hoursOverdue,proto3" json:"hours_overdue,omitempty"` + // Alert timestamp + Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Amount stuck in transit + Amount cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *StaleInflightAlert) Reset() { *m = StaleInflightAlert{} } +func (m *StaleInflightAlert) String() string { return proto.CompactTextString(m) } +func (*StaleInflightAlert) ProtoMessage() {} +func (*StaleInflightAlert) Descriptor() ([]byte, []int) { + return fileDescriptor_4abec74535b2c22a, []int{10} +} +func (m *StaleInflightAlert) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StaleInflightAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StaleInflightAlert.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StaleInflightAlert) XXX_Merge(src proto.Message) { + xxx_messageInfo_StaleInflightAlert.Merge(m, src) +} +func (m *StaleInflightAlert) XXX_Size() int { + return m.Size() +} +func (m *StaleInflightAlert) XXX_DiscardUnknown() { + xxx_messageInfo_StaleInflightAlert.DiscardUnknown(m) +} + +var xxx_messageInfo_StaleInflightAlert proto.InternalMessageInfo + +func (m *StaleInflightAlert) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *StaleInflightAlert) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *StaleInflightAlert) GetHoursOverdue() float64 { + if m != nil { + return m.HoursOverdue + } + return 0 +} + +func (m *StaleInflightAlert) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func init() { + proto.RegisterEnum("noble.dollar.vaults.v2.RemotePositionStatus", RemotePositionStatus_name, RemotePositionStatus_value) + proto.RegisterEnum("noble.dollar.vaults.v2.OperationType", OperationType_name, OperationType_value) + proto.RegisterEnum("noble.dollar.vaults.v2.InflightType", InflightType_name, InflightType_value) + proto.RegisterEnum("noble.dollar.vaults.v2.InflightStatus", InflightStatus_name, InflightStatus_value) + proto.RegisterEnum("noble.dollar.vaults.v2.OracleUpdateStatus", OracleUpdateStatus_name, OracleUpdateStatus_value) + proto.RegisterEnum("noble.dollar.vaults.v2.ProviderType", ProviderType_name, ProviderType_value) + proto.RegisterType((*CrossChainRoute)(nil), "noble.dollar.vaults.v2.CrossChainRoute") + proto.RegisterType((*RemotePosition)(nil), "noble.dollar.vaults.v2.RemotePosition") + proto.RegisterType((*InflightFund)(nil), "noble.dollar.vaults.v2.InflightFund") + proto.RegisterType((*NobleEndpoint)(nil), "noble.dollar.vaults.v2.NobleEndpoint") + proto.RegisterType((*ProviderTrackingInfo)(nil), "noble.dollar.vaults.v2.ProviderTrackingInfo") + proto.RegisterType((*HyperlaneTrackingInfo)(nil), "noble.dollar.vaults.v2.HyperlaneTrackingInfo") + proto.RegisterType((*NAVOracleUpdate)(nil), "noble.dollar.vaults.v2.NAVOracleUpdate") + proto.RegisterType((*PositionOracleConfig)(nil), "noble.dollar.vaults.v2.PositionOracleConfig") + proto.RegisterType((*CrossChainPositionSnapshot)(nil), "noble.dollar.vaults.v2.CrossChainPositionSnapshot") + proto.RegisterMapType((map[uint32]string)(nil), "noble.dollar.vaults.v2.CrossChainPositionSnapshot.ValueByRouteEntry") + proto.RegisterType((*CrossChainConfig)(nil), "noble.dollar.vaults.v2.CrossChainConfig") + proto.RegisterType((*StaleInflightAlert)(nil), "noble.dollar.vaults.v2.StaleInflightAlert") +} + +func init() { + proto.RegisterFile("noble/dollar/vaults/v2/cross_chain.proto", fileDescriptor_4abec74535b2c22a) +} + +var fileDescriptor_4abec74535b2c22a = []byte{ + // 2079 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6e, 0x1b, 0xc9, + 0xf1, 0xe7, 0x90, 0x92, 0x2c, 0x15, 0x3f, 0x34, 0x6c, 0x49, 0x5e, 0x5a, 0xb6, 0x25, 0x2d, 0x6d, + 0xff, 0xff, 0x8a, 0xb3, 0x26, 0x37, 0x5a, 0x20, 0x08, 0x12, 0x24, 0x01, 0x3f, 0x46, 0xe6, 0x2c, + 0x28, 0x92, 0x69, 0xd1, 0x36, 0x1c, 0x20, 0x99, 0x8c, 0x38, 0x2d, 0x72, 0x22, 0x72, 0x7a, 0x32, + 0x33, 0xe4, 0x8a, 0xc9, 0x03, 0xec, 0xe6, 0xe6, 0x43, 0xde, 0x20, 0x08, 0xb0, 0xc7, 0x1c, 0xf2, + 0x10, 0x9b, 0xdb, 0x22, 0x87, 0x20, 0xc8, 0x61, 0x13, 0xd8, 0x87, 0x7d, 0x81, 0xdc, 0x13, 0xf4, + 0xc7, 0x0c, 0x87, 0x94, 0x85, 0x95, 0x15, 0x21, 0x17, 0x81, 0x53, 0x5d, 0xfd, 0xab, 0xea, 0xae, + 0x5f, 0x55, 0x57, 0x09, 0xf6, 0x1d, 0x7a, 0x32, 0x24, 0x65, 0x8b, 0x0e, 0x87, 0xa6, 0x57, 0x9e, + 0x98, 0xe3, 0x61, 0xe0, 0x97, 0x27, 0x07, 0xe5, 0x9e, 0x47, 0x7d, 0xdf, 0xe8, 0x0d, 0x4c, 0xdb, + 0x29, 0xb9, 0x1e, 0x0d, 0x28, 0xba, 0xcd, 0x35, 0x4b, 0x42, 0xb3, 0x24, 0x34, 0x4b, 0x93, 0x83, + 0xed, 0xbc, 0x39, 0xb2, 0x1d, 0x5a, 0xe6, 0x7f, 0x85, 0xea, 0xf6, 0x9d, 0x1e, 0xf5, 0x47, 0xd4, + 0x37, 0xf8, 0x57, 0x59, 0x7c, 0xc8, 0xa5, 0xcd, 0x3e, 0xed, 0x53, 0x21, 0x67, 0xbf, 0xa4, 0x74, + 0xb7, 0x4f, 0x69, 0x7f, 0x48, 0xca, 0xfc, 0xeb, 0x64, 0x7c, 0x5a, 0x0e, 0xec, 0x11, 0xf1, 0x03, + 0x73, 0xe4, 0x4a, 0x85, 0xfb, 0x83, 0xa9, 0x4b, 0xbc, 0xa1, 0xe9, 0x90, 0xf2, 0x27, 0xa6, 0xe7, + 0x96, 0x27, 0xdf, 0x29, 0x07, 0x53, 0x97, 0x48, 0xd4, 0xe2, 0x9f, 0x53, 0xb0, 0x5e, 0x63, 0x1e, + 0xd7, 0x98, 0xc3, 0x98, 0x8e, 0x03, 0x82, 0x2c, 0x48, 0x0f, 0xa6, 0x6e, 0x40, 0xcf, 0x88, 0x63, + 0xd8, 0x56, 0x41, 0xd9, 0x53, 0xf6, 0xd7, 0xaa, 0xb5, 0x2f, 0xbe, 0xda, 0x4d, 0xfc, 0xfd, 0xab, + 0xdd, 0x1f, 0xf4, 0xed, 0x60, 0x30, 0x3e, 0x29, 0xf5, 0xe8, 0xa8, 0x7c, 0xd2, 0x73, 0x9f, 0xd8, + 0x8e, 0x43, 0x27, 0x66, 0x60, 0x53, 0xc7, 0x2f, 0x47, 0xa6, 0x9e, 0x08, 0xcf, 0xcb, 0xe3, 0xc0, + 0x1e, 0x96, 0x1a, 0xe4, 0xbc, 0x62, 0x59, 0x1e, 0xf1, 0x7d, 0x0c, 0x21, 0xae, 0x6e, 0x21, 0x1f, + 0x36, 0x3c, 0xd2, 0x23, 0xf6, 0x84, 0x78, 0xe2, 0xb6, 0x8c, 0x01, 0xa5, 0x67, 0x85, 0xe4, 0xcd, + 0x59, 0xcb, 0x87, 0xf8, 0xfc, 0x6c, 0x0d, 0x4a, 0xcf, 0xd0, 0x6f, 0xe0, 0x3d, 0x8f, 0x8c, 0x68, + 0x40, 0x0c, 0x97, 0xfa, 0x36, 0xc3, 0x31, 0x4c, 0xa1, 0x5d, 0x48, 0xdd, 0x9c, 0xe1, 0x2d, 0x61, + 0xa3, 0x23, 0x4d, 0x48, 0x31, 0xfa, 0x39, 0xa0, 0x91, 0x79, 0x6e, 0xd8, 0xce, 0xe9, 0xd0, 0xee, + 0x0f, 0x02, 0x63, 0x62, 0x0e, 0xc7, 0xa4, 0xb0, 0xc4, 0xed, 0x7e, 0x28, 0xed, 0x6e, 0x09, 0x48, + 0xdf, 0x3a, 0x2b, 0xd9, 0xb4, 0x3c, 0x32, 0x83, 0x41, 0x49, 0x77, 0x82, 0xbf, 0xfc, 0xe9, 0x09, + 0x48, 0x32, 0xe8, 0x4e, 0xf0, 0xf9, 0xd7, 0x7f, 0x7c, 0xac, 0x60, 0x75, 0x64, 0x9e, 0xeb, 0x12, + 0xea, 0x39, 0x43, 0x2a, 0x7e, 0xb6, 0x02, 0x39, 0x3c, 0x67, 0xf9, 0x7f, 0x14, 0xca, 0x01, 0x64, + 0x39, 0xab, 0xa3, 0xbb, 0x64, 0x41, 0xcc, 0xdc, 0x8c, 0x9d, 0x0c, 0x47, 0x0e, 0xaf, 0xf0, 0x27, + 0x90, 0xf6, 0x07, 0xa6, 0x47, 0x7c, 0x63, 0x40, 0x86, 0x96, 0x8c, 0xd9, 0xbb, 0xdf, 0x1d, 0x08, + 0x90, 0x06, 0x19, 0x5a, 0xa8, 0x05, 0x6b, 0xae, 0x67, 0x3b, 0x3d, 0xdb, 0x35, 0x87, 0xd7, 0x0e, + 0xc6, 0x0c, 0x02, 0xbd, 0x90, 0x2e, 0x1a, 0xae, 0x67, 0xf7, 0x48, 0x61, 0x99, 0x23, 0x7e, 0x57, + 0x22, 0xde, 0xbd, 0x88, 0xd8, 0x24, 0x7d, 0xb3, 0x37, 0xad, 0x93, 0x5e, 0x0c, 0xb7, 0x4e, 0x7a, + 0x71, 0x47, 0x3b, 0x0c, 0x89, 0x9d, 0x3d, 0xa0, 0x81, 0x39, 0x94, 0xbc, 0x59, 0xb9, 0xee, 0xd9, + 0x39, 0x08, 0x67, 0x0c, 0xd2, 0x20, 0x3d, 0x34, 0xfd, 0xc0, 0x18, 0xbb, 0x96, 0x19, 0x90, 0xc2, + 0xad, 0x3d, 0x65, 0x3f, 0x7d, 0xb0, 0x5d, 0x12, 0x35, 0xa5, 0x14, 0xd6, 0x94, 0x52, 0x37, 0xac, + 0x29, 0xd5, 0x55, 0x66, 0xee, 0xd5, 0x3f, 0x76, 0x15, 0x0c, 0x6c, 0xe3, 0x33, 0xbe, 0x0f, 0xd5, + 0x61, 0xc5, 0x0f, 0xcc, 0x60, 0xec, 0x17, 0x56, 0xf7, 0x94, 0xfd, 0xdc, 0xc1, 0x07, 0xa5, 0xb7, + 0x57, 0xbc, 0xd2, 0x3c, 0x3b, 0x8f, 0xf9, 0x1e, 0x2c, 0xf7, 0xa2, 0x47, 0x90, 0xa3, 0x9e, 0xd9, + 0x1b, 0x92, 0x88, 0x46, 0x6b, 0xec, 0x88, 0x38, 0x2b, 0xa4, 0x21, 0x05, 0x1e, 0x40, 0x96, 0x65, + 0x91, 0x1f, 0x98, 0x43, 0xe2, 0x30, 0x2d, 0xd8, 0x53, 0xf6, 0x53, 0x38, 0x33, 0x32, 0xcf, 0x8f, + 0x43, 0x59, 0xf1, 0xdf, 0x2b, 0x90, 0x09, 0x93, 0xe3, 0x70, 0xec, 0x58, 0x28, 0x07, 0xc9, 0x90, + 0xff, 0x38, 0x69, 0x5b, 0xcc, 0x58, 0xe0, 0x99, 0x8e, 0x6f, 0xf6, 0x78, 0x11, 0xb0, 0x2d, 0x51, + 0x78, 0x70, 0x36, 0x26, 0xd5, 0x2d, 0xd4, 0x80, 0x15, 0x73, 0x44, 0xc7, 0x4e, 0x70, 0x6d, 0xaa, + 0xc9, 0xfd, 0xe8, 0x63, 0xc8, 0xf0, 0x4b, 0x31, 0xa8, 0x67, 0xf7, 0x6d, 0x87, 0x33, 0x2d, 0x7d, + 0xf0, 0xe8, 0xb2, 0x9b, 0x6a, 0x31, 0xb1, 0xe6, 0x58, 0x2e, 0xb5, 0x9d, 0xa0, 0x91, 0xc0, 0x69, + 0xae, 0xd7, 0xe6, 0x7b, 0xd1, 0x11, 0x64, 0x65, 0x15, 0x93, 0x60, 0xcb, 0x1c, 0xec, 0xff, 0xae, + 0x76, 0xed, 0x8d, 0x04, 0xce, 0x88, 0xed, 0x12, 0xae, 0x0b, 0x79, 0xe1, 0x9a, 0x45, 0xfc, 0xc0, + 0x76, 0x78, 0x66, 0x72, 0x7a, 0x5d, 0xd9, 0x3f, 0x05, 0xab, 0x5c, 0xaf, 0x3e, 0x03, 0x40, 0x2f, + 0x00, 0x49, 0x27, 0xe3, 0xb0, 0xb7, 0xde, 0xc9, 0x53, 0x85, 0xd5, 0x70, 0x26, 0x89, 0x03, 0x3f, + 0x85, 0x8c, 0xed, 0xd8, 0x81, 0x6d, 0x06, 0xc4, 0x32, 0xcc, 0x80, 0x73, 0xee, 0xaa, 0xac, 0x4d, + 0x47, 0x3b, 0x2b, 0x01, 0x63, 0x3f, 0x39, 0x77, 0x49, 0x4f, 0xe2, 0xac, 0xbd, 0x0b, 0xfb, 0xc3, + 0x8d, 0x95, 0x00, 0xfd, 0x28, 0x62, 0x3f, 0x70, 0xf6, 0x5f, 0x7a, 0xb8, 0x90, 0x90, 0x0b, 0xbc, + 0xff, 0x05, 0x6c, 0xf0, 0x8c, 0x36, 0xcc, 0xc0, 0x90, 0xee, 0xb1, 0x9b, 0x4a, 0x5f, 0x93, 0x70, + 0x79, 0x0e, 0x56, 0x09, 0xf4, 0x08, 0x0a, 0xbd, 0x84, 0xbc, 0xeb, 0xd1, 0x89, 0x6d, 0x11, 0xcf, + 0x08, 0x3c, 0xb3, 0x77, 0x66, 0x3b, 0xfd, 0x42, 0x86, 0x1f, 0xf7, 0xd2, 0x54, 0xed, 0xc8, 0x0d, + 0x5d, 0xa9, 0xaf, 0x3b, 0xa7, 0x14, 0xab, 0xee, 0x82, 0xb4, 0xba, 0x0a, 0x2b, 0x82, 0x83, 0xd5, + 0x2c, 0xa4, 0x63, 0x81, 0x2e, 0xfe, 0x0c, 0xb2, 0x73, 0x1c, 0x41, 0x4d, 0xc8, 0x51, 0x97, 0x78, + 0x7c, 0xd5, 0x60, 0x2d, 0x08, 0xcf, 0xc6, 0xdc, 0xe5, 0x14, 0x6b, 0x87, 0xda, 0xdd, 0xa9, 0x4b, + 0x70, 0x96, 0xc6, 0x3f, 0x8b, 0x9f, 0x2a, 0xb0, 0xf9, 0x36, 0x17, 0xd9, 0x23, 0x1b, 0xbd, 0x29, + 0xb3, 0xc3, 0x2a, 0xfc, 0xb0, 0x4f, 0x2e, 0x33, 0xd5, 0x08, 0x77, 0xc4, 0xa1, 0x1a, 0x09, 0x9c, + 0x1f, 0x2c, 0x2e, 0x54, 0xd7, 0x21, 0x1b, 0xa2, 0xb2, 0x97, 0x9c, 0x16, 0x7f, 0x97, 0x84, 0xad, + 0xb7, 0xee, 0x47, 0xf7, 0x01, 0x46, 0xc4, 0xf7, 0xcd, 0x3e, 0x09, 0xdf, 0xde, 0x0c, 0x5e, 0x93, + 0x12, 0xdd, 0x62, 0x85, 0x4c, 0x5c, 0x9d, 0x61, 0xd1, 0x91, 0x69, 0x3b, 0xbc, 0x02, 0x65, 0x71, + 0x46, 0x08, 0xeb, 0x5c, 0x86, 0x9e, 0x00, 0x8a, 0xdd, 0x6a, 0xa8, 0x99, 0xe2, 0x9a, 0xf9, 0xd8, + 0x8a, 0x54, 0xdf, 0x84, 0x65, 0x87, 0x3a, 0x3d, 0xd1, 0x55, 0x2c, 0x61, 0xf1, 0x81, 0x1e, 0xb2, + 0xca, 0xca, 0x2d, 0x05, 0xe7, 0xc6, 0xc0, 0xf4, 0x07, 0xe2, 0x55, 0x0a, 0x4d, 0x75, 0xcf, 0x1b, + 0xa6, 0x3f, 0x40, 0x25, 0xd8, 0x88, 0x9b, 0x0a, 0x55, 0xf9, 0x3b, 0x33, 0x67, 0x4b, 0xea, 0xdf, + 0x63, 0x0f, 0x27, 0xed, 0x11, 0xdf, 0x27, 0x16, 0xcf, 0xeb, 0x55, 0x3c, 0x13, 0x14, 0x3f, 0x4f, + 0xc1, 0x7a, 0xab, 0xf2, 0xbc, 0xcd, 0x6b, 0xb7, 0x7c, 0x27, 0x76, 0x21, 0x1d, 0xb5, 0x5d, 0xf2, + 0x46, 0x96, 0x30, 0x84, 0x22, 0xdd, 0x5a, 0x7c, 0x3b, 0x93, 0x37, 0xf9, 0x76, 0xde, 0x74, 0xdf, + 0x50, 0x85, 0xb5, 0xa8, 0xd7, 0x96, 0xd5, 0xfc, 0x6a, 0xb5, 0x63, 0xb6, 0x0d, 0xbd, 0x0f, 0x19, + 0x9f, 0x8e, 0xbd, 0x1e, 0x11, 0x1d, 0xb0, 0x0c, 0x4b, 0x5a, 0xc8, 0x78, 0xd7, 0xba, 0x40, 0x22, + 0x11, 0x8c, 0x18, 0x89, 0xaa, 0x51, 0xf1, 0xb9, 0xc5, 0xb3, 0xe9, 0xf1, 0xa5, 0xd9, 0x14, 0x0b, + 0xc4, 0x7c, 0x01, 0x2a, 0x7e, 0x9d, 0x84, 0xcd, 0xb0, 0xe4, 0x0a, 0xb5, 0x1a, 0x75, 0x4e, 0xed, + 0xfe, 0x37, 0xc7, 0xeb, 0xdb, 0x90, 0x97, 0xc4, 0xb2, 0x2d, 0xe2, 0x04, 0xf6, 0xa9, 0x4d, 0x3c, + 0xf9, 0x90, 0xaa, 0x62, 0x41, 0x8f, 0xe4, 0x17, 0x1f, 0xee, 0xd4, 0xc5, 0x87, 0x1b, 0xfd, 0x3f, + 0xac, 0xcb, 0x26, 0xa0, 0x47, 0x1d, 0x96, 0x68, 0x81, 0xe8, 0xc9, 0xb0, 0xec, 0x0d, 0x6a, 0x52, + 0x7a, 0x95, 0xab, 0x5b, 0xe8, 0x6e, 0x56, 0xae, 0xd9, 0xdd, 0xe8, 0x90, 0x9d, 0x55, 0x4f, 0x56, + 0xb7, 0xc4, 0x4d, 0x3f, 0xfc, 0xc6, 0xca, 0xc9, 0xca, 0x56, 0xc6, 0x8d, 0x7d, 0x15, 0xff, 0xb0, + 0x04, 0xdb, 0xb3, 0x69, 0x2b, 0xea, 0x83, 0x1c, 0xd3, 0xf5, 0x07, 0x34, 0x60, 0xb5, 0x4b, 0x74, + 0x78, 0xf2, 0xe1, 0x14, 0x8d, 0x9e, 0x72, 0xdd, 0x01, 0x81, 0x63, 0x89, 0x17, 0x55, 0xb4, 0x7b, + 0x27, 0xb0, 0x29, 0xf0, 0x17, 0x46, 0x90, 0xe4, 0x35, 0x2d, 0x08, 0x6f, 0xe7, 0x86, 0x10, 0xf4, + 0x2d, 0x50, 0x59, 0xf7, 0x34, 0x99, 0x4d, 0x58, 0x61, 0xa0, 0xd7, 0x85, 0x3c, 0x3c, 0x35, 0x8f, + 0x35, 0x27, 0x43, 0x4c, 0x73, 0x89, 0x6b, 0xe6, 0xb8, 0x78, 0xa6, 0x38, 0x97, 0x6a, 0xcb, 0xd7, + 0x4b, 0xb5, 0x5f, 0x42, 0x4e, 0xbc, 0xb2, 0x27, 0x53, 0xc3, 0x63, 0x63, 0x6e, 0x61, 0x65, 0x2f, + 0xb5, 0x9f, 0x3e, 0xa8, 0x5f, 0x16, 0xc6, 0xcb, 0xe3, 0x54, 0xe2, 0x27, 0xad, 0x4e, 0xf9, 0xb4, + 0xac, 0x39, 0x81, 0x37, 0x65, 0x53, 0xca, 0x4c, 0xb4, 0xfd, 0x63, 0xc8, 0x5f, 0x50, 0x41, 0x2a, + 0xa4, 0xce, 0xc8, 0x94, 0x47, 0x33, 0x8b, 0xd9, 0x4f, 0x56, 0xac, 0x63, 0xf7, 0x8f, 0xc5, 0xc7, + 0xf7, 0x93, 0xdf, 0x53, 0x8a, 0xff, 0x4a, 0x81, 0x3a, 0xb3, 0x2f, 0xb3, 0xb1, 0x04, 0x1b, 0x2c, + 0x7f, 0x24, 0x37, 0xc8, 0xb9, 0x4b, 0xfd, 0xb1, 0x27, 0xe8, 0xb1, 0x8c, 0xf3, 0x23, 0xf3, 0x5c, + 0x84, 0x5a, 0x93, 0x0b, 0xec, 0x7a, 0x2d, 0x72, 0xca, 0xe7, 0x32, 0x76, 0x0d, 0x74, 0x1c, 0x70, + 0x43, 0x29, 0x9c, 0x93, 0xe2, 0xae, 0x90, 0xb2, 0x90, 0x89, 0x14, 0x31, 0x4e, 0x3d, 0xf2, 0xab, + 0x31, 0x71, 0x7a, 0xd3, 0x30, 0x64, 0x42, 0x7e, 0x18, 0x8a, 0xd1, 0x87, 0xb0, 0x19, 0xf3, 0x61, + 0x3e, 0x6e, 0x59, 0x8c, 0x22, 0x27, 0x66, 0xb1, 0x7b, 0x04, 0x39, 0x73, 0x38, 0xa4, 0x9f, 0x10, + 0x4b, 0x24, 0xaa, 0x5f, 0x58, 0xde, 0x4b, 0xb1, 0x46, 0x5b, 0x4a, 0xf9, 0x09, 0x7d, 0x54, 0x80, + 0x5b, 0xc4, 0x31, 0x4f, 0x86, 0x44, 0xd4, 0xb8, 0x55, 0x1c, 0x7e, 0xa2, 0x03, 0xd8, 0x9a, 0x9b, + 0x9a, 0xad, 0xb1, 0x37, 0x6b, 0x25, 0x53, 0x78, 0x23, 0x36, 0x06, 0xd7, 0xe5, 0xd2, 0x25, 0x93, + 0xf6, 0xea, 0x4d, 0x4d, 0xda, 0xe8, 0x19, 0x6c, 0xf8, 0x63, 0xd7, 0xa5, 0x1e, 0x6b, 0x1d, 0xc3, + 0x0c, 0x67, 0xf3, 0x4a, 0xea, 0xca, 0x85, 0x01, 0x45, 0x00, 0xa1, 0xd8, 0x2f, 0xfe, 0x36, 0x09, + 0x88, 0x97, 0xc2, 0xd0, 0x5a, 0x65, 0x48, 0xbc, 0x00, 0xdd, 0x81, 0x55, 0xce, 0xd8, 0xb0, 0x06, + 0x67, 0xf1, 0x2d, 0xfe, 0xad, 0x5f, 0x79, 0x8c, 0x79, 0x00, 0xd9, 0x01, 0x1d, 0x7b, 0xbe, 0x41, + 0x27, 0xc4, 0xb3, 0xc6, 0x84, 0x87, 0x57, 0xc1, 0x19, 0x2e, 0x6c, 0x0b, 0xd9, 0x8d, 0x3c, 0x68, + 0xb3, 0x79, 0x69, 0xf9, 0xbf, 0x9b, 0x97, 0x1e, 0xbf, 0x52, 0x60, 0xf3, 0x6d, 0xe3, 0x22, 0xda, + 0x86, 0xdb, 0x58, 0x3b, 0x6a, 0x77, 0x35, 0xa3, 0xd3, 0x3e, 0xd6, 0xbb, 0x7a, 0xbb, 0x65, 0x54, + 0x6a, 0x5d, 0xfd, 0xb9, 0xa6, 0x26, 0xd0, 0x2e, 0xdc, 0x5d, 0x5c, 0x7b, 0xa1, 0x77, 0x1b, 0x75, + 0x5c, 0x79, 0xa1, 0xb7, 0x9e, 0xaa, 0xca, 0xdb, 0x36, 0xd7, 0x9a, 0xed, 0x63, 0xad, 0xae, 0x26, + 0xd1, 0x1d, 0xd8, 0x5a, 0x5c, 0xd3, 0x30, 0x6e, 0x63, 0x35, 0xb5, 0xbd, 0xf4, 0xd9, 0xef, 0x77, + 0x12, 0x8f, 0x1d, 0xc8, 0xce, 0xf5, 0xa4, 0x0c, 0xad, 0xdd, 0xd1, 0x70, 0x85, 0xeb, 0x76, 0x5f, + 0x76, 0x34, 0xa3, 0xae, 0xf1, 0xbd, 0x6a, 0x02, 0xdd, 0x87, 0x3b, 0x0b, 0x6b, 0xa1, 0x27, 0x95, + 0xa6, 0xaa, 0xa0, 0x7b, 0x50, 0x58, 0x58, 0xc6, 0x5a, 0xb5, 0xd2, 0xac, 0xb4, 0x6a, 0x9a, 0x9a, + 0x94, 0xf6, 0xfe, 0xaa, 0xcc, 0x86, 0x58, 0x6e, 0x6f, 0x0f, 0xee, 0xe9, 0xad, 0xc3, 0xa6, 0xfe, + 0xb4, 0xd1, 0x0d, 0x2d, 0x19, 0xdd, 0x76, 0xe4, 0xae, 0x9a, 0x40, 0x8f, 0xe0, 0xfd, 0x48, 0x63, + 0x66, 0xcf, 0x38, 0xc4, 0xed, 0xa3, 0x99, 0x9a, 0x82, 0xf6, 0xe1, 0x61, 0xa4, 0x16, 0xd9, 0x35, + 0xaa, 0x5a, 0xf7, 0x85, 0xa6, 0xb5, 0x22, 0xc5, 0x63, 0x35, 0xc9, 0x6e, 0x34, 0xd2, 0xec, 0x68, + 0xad, 0xba, 0xde, 0x7a, 0xca, 0x4c, 0x37, 0xdb, 0x2f, 0x8f, 0xb4, 0x56, 0x57, 0x4d, 0xa1, 0x0f, + 0x60, 0xff, 0x82, 0x42, 0xcc, 0x72, 0x5d, 0x3f, 0xee, 0x62, 0xbd, 0xfa, 0x8c, 0x1b, 0x5e, 0x92, + 0x07, 0xfb, 0x54, 0x81, 0xdc, 0xfc, 0x30, 0x84, 0x36, 0x41, 0x5d, 0x84, 0x51, 0x13, 0xe8, 0x36, + 0xa0, 0x48, 0x5a, 0x6b, 0xb7, 0x0e, 0x75, 0x7c, 0xa4, 0xd5, 0x55, 0x65, 0x41, 0x7e, 0xd4, 0x69, + 0x6a, 0x5d, 0x1e, 0xc2, 0x0d, 0x58, 0x8f, 0xe4, 0x87, 0x15, 0xbd, 0xa9, 0xd5, 0xd5, 0xd4, 0x1c, + 0x74, 0x57, 0x3f, 0xd2, 0xda, 0xcf, 0xba, 0x91, 0x27, 0x0e, 0xa0, 0x8b, 0x8d, 0x11, 0xba, 0x0b, + 0xef, 0xb5, 0x71, 0xa5, 0xd6, 0xd4, 0x8c, 0x67, 0x9d, 0x7a, 0xa5, 0xab, 0x19, 0xcf, 0x2b, 0x4d, + 0x9d, 0xfd, 0xa8, 0xab, 0x09, 0x46, 0x93, 0xf9, 0xc5, 0x4a, 0xa7, 0xd3, 0xd4, 0xb9, 0x5b, 0x8c, + 0x0f, 0x73, 0x4b, 0x58, 0xfb, 0x58, 0xab, 0x71, 0xd7, 0xa4, 0xbd, 0x06, 0x64, 0xe2, 0x55, 0x80, + 0x59, 0xea, 0xe0, 0xf6, 0x73, 0xbd, 0xae, 0x61, 0xc1, 0x82, 0xc6, 0xcb, 0x8e, 0x86, 0x9b, 0x95, + 0x16, 0x63, 0xf3, 0x16, 0xe4, 0xe7, 0x17, 0xf5, 0x6a, 0x4d, 0x55, 0x04, 0x52, 0xf5, 0x87, 0x5f, + 0xbc, 0xde, 0x51, 0xbe, 0x7c, 0xbd, 0xa3, 0xfc, 0xf3, 0xf5, 0x8e, 0xf2, 0xea, 0xcd, 0x4e, 0xe2, + 0xcb, 0x37, 0x3b, 0x89, 0xbf, 0xbd, 0xd9, 0x49, 0xfc, 0xf4, 0x81, 0x2c, 0x3c, 0xa2, 0x0a, 0x9d, + 0x4f, 0x7f, 0x5d, 0x9e, 0x7c, 0x24, 0xfe, 0xe7, 0x3b, 0xfb, 0x2f, 0xf5, 0xc9, 0x0a, 0xcf, 0xe8, + 0x8f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0xb1, 0xc0, 0x82, 0xba, 0xc6, 0x16, 0x00, 0x00, +} + +func (m *CrossChainRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossChainRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossChainRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxInflightValue.Size() + i -= size + if _, err := m.MaxInflightValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.RemotePositionAddress.Size() + i -= size + if _, err := m.RemotePositionAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.ReceiverChainHook.Size() + i -= size + if _, err := m.ReceiverChainHook.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.HyptokenId.Size() + i -= size + if _, err := m.HyptokenId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RemotePosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemotePosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemotePosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxStaleness != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.MaxStaleness)) + i-- + dAtA[i] = 0x50 + } + if len(m.OracleAddress) > 0 { + i -= len(m.OracleAddress) + copy(dAtA[i:], m.OracleAddress) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.OracleAddress))) + i-- + dAtA[i] = 0x4a + } + if m.Status != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x40 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintCrossChain(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x3a + { + size := m.TotalValue.Size() + i -= size + if _, err := m.TotalValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.SharePrice.Size() + i -= size + if _, err := m.SharePrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.Principal.Size() + i -= size + if _, err := m.Principal.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.SharesHeld.Size() + i -= size + if _, err := m.SharesHeld.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.VaultAddress.Size() + i -= size + if _, err := m.VaultAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.HyptokenId.Size() + i -= size + if _, err := m.HyptokenId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *InflightFund) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InflightFund) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InflightFund) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProviderTracking != nil { + { + size, err := m.ProviderTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + { + size := m.ValueAtInitiation.Size() + i -= size + if _, err := m.ValueAtInitiation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + if m.Status != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x50 + } + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintCrossChain(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x4a + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.InitiatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.InitiatedAt):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintCrossChain(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x42 + if m.Destination != nil { + { + size := m.Destination.Size() + i -= size + if _, err := m.Destination.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.Origin != nil { + { + size := m.Origin.Size() + i -= size + if _, err := m.Origin.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *InflightFund_NobleOrigin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InflightFund_NobleOrigin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NobleOrigin != nil { + { + size, err := m.NobleOrigin.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *InflightFund_RemoteOrigin) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InflightFund_RemoteOrigin) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.RemoteOrigin != nil { + { + size, err := m.RemoteOrigin.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *InflightFund_NobleDestination) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InflightFund_NobleDestination) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NobleDestination != nil { + { + size, err := m.NobleDestination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *InflightFund_RemoteDestination) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InflightFund_RemoteDestination) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.RemoteDestination != nil { + { + size, err := m.RemoteDestination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *NobleEndpoint) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NobleEndpoint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NobleEndpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OperationType != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.OperationType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProviderTrackingInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProviderTrackingInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProviderTrackingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TrackingInfo != nil { + { + size := m.TrackingInfo.Size() + i -= size + if _, err := m.TrackingInfo.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *ProviderTrackingInfo_HyperlaneTracking) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProviderTrackingInfo_HyperlaneTracking) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.HyperlaneTracking != nil { + { + size, err := m.HyperlaneTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *HyperlaneTrackingInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HyperlaneTrackingInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HyperlaneTrackingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Processed { + i-- + if m.Processed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(m.DestinationTxHash) > 0 { + i -= len(m.DestinationTxHash) + copy(dAtA[i:], m.DestinationTxHash) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.DestinationTxHash))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginTxHash) > 0 { + i -= len(m.OriginTxHash) + copy(dAtA[i:], m.OriginTxHash) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.OriginTxHash))) + i-- + dAtA[i] = 0x2a + } + if m.Nonce != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x20 + } + if m.DestinationDomain != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.DestinationDomain)) + i-- + dAtA[i] = 0x18 + } + if m.OriginDomain != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.OriginDomain)) + i-- + dAtA[i] = 0x10 + } + if len(m.MessageId) > 0 { + i -= len(m.MessageId) + copy(dAtA[i:], m.MessageId) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.MessageId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NAVOracleUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVOracleUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVOracleUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Status != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x38 + } + if len(m.MessageId) > 0 { + i -= len(m.MessageId) + copy(dAtA[i:], m.MessageId) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.MessageId))) + i-- + dAtA[i] = 0x32 + } + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x2a + } + n10, err10 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err10 != nil { + return 0, err10 + } + i -= n10 + i = encodeVarintCrossChain(dAtA, i, uint64(n10)) + i-- + dAtA[i] = 0x22 + { + size := m.SharesHeld.Size() + i -= size + if _, err := m.SharesHeld.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.SharePrice.Size() + i -= size + if _, err := m.SharePrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.PositionId != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PositionOracleConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PositionOracleConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionOracleConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProviderType != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.ProviderType)) + i-- + dAtA[i] = 0x38 + } + n11, err11 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate):]) + if err11 != nil { + return 0, err11 + } + i -= n11 + i = encodeVarintCrossChain(dAtA, i, uint64(n11)) + i-- + dAtA[i] = 0x32 + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x2a + } + if len(m.OracleContract) > 0 { + i -= len(m.OracleContract) + copy(dAtA[i:], m.OracleContract) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.OracleContract))) + i-- + dAtA[i] = 0x22 + } + if m.MaxStaleness != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.MaxStaleness)) + i-- + dAtA[i] = 0x18 + } + if len(m.OriginIdentifier) > 0 { + i -= len(m.OriginIdentifier) + copy(dAtA[i:], m.OriginIdentifier) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.OriginIdentifier))) + i-- + dAtA[i] = 0x12 + } + if m.PositionId != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CrossChainPositionSnapshot) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossChainPositionSnapshot) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossChainPositionSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ValueByRoute) > 0 { + for k := range m.ValueByRoute { + v := m.ValueByRoute[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintCrossChain(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i = encodeVarintCrossChain(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarintCrossChain(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 + } + } + n12, err12 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err12 != nil { + return 0, err12 + } + i -= n12 + i = encodeVarintCrossChain(dAtA, i, uint64(n12)) + i-- + dAtA[i] = 0x2a + if m.StalePositions != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.StalePositions)) + i-- + dAtA[i] = 0x20 + } + if m.ActivePositions != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.ActivePositions)) + i-- + dAtA[i] = 0x18 + } + { + size := m.TotalInflightValue.Size() + i -= size + if _, err := m.TotalInflightValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalRemoteValue.Size() + i -= size + if _, err := m.TotalRemoteValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CrossChainConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossChainConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SupportedProviders) > 0 { + dAtA14 := make([]byte, len(m.SupportedProviders)*10) + var j13 int + for _, num := range m.SupportedProviders { + for num >= 1<<7 { + dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j13++ + } + dAtA14[j13] = uint8(num) + j13++ + } + i -= j13 + copy(dAtA[i:], dAtA14[:j13]) + i = encodeVarintCrossChain(dAtA, i, uint64(j13)) + i-- + dAtA[i] = 0x4a + } + { + size := m.MaxInflightValue.Size() + i -= size + if _, err := m.MaxInflightValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if m.MaxInflightDuration != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.MaxInflightDuration)) + i-- + dAtA[i] = 0x38 + } + if m.Enabled { + i-- + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.AllowedChains) > 0 { + for iNdEx := len(m.AllowedChains) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AllowedChains[iNdEx]) + copy(dAtA[i:], m.AllowedChains[iNdEx]) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.AllowedChains[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if m.MaxRemotePositions != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.MaxRemotePositions)) + i-- + dAtA[i] = 0x20 + } + if m.UpdateFrequency != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.UpdateFrequency)) + i-- + dAtA[i] = 0x18 + } + if m.DefaultTimeout != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.DefaultTimeout)) + i-- + dAtA[i] = 0x10 + } + if m.MaxRemoteExposure != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.MaxRemoteExposure)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StaleInflightAlert) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StaleInflightAlert) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StaleInflightAlert) 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 = encodeVarintCrossChain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + n15, err15 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err15 != nil { + return 0, err15 + } + i -= n15 + i = encodeVarintCrossChain(dAtA, i, uint64(n15)) + i-- + dAtA[i] = 0x22 + if m.HoursOverdue != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.HoursOverdue)))) + i-- + dAtA[i] = 0x19 + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintCrossChain(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if m.RouteId != 0 { + i = encodeVarintCrossChain(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintCrossChain(dAtA []byte, offset int, v uint64) int { + offset -= sovCrossChain(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CrossChainRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HyptokenId.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.ReceiverChainHook.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.RemotePositionAddress.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.MaxInflightValue.Size() + n += 1 + l + sovCrossChain(uint64(l)) + return n +} + +func (m *RemotePosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HyptokenId.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.VaultAddress.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.SharesHeld.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.Principal.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.SharePrice.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.TotalValue.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate) + n += 1 + l + sovCrossChain(uint64(l)) + if m.Status != 0 { + n += 1 + sovCrossChain(uint64(m.Status)) + } + l = len(m.OracleAddress) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + if m.MaxStaleness != 0 { + n += 1 + sovCrossChain(uint64(m.MaxStaleness)) + } + return n +} + +func (m *InflightFund) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovCrossChain(uint64(l)) + if m.Origin != nil { + n += m.Origin.Size() + } + if m.Destination != nil { + n += m.Destination.Size() + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.InitiatedAt) + n += 1 + l + sovCrossChain(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt) + n += 1 + l + sovCrossChain(uint64(l)) + if m.Status != 0 { + n += 1 + sovCrossChain(uint64(m.Status)) + } + l = m.ValueAtInitiation.Size() + n += 1 + l + sovCrossChain(uint64(l)) + if m.ProviderTracking != nil { + l = m.ProviderTracking.Size() + n += 1 + l + sovCrossChain(uint64(l)) + } + return n +} + +func (m *InflightFund_NobleOrigin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NobleOrigin != nil { + l = m.NobleOrigin.Size() + n += 1 + l + sovCrossChain(uint64(l)) + } + return n +} +func (m *InflightFund_RemoteOrigin) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteOrigin != nil { + l = m.RemoteOrigin.Size() + n += 1 + l + sovCrossChain(uint64(l)) + } + return n +} +func (m *InflightFund_NobleDestination) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NobleDestination != nil { + l = m.NobleDestination.Size() + n += 1 + l + sovCrossChain(uint64(l)) + } + return n +} +func (m *InflightFund_RemoteDestination) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteDestination != nil { + l = m.RemoteDestination.Size() + n += 1 + l + sovCrossChain(uint64(l)) + } + return n +} +func (m *NobleEndpoint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OperationType != 0 { + n += 1 + sovCrossChain(uint64(m.OperationType)) + } + return n +} + +func (m *ProviderTrackingInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TrackingInfo != nil { + n += m.TrackingInfo.Size() + } + return n +} + +func (m *ProviderTrackingInfo_HyperlaneTracking) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HyperlaneTracking != nil { + l = m.HyperlaneTracking.Size() + n += 1 + l + sovCrossChain(uint64(l)) + } + return n +} +func (m *HyperlaneTrackingInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MessageId) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + if m.OriginDomain != 0 { + n += 1 + sovCrossChain(uint64(m.OriginDomain)) + } + if m.DestinationDomain != 0 { + n += 1 + sovCrossChain(uint64(m.DestinationDomain)) + } + if m.Nonce != 0 { + n += 1 + sovCrossChain(uint64(m.Nonce)) + } + l = len(m.OriginTxHash) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + l = len(m.DestinationTxHash) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + if m.Processed { + n += 2 + } + return n +} + +func (m *NAVOracleUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovCrossChain(uint64(m.PositionId)) + } + l = m.SharePrice.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.SharesHeld.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovCrossChain(uint64(l)) + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + l = len(m.MessageId) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovCrossChain(uint64(m.Status)) + } + return n +} + +func (m *PositionOracleConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovCrossChain(uint64(m.PositionId)) + } + l = len(m.OriginIdentifier) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + if m.MaxStaleness != 0 { + n += 1 + sovCrossChain(uint64(m.MaxStaleness)) + } + l = len(m.OracleContract) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate) + n += 1 + l + sovCrossChain(uint64(l)) + if m.ProviderType != 0 { + n += 1 + sovCrossChain(uint64(m.ProviderType)) + } + return n +} + +func (m *CrossChainPositionSnapshot) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalRemoteValue.Size() + n += 1 + l + sovCrossChain(uint64(l)) + l = m.TotalInflightValue.Size() + n += 1 + l + sovCrossChain(uint64(l)) + if m.ActivePositions != 0 { + n += 1 + sovCrossChain(uint64(m.ActivePositions)) + } + if m.StalePositions != 0 { + n += 1 + sovCrossChain(uint64(m.StalePositions)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovCrossChain(uint64(l)) + if len(m.ValueByRoute) > 0 { + for k, v := range m.ValueByRoute { + _ = k + _ = v + mapEntrySize := 1 + sovCrossChain(uint64(k)) + 1 + len(v) + sovCrossChain(uint64(len(v))) + n += mapEntrySize + 1 + sovCrossChain(uint64(mapEntrySize)) + } + } + return n +} + +func (m *CrossChainConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxRemoteExposure != 0 { + n += 1 + sovCrossChain(uint64(m.MaxRemoteExposure)) + } + if m.DefaultTimeout != 0 { + n += 1 + sovCrossChain(uint64(m.DefaultTimeout)) + } + if m.UpdateFrequency != 0 { + n += 1 + sovCrossChain(uint64(m.UpdateFrequency)) + } + if m.MaxRemotePositions != 0 { + n += 1 + sovCrossChain(uint64(m.MaxRemotePositions)) + } + if len(m.AllowedChains) > 0 { + for _, s := range m.AllowedChains { + l = len(s) + n += 1 + l + sovCrossChain(uint64(l)) + } + } + if m.Enabled { + n += 2 + } + if m.MaxInflightDuration != 0 { + n += 1 + sovCrossChain(uint64(m.MaxInflightDuration)) + } + l = m.MaxInflightValue.Size() + n += 1 + l + sovCrossChain(uint64(l)) + if len(m.SupportedProviders) > 0 { + l = 0 + for _, e := range m.SupportedProviders { + l += sovCrossChain(uint64(e)) + } + n += 1 + sovCrossChain(uint64(l)) + l + } + return n +} + +func (m *StaleInflightAlert) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovCrossChain(uint64(m.RouteId)) + } + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovCrossChain(uint64(l)) + } + if m.HoursOverdue != 0 { + n += 9 + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovCrossChain(uint64(l)) + l = m.Amount.Size() + n += 1 + l + sovCrossChain(uint64(l)) + return n +} + +func sovCrossChain(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCrossChain(x uint64) (n int) { + return sovCrossChain(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CrossChainRoute) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossChainRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HyptokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HyptokenId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceiverChainHook", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReceiverChainHook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemotePositionAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RemotePositionAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxInflightValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxInflightValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemotePosition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemotePosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HyptokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HyptokenId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.VaultAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesHeld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Principal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharePrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastUpdate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + 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 ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= RemotePositionStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + m.MaxStaleness = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InflightFund) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InflightFund: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InflightFund: 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 ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + 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 TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = 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 ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + 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 NobleOrigin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NobleEndpoint{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Origin = &InflightFund_NobleOrigin{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteOrigin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &RemotePosition{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Origin = &InflightFund_RemoteOrigin{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NobleDestination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NobleEndpoint{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Destination = &InflightFund_NobleDestination{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteDestination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &RemotePosition{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Destination = &InflightFund_RemoteDestination{v} + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.InitiatedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + 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 ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueAtInitiation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ValueAtInitiation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProviderTracking == nil { + m.ProviderTracking = &ProviderTrackingInfo{} + } + if err := m.ProviderTracking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NobleEndpoint) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NobleEndpoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NobleEndpoint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OperationType", wireType) + } + m.OperationType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OperationType |= OperationType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProviderTrackingInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProviderTrackingInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProviderTrackingInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HyperlaneTracking", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &HyperlaneTrackingInfo{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.TrackingInfo = &ProviderTrackingInfo_HyperlaneTracking{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HyperlaneTrackingInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HyperlaneTrackingInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HyperlaneTrackingInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MessageId = append(m.MessageId[:0], dAtA[iNdEx:postIndex]...) + if m.MessageId == nil { + m.MessageId = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginDomain", wireType) + } + m.OriginDomain = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OriginDomain |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationDomain", wireType) + } + m.DestinationDomain = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DestinationDomain |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginTxHash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginTxHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationTxHash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DestinationTxHash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NAVOracleUpdate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVOracleUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVOracleUpdate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharePrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesHeld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MessageId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + 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 ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= OracleUpdateStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PositionOracleConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PositionOracleConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PositionOracleConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + m.MaxStaleness = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleContract", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleContract = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastUpdate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderType", wireType) + } + m.ProviderType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProviderType |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossChainPositionSnapshot) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossChainPositionSnapshot: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossChainPositionSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalRemoteValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalRemoteValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalInflightValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalInflightValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActivePositions", wireType) + } + m.ActivePositions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActivePositions |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StalePositions", wireType) + } + m.StalePositions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StalePositions |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueByRoute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValueByRoute == nil { + m.ValueByRoute = make(map[uint32]string) + } + var mapkey uint32 + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + 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 ErrInvalidLengthCrossChain + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthCrossChain + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ValueByRoute[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossChainConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossChainConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossChainConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRemoteExposure", wireType) + } + m.MaxRemoteExposure = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxRemoteExposure |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultTimeout", wireType) + } + m.DefaultTimeout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DefaultTimeout |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateFrequency", wireType) + } + m.UpdateFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpdateFrequency |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRemotePositions", wireType) + } + m.MaxRemotePositions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxRemotePositions |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedChains", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllowedChains = append(m.AllowedChains, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enabled = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxInflightDuration", wireType) + } + m.MaxInflightDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxInflightDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxInflightValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxInflightValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType == 0 { + var v ProviderType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SupportedProviders = append(m.SupportedProviders, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.SupportedProviders) == 0 { + m.SupportedProviders = make([]ProviderType, 0, elementCount) + } + for iNdEx < postIndex { + var v ProviderType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SupportedProviders = append(m.SupportedProviders, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field SupportedProviders", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StaleInflightAlert) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StaleInflightAlert: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StaleInflightAlert: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field HoursOverdue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.HoursOverdue = float64(math.Float64frombits(v)) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + 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 ErrIntOverflowCrossChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCrossChain + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCrossChain + } + 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 := skipCrossChain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCrossChain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCrossChain(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, ErrIntOverflowCrossChain + } + 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, ErrIntOverflowCrossChain + } + 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, ErrIntOverflowCrossChain + } + 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, ErrInvalidLengthCrossChain + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCrossChain + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCrossChain + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCrossChain = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCrossChain = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCrossChain = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/vaults/v2/errors.go b/types/vaults/v2/errors.go new file mode 100644 index 00000000..cf7d8d09 --- /dev/null +++ b/types/vaults/v2/errors.go @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: BUSL-1.1 +// +// Copyright (C) 2025, NASD Inc. All rights reserved. +// Use of this software is governed by the Business Source License included +// in the LICENSE file of this repository and at www.mariadb.com/bsl11. +// +// ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY +// TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER +// VERSIONS OF THE LICENSED WORK. +// +// THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF +// LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF +// LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE). +// +// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +// TITLE. + +package v2 + +import "cosmossdk.io/errors" + +var ( + ErrInvalidAuthority = errors.Register(SubmoduleName, 1, "invalid authority") + ErrInvalidAmount = errors.Register(SubmoduleName, 2, "invalid amount") + ErrVaultNotFound = errors.Register(SubmoduleName, 3, "vault not found") + ErrRemotePositionNotFound = errors.Register(SubmoduleName, 4, "remote position not found") + ErrInflightNotFound = errors.Register(SubmoduleName, 5, "inflight fund not found") + ErrWithdrawalNotFound = errors.Register(SubmoduleName, 6, "withdrawal request not found") + ErrInvalidVaultState = errors.Register(SubmoduleName, 7, "invalid vault state") + ErrOperationNotPermitted = errors.Register(SubmoduleName, 8, "operation not permitted") + ErrUnimplemented = errors.Register(SubmoduleName, 9, "feature not yet implemented") + ErrRouteNotFound = errors.Register(SubmoduleName, 10, "cross-chain route not found") + ErrRouteCapacityExceeded = errors.Register(SubmoduleName, 11, "route capacity exceeded") +) diff --git a/types/vaults/v2/events.pb.go b/types/vaults/v2/events.pb.go new file mode 100644 index 00000000..0afdd2f4 --- /dev/null +++ b/types/vaults/v2/events.pb.go @@ -0,0 +1,6814 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/events.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// EventDeposit is emitted when a user deposits into the V2 vault +type EventDeposit struct { + // User address making the deposit + Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` + // Amount deposited + AmountDeposited cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount_deposited,json=amountDeposited,proto3,customtype=cosmossdk.io/math.Int" json:"amount_deposited"` + // Block height + BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventDeposit) Reset() { *m = EventDeposit{} } +func (m *EventDeposit) String() string { return proto.CompactTextString(m) } +func (*EventDeposit) ProtoMessage() {} +func (*EventDeposit) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{0} +} +func (m *EventDeposit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventDeposit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventDeposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventDeposit.Merge(m, src) +} +func (m *EventDeposit) XXX_Size() int { + return m.Size() +} +func (m *EventDeposit) XXX_DiscardUnknown() { + xxx_messageInfo_EventDeposit.DiscardUnknown(m) +} + +var xxx_messageInfo_EventDeposit proto.InternalMessageInfo + +func (m *EventDeposit) GetDepositor() string { + if m != nil { + return m.Depositor + } + return "" +} + +func (m *EventDeposit) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventDeposit) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventWithdraw is emitted when a user withdraws from the V2 vault +type EventWithdraw struct { + // User address making the withdrawal + Withdrawer string `protobuf:"bytes,1,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"` + // Principal withdrawn + PrincipalWithdrawn cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=principal_withdrawn,json=principalWithdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"principal_withdrawn"` + // Yield withdrawn + YieldWithdrawn cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=yield_withdrawn,json=yieldWithdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"yield_withdrawn"` + // Total amount received (principal + yield - fees) + TotalAmountReceived cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=total_amount_received,json=totalAmountReceived,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_received"` + // Fees paid + FeesPaid cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=fees_paid,json=feesPaid,proto3,customtype=cosmossdk.io/math.Int" json:"fees_paid"` + // Block height + BlockHeight int64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,7,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventWithdraw) Reset() { *m = EventWithdraw{} } +func (m *EventWithdraw) String() string { return proto.CompactTextString(m) } +func (*EventWithdraw) ProtoMessage() {} +func (*EventWithdraw) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{1} +} +func (m *EventWithdraw) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventWithdraw.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventWithdraw) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventWithdraw.Merge(m, src) +} +func (m *EventWithdraw) XXX_Size() int { + return m.Size() +} +func (m *EventWithdraw) XXX_DiscardUnknown() { + xxx_messageInfo_EventWithdraw.DiscardUnknown(m) +} + +var xxx_messageInfo_EventWithdraw proto.InternalMessageInfo + +func (m *EventWithdraw) GetWithdrawer() string { + if m != nil { + return m.Withdrawer + } + return "" +} + +func (m *EventWithdraw) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventWithdraw) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventWithdrawlRequested is emitted when a user requests a withdrawal from the V2 vault +type EventWithdrawlRequested struct { + // User address requesting withdrawal + Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // Amount to withdraw (principal + yield) + AmountToWithdraw cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount_to_withdraw,json=amountToWithdraw,proto3,customtype=cosmossdk.io/math.Int" json:"amount_to_withdraw"` + // Withdrawal request ID + WithdrawalRequestId string `protobuf:"bytes,3,opt,name=withdrawal_request_id,json=withdrawalRequestId,proto3" json:"withdrawal_request_id,omitempty"` + // Expected unlock time + ExpectedUnlockTime time.Time `protobuf:"bytes,4,opt,name=expected_unlock_time,json=expectedUnlockTime,proto3,stdtime" json:"expected_unlock_time"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventWithdrawlRequested) Reset() { *m = EventWithdrawlRequested{} } +func (m *EventWithdrawlRequested) String() string { return proto.CompactTextString(m) } +func (*EventWithdrawlRequested) ProtoMessage() {} +func (*EventWithdrawlRequested) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{2} +} +func (m *EventWithdrawlRequested) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventWithdrawlRequested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventWithdrawlRequested.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventWithdrawlRequested) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventWithdrawlRequested.Merge(m, src) +} +func (m *EventWithdrawlRequested) XXX_Size() int { + return m.Size() +} +func (m *EventWithdrawlRequested) XXX_DiscardUnknown() { + xxx_messageInfo_EventWithdrawlRequested.DiscardUnknown(m) +} + +var xxx_messageInfo_EventWithdrawlRequested proto.InternalMessageInfo + +func (m *EventWithdrawlRequested) GetRequester() string { + if m != nil { + return m.Requester + } + return "" +} + +func (m *EventWithdrawlRequested) GetWithdrawalRequestId() string { + if m != nil { + return m.WithdrawalRequestId + } + return "" +} + +func (m *EventWithdrawlRequested) GetExpectedUnlockTime() time.Time { + if m != nil { + return m.ExpectedUnlockTime + } + return time.Time{} +} + +func (m *EventWithdrawlRequested) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventWithdrawlRequested) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventWithdrawalCancelled is emitted when a user cancels a withdrawal request +type EventWithdrawalCancelled struct { + // User address cancelling withdrawal + Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // Withdrawal request ID that was cancelled + WithdrawalRequestId string `protobuf:"bytes,2,opt,name=withdrawal_request_id,json=withdrawalRequestId,proto3" json:"withdrawal_request_id,omitempty"` + // Amount returned to active position + AmountReturned cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount_returned,json=amountReturned,proto3,customtype=cosmossdk.io/math.Int" json:"amount_returned"` + // Block height + BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventWithdrawalCancelled) Reset() { *m = EventWithdrawalCancelled{} } +func (m *EventWithdrawalCancelled) String() string { return proto.CompactTextString(m) } +func (*EventWithdrawalCancelled) ProtoMessage() {} +func (*EventWithdrawalCancelled) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{3} +} +func (m *EventWithdrawalCancelled) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventWithdrawalCancelled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventWithdrawalCancelled.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventWithdrawalCancelled) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventWithdrawalCancelled.Merge(m, src) +} +func (m *EventWithdrawalCancelled) XXX_Size() int { + return m.Size() +} +func (m *EventWithdrawalCancelled) XXX_DiscardUnknown() { + xxx_messageInfo_EventWithdrawalCancelled.DiscardUnknown(m) +} + +var xxx_messageInfo_EventWithdrawalCancelled proto.InternalMessageInfo + +func (m *EventWithdrawalCancelled) GetRequester() string { + if m != nil { + return m.Requester + } + return "" +} + +func (m *EventWithdrawalCancelled) GetWithdrawalRequestId() string { + if m != nil { + return m.WithdrawalRequestId + } + return "" +} + +func (m *EventWithdrawalCancelled) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventWithdrawalCancelled) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventWithdrawalProcessed is emitted when withdrawal requests are processed +type EventWithdrawalProcessed struct { + // Number of withdrawal requests processed + RequestsProcessed int32 `protobuf:"varint,1,opt,name=requests_processed,json=requestsProcessed,proto3" json:"requests_processed,omitempty"` + // Total amount processed + TotalAmountProcessed cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_amount_processed,json=totalAmountProcessed,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_processed"` + // Total amount distributed + TotalAmountDistributed cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=total_amount_distributed,json=totalAmountDistributed,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_distributed"` + // Block height + BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventWithdrawalProcessed) Reset() { *m = EventWithdrawalProcessed{} } +func (m *EventWithdrawalProcessed) String() string { return proto.CompactTextString(m) } +func (*EventWithdrawalProcessed) ProtoMessage() {} +func (*EventWithdrawalProcessed) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{4} +} +func (m *EventWithdrawalProcessed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventWithdrawalProcessed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventWithdrawalProcessed.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventWithdrawalProcessed) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventWithdrawalProcessed.Merge(m, src) +} +func (m *EventWithdrawalProcessed) XXX_Size() int { + return m.Size() +} +func (m *EventWithdrawalProcessed) XXX_DiscardUnknown() { + xxx_messageInfo_EventWithdrawalProcessed.DiscardUnknown(m) +} + +var xxx_messageInfo_EventWithdrawalProcessed proto.InternalMessageInfo + +func (m *EventWithdrawalProcessed) GetRequestsProcessed() int32 { + if m != nil { + return m.RequestsProcessed + } + return 0 +} + +func (m *EventWithdrawalProcessed) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventWithdrawalProcessed) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventNAVUpdated is emitted when NAV is updated for a vault +type EventNAVUpdated struct { + // Previous NAV + PreviousNav cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=previous_nav,json=previousNav,proto3,customtype=cosmossdk.io/math.Int" json:"previous_nav"` + // New NAV + NewNav cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=new_nav,json=newNav,proto3,customtype=cosmossdk.io/math.Int" json:"new_nav"` + // NAV change percentage (basis points) + ChangeBps int32 `protobuf:"varint,3,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Total deposits in vault + TotalDeposits cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=total_deposits,json=totalDeposits,proto3,customtype=cosmossdk.io/math.Int" json:"total_deposits"` + // Total accrued yield + TotalAccruedYield cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=total_accrued_yield,json=totalAccruedYield,proto3,customtype=cosmossdk.io/math.Int" json:"total_accrued_yield"` + // Authority that updated NAV + Authority string `protobuf:"bytes,6,opt,name=authority,proto3" json:"authority,omitempty"` + // Update reason + Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,8,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,9,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventNAVUpdated) Reset() { *m = EventNAVUpdated{} } +func (m *EventNAVUpdated) String() string { return proto.CompactTextString(m) } +func (*EventNAVUpdated) ProtoMessage() {} +func (*EventNAVUpdated) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{5} +} +func (m *EventNAVUpdated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventNAVUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventNAVUpdated.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventNAVUpdated) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventNAVUpdated.Merge(m, src) +} +func (m *EventNAVUpdated) XXX_Size() int { + return m.Size() +} +func (m *EventNAVUpdated) XXX_DiscardUnknown() { + xxx_messageInfo_EventNAVUpdated.DiscardUnknown(m) +} + +var xxx_messageInfo_EventNAVUpdated proto.InternalMessageInfo + +func (m *EventNAVUpdated) GetChangeBps() int32 { + if m != nil { + return m.ChangeBps + } + return 0 +} + +func (m *EventNAVUpdated) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *EventNAVUpdated) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *EventNAVUpdated) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventNAVUpdated) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventFeeCollected is emitted when fees are collected +type EventFeeCollected struct { + // Fee type (deposit, withdrawal, etc.) + FeeType string `protobuf:"bytes,1,opt,name=fee_type,json=feeType,proto3" json:"fee_type,omitempty"` + // Amount collected + AmountCollected cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount_collected,json=amountCollected,proto3,customtype=cosmossdk.io/math.Int" json:"amount_collected"` + // Fee rate used (basis points) + FeeRateBps int32 `protobuf:"varint,3,opt,name=fee_rate_bps,json=feeRateBps,proto3" json:"fee_rate_bps,omitempty"` + // User who triggered the fee + Payer string `protobuf:"bytes,4,opt,name=payer,proto3" json:"payer,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventFeeCollected) Reset() { *m = EventFeeCollected{} } +func (m *EventFeeCollected) String() string { return proto.CompactTextString(m) } +func (*EventFeeCollected) ProtoMessage() {} +func (*EventFeeCollected) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{6} +} +func (m *EventFeeCollected) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventFeeCollected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventFeeCollected.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventFeeCollected) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventFeeCollected.Merge(m, src) +} +func (m *EventFeeCollected) XXX_Size() int { + return m.Size() +} +func (m *EventFeeCollected) XXX_DiscardUnknown() { + xxx_messageInfo_EventFeeCollected.DiscardUnknown(m) +} + +var xxx_messageInfo_EventFeeCollected proto.InternalMessageInfo + +func (m *EventFeeCollected) GetFeeType() string { + if m != nil { + return m.FeeType + } + return "" +} + +func (m *EventFeeCollected) GetFeeRateBps() int32 { + if m != nil { + return m.FeeRateBps + } + return 0 +} + +func (m *EventFeeCollected) GetPayer() string { + if m != nil { + return m.Payer + } + return "" +} + +func (m *EventFeeCollected) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventFeeCollected) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventYieldPreferenceUpdated is emitted when a user updates their yield preference +type EventYieldPreferenceUpdated struct { + // User address + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // Previous yield preference + PreviousYieldPreference bool `protobuf:"varint,2,opt,name=previous_yield_preference,json=previousYieldPreference,proto3" json:"previous_yield_preference,omitempty"` + // New yield preference + NewYieldPreference bool `protobuf:"varint,3,opt,name=new_yield_preference,json=newYieldPreference,proto3" json:"new_yield_preference,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventYieldPreferenceUpdated) Reset() { *m = EventYieldPreferenceUpdated{} } +func (m *EventYieldPreferenceUpdated) String() string { return proto.CompactTextString(m) } +func (*EventYieldPreferenceUpdated) ProtoMessage() {} +func (*EventYieldPreferenceUpdated) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{7} +} +func (m *EventYieldPreferenceUpdated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventYieldPreferenceUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventYieldPreferenceUpdated.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventYieldPreferenceUpdated) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventYieldPreferenceUpdated.Merge(m, src) +} +func (m *EventYieldPreferenceUpdated) XXX_Size() int { + return m.Size() +} +func (m *EventYieldPreferenceUpdated) XXX_DiscardUnknown() { + xxx_messageInfo_EventYieldPreferenceUpdated.DiscardUnknown(m) +} + +var xxx_messageInfo_EventYieldPreferenceUpdated proto.InternalMessageInfo + +func (m *EventYieldPreferenceUpdated) GetUser() string { + if m != nil { + return m.User + } + return "" +} + +func (m *EventYieldPreferenceUpdated) GetPreviousYieldPreference() bool { + if m != nil { + return m.PreviousYieldPreference + } + return false +} + +func (m *EventYieldPreferenceUpdated) GetNewYieldPreference() bool { + if m != nil { + return m.NewYieldPreference + } + return false +} + +func (m *EventYieldPreferenceUpdated) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventYieldPreferenceUpdated) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventVaultConfigUpdated is emitted when vault configuration is updated +type EventVaultConfigUpdated struct { + // Previous config (JSON serialized) + PreviousConfig string `protobuf:"bytes,1,opt,name=previous_config,json=previousConfig,proto3" json:"previous_config,omitempty"` + // New config (JSON serialized) + NewConfig string `protobuf:"bytes,2,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` + // Authority that made the update + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` + // Update reason + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventVaultConfigUpdated) Reset() { *m = EventVaultConfigUpdated{} } +func (m *EventVaultConfigUpdated) String() string { return proto.CompactTextString(m) } +func (*EventVaultConfigUpdated) ProtoMessage() {} +func (*EventVaultConfigUpdated) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{8} +} +func (m *EventVaultConfigUpdated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventVaultConfigUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventVaultConfigUpdated.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventVaultConfigUpdated) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventVaultConfigUpdated.Merge(m, src) +} +func (m *EventVaultConfigUpdated) XXX_Size() int { + return m.Size() +} +func (m *EventVaultConfigUpdated) XXX_DiscardUnknown() { + xxx_messageInfo_EventVaultConfigUpdated.DiscardUnknown(m) +} + +var xxx_messageInfo_EventVaultConfigUpdated proto.InternalMessageInfo + +func (m *EventVaultConfigUpdated) GetPreviousConfig() string { + if m != nil { + return m.PreviousConfig + } + return "" +} + +func (m *EventVaultConfigUpdated) GetNewConfig() string { + if m != nil { + return m.NewConfig + } + return "" +} + +func (m *EventVaultConfigUpdated) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *EventVaultConfigUpdated) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *EventVaultConfigUpdated) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventVaultConfigUpdated) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventInflightFundCreated is emitted when an inflight fund operation is initiated +type EventInflightFundCreated struct { + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Operation type (DEPOSIT_TO_POSITION, WITHDRAWAL_FROM_POSITION, etc.) + OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` + // Amount + Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Value at initiation + ValueAtInitiation cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=value_at_initiation,json=valueAtInitiation,proto3,customtype=cosmossdk.io/math.Int" json:"value_at_initiation"` + // Initiator address + Initiator string `protobuf:"bytes,6,opt,name=initiator,proto3" json:"initiator,omitempty"` + // Source chain + SourceChain string `protobuf:"bytes,7,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Destination chain + DestinationChain string `protobuf:"bytes,8,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"` + // Expected completion time + ExpectedAt time.Time `protobuf:"bytes,9,opt,name=expected_at,json=expectedAt,proto3,stdtime" json:"expected_at"` + // Block height + BlockHeight int64 `protobuf:"varint,10,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,11,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventInflightFundCreated) Reset() { *m = EventInflightFundCreated{} } +func (m *EventInflightFundCreated) String() string { return proto.CompactTextString(m) } +func (*EventInflightFundCreated) ProtoMessage() {} +func (*EventInflightFundCreated) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{9} +} +func (m *EventInflightFundCreated) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventInflightFundCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventInflightFundCreated.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventInflightFundCreated) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventInflightFundCreated.Merge(m, src) +} +func (m *EventInflightFundCreated) XXX_Size() int { + return m.Size() +} +func (m *EventInflightFundCreated) XXX_DiscardUnknown() { + xxx_messageInfo_EventInflightFundCreated.DiscardUnknown(m) +} + +var xxx_messageInfo_EventInflightFundCreated proto.InternalMessageInfo + +func (m *EventInflightFundCreated) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *EventInflightFundCreated) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *EventInflightFundCreated) GetOperationType() string { + if m != nil { + return m.OperationType + } + return "" +} + +func (m *EventInflightFundCreated) GetInitiator() string { + if m != nil { + return m.Initiator + } + return "" +} + +func (m *EventInflightFundCreated) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *EventInflightFundCreated) GetDestinationChain() string { + if m != nil { + return m.DestinationChain + } + return "" +} + +func (m *EventInflightFundCreated) GetExpectedAt() time.Time { + if m != nil { + return m.ExpectedAt + } + return time.Time{} +} + +func (m *EventInflightFundCreated) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventInflightFundCreated) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventInflightFundStatusChanged is emitted when an inflight fund's status changes +type EventInflightFundStatusChanged struct { + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Previous status + PreviousStatus string `protobuf:"bytes,3,opt,name=previous_status,json=previousStatus,proto3" json:"previous_status,omitempty"` + // New status + NewStatus string `protobuf:"bytes,4,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"` + // Amount + Amount cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Status change reason + Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,7,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,8,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventInflightFundStatusChanged) Reset() { *m = EventInflightFundStatusChanged{} } +func (m *EventInflightFundStatusChanged) String() string { return proto.CompactTextString(m) } +func (*EventInflightFundStatusChanged) ProtoMessage() {} +func (*EventInflightFundStatusChanged) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{10} +} +func (m *EventInflightFundStatusChanged) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventInflightFundStatusChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventInflightFundStatusChanged.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventInflightFundStatusChanged) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventInflightFundStatusChanged.Merge(m, src) +} +func (m *EventInflightFundStatusChanged) XXX_Size() int { + return m.Size() +} +func (m *EventInflightFundStatusChanged) XXX_DiscardUnknown() { + xxx_messageInfo_EventInflightFundStatusChanged.DiscardUnknown(m) +} + +var xxx_messageInfo_EventInflightFundStatusChanged proto.InternalMessageInfo + +func (m *EventInflightFundStatusChanged) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *EventInflightFundStatusChanged) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *EventInflightFundStatusChanged) GetPreviousStatus() string { + if m != nil { + return m.PreviousStatus + } + return "" +} + +func (m *EventInflightFundStatusChanged) GetNewStatus() string { + if m != nil { + return m.NewStatus + } + return "" +} + +func (m *EventInflightFundStatusChanged) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *EventInflightFundStatusChanged) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventInflightFundStatusChanged) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventInflightFundCompleted is emitted when an inflight fund operation completes +type EventInflightFundCompleted struct { + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Operation type + OperationType string `protobuf:"bytes,3,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` + // Final amount + FinalAmount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=final_amount,json=finalAmount,proto3,customtype=cosmossdk.io/math.Int" json:"final_amount"` + // Initial amount + InitialAmount cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=initial_amount,json=initialAmount,proto3,customtype=cosmossdk.io/math.Int" json:"initial_amount"` + // Time taken (seconds) + DurationSeconds int64 `protobuf:"varint,6,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,7,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,8,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventInflightFundCompleted) Reset() { *m = EventInflightFundCompleted{} } +func (m *EventInflightFundCompleted) String() string { return proto.CompactTextString(m) } +func (*EventInflightFundCompleted) ProtoMessage() {} +func (*EventInflightFundCompleted) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{11} +} +func (m *EventInflightFundCompleted) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventInflightFundCompleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventInflightFundCompleted.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventInflightFundCompleted) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventInflightFundCompleted.Merge(m, src) +} +func (m *EventInflightFundCompleted) XXX_Size() int { + return m.Size() +} +func (m *EventInflightFundCompleted) XXX_DiscardUnknown() { + xxx_messageInfo_EventInflightFundCompleted.DiscardUnknown(m) +} + +var xxx_messageInfo_EventInflightFundCompleted proto.InternalMessageInfo + +func (m *EventInflightFundCompleted) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *EventInflightFundCompleted) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *EventInflightFundCompleted) GetOperationType() string { + if m != nil { + return m.OperationType + } + return "" +} + +func (m *EventInflightFundCompleted) GetDurationSeconds() int64 { + if m != nil { + return m.DurationSeconds + } + return 0 +} + +func (m *EventInflightFundCompleted) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventInflightFundCompleted) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventInflightFundStale is emitted when an inflight fund is detected as stale +type EventInflightFundStale struct { + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Amount + Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Hours overdue + HoursOverdue int64 `protobuf:"varint,4,opt,name=hours_overdue,json=hoursOverdue,proto3" json:"hours_overdue,omitempty"` + // Expected completion time + ExpectedAt time.Time `protobuf:"bytes,5,opt,name=expected_at,json=expectedAt,proto3,stdtime" json:"expected_at"` + // Current status + CurrentStatus string `protobuf:"bytes,6,opt,name=current_status,json=currentStatus,proto3" json:"current_status,omitempty"` + // Recommended action + RecommendedAction string `protobuf:"bytes,7,opt,name=recommended_action,json=recommendedAction,proto3" json:"recommended_action,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,8,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,9,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventInflightFundStale) Reset() { *m = EventInflightFundStale{} } +func (m *EventInflightFundStale) String() string { return proto.CompactTextString(m) } +func (*EventInflightFundStale) ProtoMessage() {} +func (*EventInflightFundStale) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{12} +} +func (m *EventInflightFundStale) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventInflightFundStale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventInflightFundStale.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventInflightFundStale) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventInflightFundStale.Merge(m, src) +} +func (m *EventInflightFundStale) XXX_Size() int { + return m.Size() +} +func (m *EventInflightFundStale) XXX_DiscardUnknown() { + xxx_messageInfo_EventInflightFundStale.DiscardUnknown(m) +} + +var xxx_messageInfo_EventInflightFundStale proto.InternalMessageInfo + +func (m *EventInflightFundStale) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *EventInflightFundStale) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *EventInflightFundStale) GetHoursOverdue() int64 { + if m != nil { + return m.HoursOverdue + } + return 0 +} + +func (m *EventInflightFundStale) GetExpectedAt() time.Time { + if m != nil { + return m.ExpectedAt + } + return time.Time{} +} + +func (m *EventInflightFundStale) GetCurrentStatus() string { + if m != nil { + return m.CurrentStatus + } + return "" +} + +func (m *EventInflightFundStale) GetRecommendedAction() string { + if m != nil { + return m.RecommendedAction + } + return "" +} + +func (m *EventInflightFundStale) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventInflightFundStale) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventInflightFundCleaned is emitted when a stale inflight fund is cleaned up +type EventInflightFundCleaned struct { + // Transaction ID + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Route ID + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Amount returned to vault + AmountReturned cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount_returned,json=amountReturned,proto3,customtype=cosmossdk.io/math.Int" json:"amount_returned"` + // Reason for cleanup + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + // Authority that triggered cleanup + Authority string `protobuf:"bytes,5,opt,name=authority,proto3" json:"authority,omitempty"` + // Block height + BlockHeight int64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,7,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventInflightFundCleaned) Reset() { *m = EventInflightFundCleaned{} } +func (m *EventInflightFundCleaned) String() string { return proto.CompactTextString(m) } +func (*EventInflightFundCleaned) ProtoMessage() {} +func (*EventInflightFundCleaned) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{13} +} +func (m *EventInflightFundCleaned) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventInflightFundCleaned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventInflightFundCleaned.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventInflightFundCleaned) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventInflightFundCleaned.Merge(m, src) +} +func (m *EventInflightFundCleaned) XXX_Size() int { + return m.Size() +} +func (m *EventInflightFundCleaned) XXX_DiscardUnknown() { + xxx_messageInfo_EventInflightFundCleaned.DiscardUnknown(m) +} + +var xxx_messageInfo_EventInflightFundCleaned proto.InternalMessageInfo + +func (m *EventInflightFundCleaned) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *EventInflightFundCleaned) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *EventInflightFundCleaned) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *EventInflightFundCleaned) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *EventInflightFundCleaned) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventInflightFundCleaned) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +// EventRouteCapacityExceeded is emitted when a route's capacity limit is reached +type EventRouteCapacityExceeded struct { + // Route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Current inflight value + CurrentInflightValue cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=current_inflight_value,json=currentInflightValue,proto3,customtype=cosmossdk.io/math.Int" json:"current_inflight_value"` + // Route capacity limit + CapacityLimit cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=capacity_limit,json=capacityLimit,proto3,customtype=cosmossdk.io/math.Int" json:"capacity_limit"` + // Attempted operation amount + AttemptedAmount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=attempted_amount,json=attemptedAmount,proto3,customtype=cosmossdk.io/math.Int" json:"attempted_amount"` + // Block height + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Timestamp + Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *EventRouteCapacityExceeded) Reset() { *m = EventRouteCapacityExceeded{} } +func (m *EventRouteCapacityExceeded) String() string { return proto.CompactTextString(m) } +func (*EventRouteCapacityExceeded) ProtoMessage() {} +func (*EventRouteCapacityExceeded) Descriptor() ([]byte, []int) { + return fileDescriptor_653788f3253d7e19, []int{14} +} +func (m *EventRouteCapacityExceeded) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventRouteCapacityExceeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventRouteCapacityExceeded.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventRouteCapacityExceeded) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventRouteCapacityExceeded.Merge(m, src) +} +func (m *EventRouteCapacityExceeded) XXX_Size() int { + return m.Size() +} +func (m *EventRouteCapacityExceeded) XXX_DiscardUnknown() { + xxx_messageInfo_EventRouteCapacityExceeded.DiscardUnknown(m) +} + +var xxx_messageInfo_EventRouteCapacityExceeded proto.InternalMessageInfo + +func (m *EventRouteCapacityExceeded) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *EventRouteCapacityExceeded) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *EventRouteCapacityExceeded) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func init() { + proto.RegisterType((*EventDeposit)(nil), "noble.dollar.vaults.v2.EventDeposit") + proto.RegisterType((*EventWithdraw)(nil), "noble.dollar.vaults.v2.EventWithdraw") + proto.RegisterType((*EventWithdrawlRequested)(nil), "noble.dollar.vaults.v2.EventWithdrawlRequested") + proto.RegisterType((*EventWithdrawalCancelled)(nil), "noble.dollar.vaults.v2.EventWithdrawalCancelled") + proto.RegisterType((*EventWithdrawalProcessed)(nil), "noble.dollar.vaults.v2.EventWithdrawalProcessed") + proto.RegisterType((*EventNAVUpdated)(nil), "noble.dollar.vaults.v2.EventNAVUpdated") + proto.RegisterType((*EventFeeCollected)(nil), "noble.dollar.vaults.v2.EventFeeCollected") + proto.RegisterType((*EventYieldPreferenceUpdated)(nil), "noble.dollar.vaults.v2.EventYieldPreferenceUpdated") + proto.RegisterType((*EventVaultConfigUpdated)(nil), "noble.dollar.vaults.v2.EventVaultConfigUpdated") + proto.RegisterType((*EventInflightFundCreated)(nil), "noble.dollar.vaults.v2.EventInflightFundCreated") + proto.RegisterType((*EventInflightFundStatusChanged)(nil), "noble.dollar.vaults.v2.EventInflightFundStatusChanged") + proto.RegisterType((*EventInflightFundCompleted)(nil), "noble.dollar.vaults.v2.EventInflightFundCompleted") + proto.RegisterType((*EventInflightFundStale)(nil), "noble.dollar.vaults.v2.EventInflightFundStale") + proto.RegisterType((*EventInflightFundCleaned)(nil), "noble.dollar.vaults.v2.EventInflightFundCleaned") + proto.RegisterType((*EventRouteCapacityExceeded)(nil), "noble.dollar.vaults.v2.EventRouteCapacityExceeded") +} + +func init() { + proto.RegisterFile("noble/dollar/vaults/v2/events.proto", fileDescriptor_653788f3253d7e19) +} + +var fileDescriptor_653788f3253d7e19 = []byte{ + // 1554 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xcd, 0x6f, 0x13, 0xd7, + 0x16, 0x8f, 0xbf, 0x92, 0xf8, 0x26, 0x4e, 0xc8, 0x24, 0x04, 0x93, 0xa7, 0x97, 0xe4, 0x81, 0xd0, + 0xe3, 0x7d, 0x60, 0xa3, 0x20, 0xa1, 0xa7, 0x27, 0x75, 0x91, 0x04, 0x10, 0x96, 0x5a, 0x8a, 0x26, + 0x10, 0x44, 0x2b, 0x75, 0x7a, 0x33, 0x73, 0x6c, 0xdf, 0x32, 0xbe, 0x77, 0x7a, 0xef, 0x1d, 0x87, + 0x74, 0xdd, 0x55, 0x57, 0x2c, 0xbb, 0xac, 0xd4, 0x2e, 0xba, 0xec, 0x82, 0x65, 0x57, 0x55, 0x2b, + 0xb1, 0xa9, 0x84, 0x58, 0x55, 0x5d, 0xd0, 0x0a, 0x54, 0x75, 0xd7, 0x4d, 0xff, 0x81, 0xea, 0x7e, + 0xcc, 0xd8, 0xc6, 0x04, 0xc3, 0x04, 0xbc, 0x89, 0x3c, 0xe7, 0x9e, 0xfb, 0xbb, 0xbe, 0xe7, 0xfc, + 0x7e, 0xe7, 0x9c, 0x89, 0xd1, 0x69, 0xca, 0xf6, 0x42, 0xa8, 0x07, 0x2c, 0x0c, 0x31, 0xaf, 0x77, + 0x71, 0x1c, 0x4a, 0x51, 0xef, 0x6e, 0xd4, 0xa1, 0x0b, 0x54, 0x8a, 0x5a, 0xc4, 0x99, 0x64, 0xce, + 0xb2, 0x76, 0xaa, 0x19, 0xa7, 0x9a, 0x71, 0xaa, 0x75, 0x37, 0x56, 0x16, 0x70, 0x87, 0x50, 0x56, + 0xd7, 0x7f, 0x8d, 0xeb, 0xca, 0x49, 0x9f, 0x89, 0x0e, 0x13, 0x9e, 0x7e, 0xaa, 0x9b, 0x07, 0xbb, + 0xb4, 0xd4, 0x62, 0x2d, 0x66, 0xec, 0xea, 0x93, 0xb5, 0xae, 0xb5, 0x18, 0x6b, 0x85, 0x50, 0xd7, + 0x4f, 0x7b, 0x71, 0xb3, 0x2e, 0x49, 0x07, 0x84, 0xc4, 0x9d, 0xc8, 0x38, 0x9c, 0xfa, 0x2c, 0x8f, + 0x66, 0x2f, 0xab, 0x6f, 0x73, 0x09, 0x22, 0x26, 0x88, 0x74, 0x2e, 0xa2, 0x72, 0x60, 0x3e, 0x32, + 0x5e, 0xcd, 0xad, 0xe7, 0xce, 0x96, 0xb7, 0xaa, 0x8f, 0xee, 0x9f, 0x5b, 0xb2, 0x87, 0x6d, 0x06, + 0x01, 0x07, 0x21, 0x76, 0x24, 0x27, 0xb4, 0xe5, 0xf6, 0x5c, 0x9d, 0xf7, 0xd1, 0x31, 0xdc, 0x61, + 0x31, 0x95, 0x9e, 0xb5, 0x41, 0x50, 0xcd, 0xeb, 0xed, 0xe7, 0x1f, 0x3c, 0x5e, 0x9b, 0xf8, 0xf9, + 0xf1, 0xda, 0x71, 0x03, 0x21, 0x82, 0x3b, 0x35, 0xc2, 0xea, 0x1d, 0x2c, 0xdb, 0xb5, 0x06, 0x95, + 0x8f, 0xee, 0x9f, 0x43, 0x16, 0xbb, 0x41, 0xe5, 0xd7, 0xbf, 0x7f, 0xf3, 0xef, 0x9c, 0x3b, 0x6f, + 0x90, 0x2e, 0x25, 0x40, 0xce, 0x3f, 0xd0, 0xec, 0x5e, 0xc8, 0xfc, 0x3b, 0x5e, 0x1b, 0x48, 0xab, + 0x2d, 0xab, 0x85, 0xf5, 0xdc, 0xd9, 0x82, 0x3b, 0xa3, 0x6d, 0x57, 0xb5, 0xc9, 0xd9, 0x42, 0xe5, + 0xf4, 0x6e, 0xd5, 0xe2, 0x7a, 0xee, 0xec, 0xcc, 0xc6, 0x4a, 0xcd, 0xdc, 0xbe, 0x96, 0xdc, 0xbe, + 0x76, 0x23, 0xf1, 0xd8, 0x9a, 0x56, 0x5f, 0xea, 0xde, 0x2f, 0x6b, 0x39, 0xb7, 0xb7, 0xed, 0xd4, + 0x97, 0x45, 0x54, 0xd1, 0xc1, 0xb8, 0x45, 0x64, 0x3b, 0xe0, 0x78, 0xdf, 0xf9, 0x1f, 0x42, 0xfb, + 0xf6, 0x33, 0x8c, 0x0e, 0x47, 0x9f, 0xaf, 0x83, 0xd1, 0x62, 0xc4, 0x09, 0xf5, 0x49, 0x84, 0x43, + 0x2f, 0xb1, 0xd3, 0xcc, 0x21, 0x71, 0x52, 0xb0, 0xe4, 0xbb, 0x51, 0xe7, 0x36, 0x9a, 0x3f, 0x20, + 0x10, 0x06, 0x7d, 0xf0, 0x85, 0x8c, 0xf0, 0x73, 0x1a, 0xa8, 0x07, 0x1d, 0xa0, 0xe3, 0x92, 0x49, + 0x1c, 0x7a, 0x36, 0xa7, 0x1c, 0x7c, 0x20, 0x5d, 0x08, 0x74, 0x64, 0xb3, 0x1c, 0xb0, 0xa8, 0xe1, + 0x36, 0x35, 0x9a, 0x6b, 0xc1, 0x9c, 0x77, 0x50, 0xb9, 0x09, 0x20, 0xbc, 0x08, 0x93, 0xa0, 0x5a, + 0xca, 0x88, 0x3c, 0xad, 0x20, 0xae, 0x63, 0x32, 0xcc, 0x92, 0xc9, 0x11, 0x2c, 0x99, 0xca, 0xc6, + 0x92, 0xaf, 0x0a, 0xe8, 0xc4, 0x00, 0x4b, 0x42, 0x17, 0x3e, 0x8e, 0x41, 0x28, 0xa2, 0x5e, 0x44, + 0x65, 0x6e, 0x1f, 0x5e, 0x42, 0x3d, 0xa9, 0xab, 0xf3, 0x01, 0x72, 0x6c, 0xa4, 0x25, 0x4b, 0xd3, + 0x99, 0x99, 0x2c, 0x56, 0x89, 0x37, 0x58, 0xca, 0xe3, 0x0d, 0x74, 0x3c, 0x41, 0xc5, 0xa1, 0x67, + 0xcf, 0xf5, 0x48, 0x60, 0x08, 0xe3, 0x2e, 0xf6, 0x16, 0xed, 0x5d, 0x1a, 0x81, 0xb3, 0x8b, 0x96, + 0xe0, 0x6e, 0x04, 0xbe, 0x84, 0xc0, 0x8b, 0xa9, 0x0e, 0xac, 0x0a, 0xc2, 0x2b, 0x89, 0xcb, 0x49, + 0x10, 0x6e, 0x6a, 0x00, 0xe5, 0x32, 0x94, 0xa6, 0xd2, 0x88, 0x34, 0x4d, 0x66, 0x4b, 0xd3, 0x83, + 0x3c, 0xaa, 0x0e, 0xa4, 0x09, 0x87, 0xdb, 0x98, 0xfa, 0x10, 0x86, 0x47, 0xc8, 0xd3, 0xa1, 0x71, + 0xcc, 0x1f, 0x1e, 0xc7, 0xdb, 0x68, 0x3e, 0x55, 0x91, 0x8c, 0x39, 0x85, 0x20, 0xbb, 0x4c, 0xb1, + 0x15, 0x90, 0xc1, 0x19, 0x0a, 0x65, 0x71, 0x44, 0x28, 0x4b, 0xd9, 0x42, 0xf9, 0x69, 0x61, 0x28, + 0x94, 0xd7, 0x39, 0xf3, 0x41, 0x08, 0x08, 0x9c, 0x73, 0xc8, 0xb1, 0x71, 0xd0, 0x7d, 0xc9, 0x58, + 0x75, 0x4c, 0x4b, 0xee, 0x42, 0xb2, 0xd2, 0x73, 0x6f, 0xa2, 0xe5, 0x81, 0xca, 0xd2, 0xdb, 0x92, + 0x95, 0xed, 0x4b, 0x7d, 0xa5, 0xa5, 0x77, 0xce, 0x47, 0xa8, 0x3a, 0x70, 0x4e, 0x40, 0x84, 0xe4, + 0x64, 0x2f, 0x96, 0x47, 0x08, 0xff, 0x72, 0xdf, 0x49, 0x97, 0x7a, 0x78, 0xe3, 0x4a, 0xc3, 0x77, + 0x45, 0x34, 0xaf, 0xd3, 0x70, 0x6d, 0x73, 0xf7, 0x66, 0x14, 0x60, 0x75, 0xf4, 0x0e, 0x9a, 0x8d, + 0x38, 0x74, 0x09, 0x8b, 0x85, 0x47, 0x71, 0xd7, 0x72, 0xf9, 0xd5, 0xaf, 0x36, 0x93, 0xa0, 0x5c, + 0xc3, 0x5d, 0xa7, 0x81, 0xa6, 0x28, 0xec, 0x6b, 0xbc, 0xac, 0x49, 0x99, 0xa4, 0xb0, 0xaf, 0xa0, + 0xfe, 0x8e, 0x90, 0xdf, 0xc6, 0xb4, 0x05, 0xde, 0x5e, 0x24, 0x74, 0xe0, 0x4b, 0x6e, 0xd9, 0x58, + 0xb6, 0x22, 0xe1, 0xdc, 0x42, 0x73, 0x26, 0x4b, 0x76, 0x68, 0x10, 0x99, 0x1b, 0x4c, 0x45, 0xe3, + 0xd8, 0x91, 0x41, 0x38, 0x1f, 0xa2, 0x45, 0x9b, 0x7e, 0xdf, 0xe7, 0x31, 0x04, 0x9e, 0x6e, 0x70, + 0x99, 0x9b, 0xcc, 0x82, 0xc9, 0xbc, 0xc1, 0xba, 0xad, 0xa0, 0x54, 0x09, 0xc1, 0xb1, 0x6c, 0x33, + 0x4e, 0xe4, 0x81, 0xae, 0x51, 0x2f, 0x2c, 0x21, 0xa9, 0xab, 0xb3, 0x8c, 0x26, 0x39, 0x60, 0xc1, + 0xa8, 0xee, 0x3f, 0x65, 0xd7, 0x3e, 0x0d, 0x91, 0x68, 0x7a, 0x04, 0x89, 0xca, 0xd9, 0x48, 0xf4, + 0x7d, 0x1e, 0x2d, 0x68, 0x12, 0x5d, 0x01, 0xd8, 0x66, 0x61, 0xa8, 0xab, 0xb3, 0x73, 0x12, 0xa9, + 0x36, 0xea, 0xc9, 0x83, 0x08, 0x0c, 0x85, 0xdc, 0xa9, 0x26, 0xc0, 0x8d, 0x83, 0x08, 0xfa, 0x06, + 0x3b, 0x3f, 0x71, 0x3f, 0xea, 0x60, 0xd7, 0x3b, 0x77, 0x1d, 0xcd, 0xaa, 0x73, 0x39, 0x96, 0xfd, + 0x04, 0x41, 0x4d, 0x00, 0x17, 0x4b, 0xcd, 0x90, 0x1a, 0x2a, 0x45, 0xf8, 0x00, 0xb8, 0x25, 0xc6, + 0xe1, 0x21, 0x36, 0x6e, 0xe3, 0xea, 0x2e, 0x5f, 0xe4, 0xd1, 0xdf, 0x74, 0x18, 0x35, 0x19, 0xae, + 0x73, 0x68, 0x02, 0x07, 0xea, 0x43, 0xa2, 0xcb, 0xff, 0xa2, 0x62, 0x2c, 0x5e, 0xa2, 0xb7, 0x68, + 0x2f, 0xe7, 0xff, 0xe8, 0x64, 0xaa, 0x62, 0x33, 0xd2, 0x45, 0x29, 0xa2, 0x0e, 0xf6, 0xb4, 0x7b, + 0x22, 0x71, 0x78, 0xe6, 0x40, 0xe7, 0x3c, 0x5a, 0x52, 0x62, 0x1d, 0xda, 0x56, 0xd0, 0xdb, 0x1c, + 0x0a, 0xfb, 0xcf, 0xee, 0x18, 0x53, 0xb9, 0xfa, 0x3c, 0x6f, 0xe7, 0xa4, 0x5d, 0xf5, 0x4a, 0xb3, + 0xcd, 0x68, 0x93, 0xb4, 0x92, 0xf0, 0xfc, 0x13, 0xcd, 0xa7, 0x17, 0xf6, 0xf5, 0x8a, 0xa5, 0xdd, + 0x5c, 0x62, 0x36, 0xfe, 0xaa, 0x7e, 0xa8, 0xdb, 0x59, 0x1f, 0xd3, 0x65, 0xcb, 0x14, 0xf6, 0xed, + 0xf2, 0x80, 0x08, 0x0b, 0x59, 0x44, 0x58, 0x7c, 0xa1, 0x08, 0xdf, 0x10, 0x7b, 0x7e, 0x2b, 0xda, + 0x86, 0xda, 0xa0, 0xcd, 0x50, 0xa1, 0x5e, 0x89, 0x69, 0xb0, 0xcd, 0x41, 0xc7, 0xe6, 0x0c, 0x9a, + 0x93, 0x1c, 0x53, 0x81, 0x7d, 0x49, 0x18, 0x55, 0xc3, 0x85, 0x09, 0x4d, 0xa5, 0xcf, 0xda, 0xd0, + 0x92, 0xe5, 0x2c, 0x96, 0x90, 0x4c, 0x1f, 0x15, 0x77, 0x4a, 0x3f, 0x37, 0x34, 0x02, 0x8b, 0x80, + 0x63, 0xbd, 0x5f, 0x6b, 0xda, 0x8c, 0x79, 0x95, 0xd4, 0xaa, 0x95, 0x7d, 0x15, 0x4d, 0x1a, 0x3d, + 0x66, 0x2e, 0xba, 0x76, 0xbf, 0xaa, 0xb6, 0x5d, 0x1c, 0xc6, 0xe0, 0x61, 0xe9, 0x11, 0x4a, 0x24, + 0xd1, 0x87, 0x64, 0xaf, 0xb6, 0x1a, 0x6c, 0x53, 0x36, 0x52, 0x28, 0x95, 0x68, 0x0b, 0xcc, 0xf8, + 0xe8, 0x6a, 0x9b, 0xba, 0xaa, 0x84, 0x0a, 0x16, 0x73, 0x1f, 0x3c, 0xbf, 0x8d, 0x49, 0x52, 0x73, + 0x67, 0x8c, 0x6d, 0x5b, 0x99, 0x9c, 0xff, 0xa0, 0x85, 0x00, 0x84, 0x24, 0xd4, 0xc4, 0xcb, 0xf8, + 0x4d, 0x6b, 0xbf, 0x63, 0x7d, 0x0b, 0xc6, 0xf9, 0x32, 0x9a, 0x49, 0x87, 0x62, 0x2c, 0x5f, 0xa9, + 0x08, 0xa3, 0x64, 0xe3, 0xa6, 0x1c, 0xe2, 0x19, 0x1a, 0xc1, 0xb3, 0x99, 0x6c, 0x3c, 0xfb, 0x33, + 0x8f, 0x56, 0x87, 0x78, 0xb6, 0x23, 0xb1, 0x8c, 0xc5, 0xb6, 0xee, 0xc1, 0xaf, 0x83, 0x6d, 0xfd, + 0x5a, 0x16, 0x1a, 0xdb, 0xd2, 0x2d, 0xd5, 0xb2, 0x39, 0x31, 0xd1, 0xb2, 0xf5, 0x29, 0xa6, 0x5a, + 0xb6, 0xcb, 0x3d, 0x3a, 0x96, 0x8e, 0x48, 0xc7, 0x9e, 0xba, 0x27, 0x5f, 0xa8, 0xee, 0xa9, 0x11, + 0x51, 0x9f, 0xce, 0x16, 0xf5, 0x1f, 0x0a, 0x68, 0x65, 0x58, 0xdd, 0xac, 0x13, 0x85, 0x30, 0x56, + 0x7d, 0xef, 0xa0, 0xd9, 0x26, 0xa1, 0xe9, 0x08, 0x9c, 0x59, 0xe5, 0x33, 0x1a, 0xc5, 0x8c, 0xbd, + 0x6a, 0x62, 0x33, 0xea, 0x4a, 0x61, 0xb3, 0x66, 0xab, 0x62, 0x71, 0x2c, 0xf0, 0xbf, 0xd0, 0xb1, + 0x20, 0xb6, 0x77, 0x12, 0xe0, 0x33, 0x1a, 0x08, 0xfb, 0x06, 0x3f, 0x9f, 0xd8, 0x77, 0x8c, 0x79, + 0x5c, 0x79, 0xfc, 0xb1, 0x80, 0x96, 0x9f, 0xa7, 0x9e, 0x10, 0x5e, 0x43, 0x0e, 0x7b, 0x6c, 0x2f, + 0x1c, 0x91, 0xed, 0xa7, 0x51, 0xa5, 0xcd, 0x62, 0x2e, 0x3c, 0xd6, 0x05, 0x1e, 0xc4, 0x60, 0xfb, + 0xf9, 0xac, 0x36, 0xbe, 0x6b, 0x6c, 0xcf, 0xd6, 0xad, 0x52, 0xc6, 0xba, 0x75, 0x06, 0xcd, 0xf9, + 0x31, 0xe7, 0x40, 0x65, 0x22, 0x63, 0xa3, 0xb0, 0x8a, 0xb5, 0x5a, 0x29, 0xeb, 0x77, 0x42, 0x9f, + 0x75, 0x3a, 0x40, 0x03, 0x75, 0xa0, 0x8e, 0x87, 0xad, 0xbd, 0x0b, 0x7d, 0x2b, 0x9b, 0x7a, 0x61, + 0x5c, 0xa3, 0xef, 0x1f, 0xf9, 0xe7, 0x75, 0xdd, 0x10, 0x30, 0x7d, 0x2d, 0xaa, 0x7c, 0x83, 0xef, + 0xf9, 0x87, 0x8d, 0x2b, 0x03, 0xe3, 0x4f, 0xe9, 0xe5, 0xc7, 0x9f, 0x31, 0xfd, 0xa7, 0xec, 0xdb, + 0xa4, 0x10, 0xba, 0x2a, 0x44, 0xdb, 0x38, 0xc2, 0x3e, 0x91, 0x07, 0x97, 0xef, 0xfa, 0x00, 0x01, + 0x0c, 0xc6, 0x32, 0x37, 0x18, 0xcb, 0x26, 0x5a, 0x4e, 0x78, 0x46, 0x6c, 0xb2, 0x3c, 0x3d, 0x14, + 0x64, 0xff, 0x2f, 0x81, 0xc5, 0x4b, 0x72, 0xbf, 0xab, 0xd0, 0x54, 0x35, 0xf3, 0xed, 0xd7, 0xf2, + 0x42, 0xd2, 0x21, 0xd9, 0xd5, 0x58, 0x49, 0x70, 0xde, 0x56, 0x30, 0xfa, 0xad, 0x49, 0x4a, 0xe8, + 0x44, 0x5a, 0x70, 0x47, 0xab, 0xbf, 0xf3, 0x29, 0x92, 0x2d, 0x95, 0xe3, 0x99, 0x52, 0xb7, 0xde, + 0x7a, 0xf0, 0x64, 0x35, 0xf7, 0xf0, 0xc9, 0x6a, 0xee, 0xd7, 0x27, 0xab, 0xb9, 0x7b, 0x4f, 0x57, + 0x27, 0x1e, 0x3e, 0x5d, 0x9d, 0xf8, 0xe9, 0xe9, 0xea, 0xc4, 0x7b, 0xa7, 0xed, 0x8f, 0x15, 0xe6, + 0x97, 0x8b, 0xbb, 0x07, 0x9f, 0xd4, 0xbb, 0x17, 0xea, 0xaa, 0x11, 0x89, 0xde, 0x8f, 0x1c, 0x7b, + 0x93, 0xfa, 0x9c, 0x0b, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xd8, 0xaf, 0xfd, 0x7b, 0x05, 0x19, + 0x00, 0x00, +} + +func (m *EventDeposit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventDeposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintEvents(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x22 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + { + size := m.AmountDeposited.Size() + i -= size + if _, err := m.AmountDeposited.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Depositor) > 0 { + i -= len(m.Depositor) + copy(dAtA[i:], m.Depositor) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Depositor))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventWithdraw) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventWithdraw) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintEvents(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x3a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x30 + } + { + size := m.FeesPaid.Size() + i -= size + if _, err := m.FeesPaid.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.TotalAmountReceived.Size() + i -= size + if _, err := m.TotalAmountReceived.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.YieldWithdrawn.Size() + i -= size + if _, err := m.YieldWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PrincipalWithdrawn.Size() + i -= size + if _, err := m.PrincipalWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Withdrawer) > 0 { + i -= len(m.Withdrawer) + copy(dAtA[i:], m.Withdrawer) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Withdrawer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventWithdrawlRequested) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventWithdrawlRequested) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventWithdrawlRequested) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintEvents(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x32 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedUnlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedUnlockTime):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintEvents(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x22 + if len(m.WithdrawalRequestId) > 0 { + i -= len(m.WithdrawalRequestId) + copy(dAtA[i:], m.WithdrawalRequestId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.WithdrawalRequestId))) + i-- + dAtA[i] = 0x1a + } + { + size := m.AmountToWithdraw.Size() + i -= size + if _, err := m.AmountToWithdraw.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventWithdrawalCancelled) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventWithdrawalCancelled) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventWithdrawalCancelled) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintEvents(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x2a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + { + size := m.AmountReturned.Size() + i -= size + if _, err := m.AmountReturned.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.WithdrawalRequestId) > 0 { + i -= len(m.WithdrawalRequestId) + copy(dAtA[i:], m.WithdrawalRequestId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.WithdrawalRequestId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventWithdrawalProcessed) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventWithdrawalProcessed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventWithdrawalProcessed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err6 != nil { + return 0, err6 + } + i -= n6 + i = encodeVarintEvents(dAtA, i, uint64(n6)) + i-- + dAtA[i] = 0x2a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + { + size := m.TotalAmountDistributed.Size() + i -= size + if _, err := m.TotalAmountDistributed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalAmountProcessed.Size() + i -= size + if _, err := m.TotalAmountProcessed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.RequestsProcessed != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RequestsProcessed)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EventNAVUpdated) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventNAVUpdated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventNAVUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err7 != nil { + return 0, err7 + } + i -= n7 + i = encodeVarintEvents(dAtA, i, uint64(n7)) + i-- + dAtA[i] = 0x4a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x40 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x3a + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0x32 + } + { + size := m.TotalAccruedYield.Size() + i -= size + if _, err := m.TotalAccruedYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.TotalDeposits.Size() + i -= size + if _, err := m.TotalDeposits.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.ChangeBps != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.ChangeBps)) + i-- + dAtA[i] = 0x18 + } + { + size := m.NewNav.Size() + i -= size + if _, err := m.NewNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.PreviousNav.Size() + i -= size + if _, err := m.PreviousNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *EventFeeCollected) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventFeeCollected) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventFeeCollected) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err8 != nil { + return 0, err8 + } + i -= n8 + i = encodeVarintEvents(dAtA, i, uint64(n8)) + i-- + dAtA[i] = 0x32 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(m.Payer) > 0 { + i -= len(m.Payer) + copy(dAtA[i:], m.Payer) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Payer))) + i-- + dAtA[i] = 0x22 + } + if m.FeeRateBps != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.FeeRateBps)) + i-- + dAtA[i] = 0x18 + } + { + size := m.AmountCollected.Size() + i -= size + if _, err := m.AmountCollected.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.FeeType) > 0 { + i -= len(m.FeeType) + copy(dAtA[i:], m.FeeType) + i = encodeVarintEvents(dAtA, i, uint64(len(m.FeeType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventYieldPreferenceUpdated) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventYieldPreferenceUpdated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventYieldPreferenceUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err9 != nil { + return 0, err9 + } + i -= n9 + i = encodeVarintEvents(dAtA, i, uint64(n9)) + i-- + dAtA[i] = 0x2a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if m.NewYieldPreference { + i-- + if m.NewYieldPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.PreviousYieldPreference { + i-- + if m.PreviousYieldPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintEvents(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventVaultConfigUpdated) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventVaultConfigUpdated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventVaultConfigUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n10, err10 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err10 != nil { + return 0, err10 + } + i -= n10 + i = encodeVarintEvents(dAtA, i, uint64(n10)) + i-- + dAtA[i] = 0x32 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0x1a + } + if len(m.NewConfig) > 0 { + i -= len(m.NewConfig) + copy(dAtA[i:], m.NewConfig) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewConfig))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousConfig) > 0 { + i -= len(m.PreviousConfig) + copy(dAtA[i:], m.PreviousConfig) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousConfig))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventInflightFundCreated) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventInflightFundCreated) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventInflightFundCreated) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n11, err11 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err11 != nil { + return 0, err11 + } + i -= n11 + i = encodeVarintEvents(dAtA, i, uint64(n11)) + i-- + dAtA[i] = 0x5a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x50 + } + n12, err12 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt):]) + if err12 != nil { + return 0, err12 + } + i -= n12 + i = encodeVarintEvents(dAtA, i, uint64(n12)) + i-- + dAtA[i] = 0x4a + if len(m.DestinationChain) > 0 { + i -= len(m.DestinationChain) + copy(dAtA[i:], m.DestinationChain) + i = encodeVarintEvents(dAtA, i, uint64(len(m.DestinationChain))) + i-- + dAtA[i] = 0x42 + } + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintEvents(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x3a + } + if len(m.Initiator) > 0 { + i -= len(m.Initiator) + copy(dAtA[i:], m.Initiator) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Initiator))) + i-- + dAtA[i] = 0x32 + } + { + size := m.ValueAtInitiation.Size() + i -= size + if _, err := m.ValueAtInitiation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.OperationType) > 0 { + i -= len(m.OperationType) + copy(dAtA[i:], m.OperationType) + i = encodeVarintEvents(dAtA, i, uint64(len(m.OperationType))) + i-- + dAtA[i] = 0x1a + } + if m.RouteId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventInflightFundStatusChanged) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventInflightFundStatusChanged) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventInflightFundStatusChanged) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n13, err13 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err13 != nil { + return 0, err13 + } + i -= n13 + i = encodeVarintEvents(dAtA, i, uint64(n13)) + i-- + dAtA[i] = 0x42 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x38 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x32 + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.NewStatus) > 0 { + i -= len(m.NewStatus) + copy(dAtA[i:], m.NewStatus) + i = encodeVarintEvents(dAtA, i, uint64(len(m.NewStatus))) + i-- + dAtA[i] = 0x22 + } + if len(m.PreviousStatus) > 0 { + i -= len(m.PreviousStatus) + copy(dAtA[i:], m.PreviousStatus) + i = encodeVarintEvents(dAtA, i, uint64(len(m.PreviousStatus))) + i-- + dAtA[i] = 0x1a + } + if m.RouteId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventInflightFundCompleted) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventInflightFundCompleted) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventInflightFundCompleted) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n14, err14 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err14 != nil { + return 0, err14 + } + i -= n14 + i = encodeVarintEvents(dAtA, i, uint64(n14)) + i-- + dAtA[i] = 0x42 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x38 + } + if m.DurationSeconds != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.DurationSeconds)) + i-- + dAtA[i] = 0x30 + } + { + size := m.InitialAmount.Size() + i -= size + if _, err := m.InitialAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.FinalAmount.Size() + i -= size + if _, err := m.FinalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.OperationType) > 0 { + i -= len(m.OperationType) + copy(dAtA[i:], m.OperationType) + i = encodeVarintEvents(dAtA, i, uint64(len(m.OperationType))) + i-- + dAtA[i] = 0x1a + } + if m.RouteId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventInflightFundStale) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventInflightFundStale) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventInflightFundStale) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n15, err15 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err15 != nil { + return 0, err15 + } + i -= n15 + i = encodeVarintEvents(dAtA, i, uint64(n15)) + i-- + dAtA[i] = 0x4a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x40 + } + if len(m.RecommendedAction) > 0 { + i -= len(m.RecommendedAction) + copy(dAtA[i:], m.RecommendedAction) + i = encodeVarintEvents(dAtA, i, uint64(len(m.RecommendedAction))) + i-- + dAtA[i] = 0x3a + } + if len(m.CurrentStatus) > 0 { + i -= len(m.CurrentStatus) + copy(dAtA[i:], m.CurrentStatus) + i = encodeVarintEvents(dAtA, i, uint64(len(m.CurrentStatus))) + i-- + dAtA[i] = 0x32 + } + n16, err16 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt):]) + if err16 != nil { + return 0, err16 + } + i -= n16 + i = encodeVarintEvents(dAtA, i, uint64(n16)) + i-- + dAtA[i] = 0x2a + if m.HoursOverdue != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.HoursOverdue)) + i-- + dAtA[i] = 0x20 + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventInflightFundCleaned) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventInflightFundCleaned) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventInflightFundCleaned) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n17, err17 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err17 != nil { + return 0, err17 + } + i -= n17 + i = encodeVarintEvents(dAtA, i, uint64(n17)) + i-- + dAtA[i] = 0x3a + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x30 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + { + size := m.AmountReturned.Size() + i -= size + if _, err := m.AmountReturned.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintEvents(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EventRouteCapacityExceeded) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventRouteCapacityExceeded) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventRouteCapacityExceeded) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n18, err18 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err18 != nil { + return 0, err18 + } + i -= n18 + i = encodeVarintEvents(dAtA, i, uint64(n18)) + i-- + dAtA[i] = 0x32 + if m.BlockHeight != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + { + size := m.AttemptedAmount.Size() + i -= size + if _, err := m.AttemptedAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.CapacityLimit.Size() + i -= size + if _, err := m.CapacityLimit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.CurrentInflightValue.Size() + i -= size + if _, err := m.CurrentInflightValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.RouteId != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { + offset -= sovEvents(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EventDeposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Depositor) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.AmountDeposited.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventWithdraw) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Withdrawer) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.PrincipalWithdrawn.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.YieldWithdrawn.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.TotalAmountReceived.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.FeesPaid.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventWithdrawlRequested) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.AmountToWithdraw.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.WithdrawalRequestId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedUnlockTime) + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventWithdrawalCancelled) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.WithdrawalRequestId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.AmountReturned.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventWithdrawalProcessed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RequestsProcessed != 0 { + n += 1 + sovEvents(uint64(m.RequestsProcessed)) + } + l = m.TotalAmountProcessed.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.TotalAmountDistributed.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventNAVUpdated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PreviousNav.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.NewNav.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.ChangeBps != 0 { + n += 1 + sovEvents(uint64(m.ChangeBps)) + } + l = m.TotalDeposits.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.TotalAccruedYield.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventFeeCollected) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeType) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.AmountCollected.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.FeeRateBps != 0 { + n += 1 + sovEvents(uint64(m.FeeRateBps)) + } + l = len(m.Payer) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventYieldPreferenceUpdated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.User) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.PreviousYieldPreference { + n += 2 + } + if m.NewYieldPreference { + n += 2 + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventVaultConfigUpdated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousConfig) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewConfig) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventInflightFundCreated) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovEvents(uint64(m.RouteId)) + } + l = len(m.OperationType) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.ValueAtInitiation.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.Initiator) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.DestinationChain) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt) + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventInflightFundStatusChanged) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovEvents(uint64(m.RouteId)) + } + l = len(m.PreviousStatus) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.NewStatus) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventInflightFundCompleted) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovEvents(uint64(m.RouteId)) + } + l = len(m.OperationType) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.FinalAmount.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.InitialAmount.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.DurationSeconds != 0 { + n += 1 + sovEvents(uint64(m.DurationSeconds)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventInflightFundStale) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovEvents(uint64(m.RouteId)) + } + l = m.Amount.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.HoursOverdue != 0 { + n += 1 + sovEvents(uint64(m.HoursOverdue)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt) + n += 1 + l + sovEvents(uint64(l)) + l = len(m.CurrentStatus) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.RecommendedAction) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventInflightFundCleaned) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovEvents(uint64(m.RouteId)) + } + l = m.AmountReturned.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func (m *EventRouteCapacityExceeded) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovEvents(uint64(m.RouteId)) + } + l = m.CurrentInflightValue.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.CapacityLimit.Size() + n += 1 + l + sovEvents(uint64(l)) + l = m.AttemptedAmount.Size() + n += 1 + l + sovEvents(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovEvents(uint64(m.BlockHeight)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovEvents(uint64(l)) + return n +} + +func sovEvents(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEvents(x uint64) (n int) { + return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EventDeposit) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventDeposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depositor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountDeposited", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountDeposited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventWithdraw) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Withdrawer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrincipalWithdrawn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PrincipalWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldWithdrawn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmountReceived.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeesPaid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FeesPaid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventWithdrawlRequested) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventWithdrawlRequested: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventWithdrawlRequested: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountToWithdraw", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountToWithdraw.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalRequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithdrawalRequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedUnlockTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedUnlockTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventWithdrawalCancelled) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventWithdrawalCancelled: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventWithdrawalCancelled: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalRequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithdrawalRequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountReturned", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountReturned.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventWithdrawalProcessed) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventWithdrawalProcessed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventWithdrawalProcessed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestsProcessed", wireType) + } + m.RequestsProcessed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestsProcessed |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountProcessed", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmountProcessed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountDistributed", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmountDistributed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventNAVUpdated) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventNAVUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventNAVUpdated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + m.ChangeBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalDeposits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAccruedYield", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAccruedYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventFeeCollected) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventFeeCollected: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventFeeCollected: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountCollected", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountCollected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeRateBps", wireType) + } + m.FeeRateBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FeeRateBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventYieldPreferenceUpdated) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventYieldPreferenceUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventYieldPreferenceUpdated: 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 ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousYieldPreference", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreviousYieldPreference = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewYieldPreference", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NewYieldPreference = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventVaultConfigUpdated) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventVaultConfigUpdated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventVaultConfigUpdated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousConfig", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousConfig = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewConfig", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewConfig = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventInflightFundCreated) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventInflightFundCreated: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventInflightFundCreated: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperationType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OperationType = 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 ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + 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 ValueAtInitiation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ValueAtInitiation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Initiator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Initiator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DestinationChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventInflightFundStatusChanged) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventInflightFundStatusChanged: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventInflightFundStatusChanged: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventInflightFundCompleted) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventInflightFundCompleted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventInflightFundCompleted: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperationType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OperationType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FinalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InitialAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationSeconds", wireType) + } + m.DurationSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DurationSeconds |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventInflightFundStale) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventInflightFundStale: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventInflightFundStale: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HoursOverdue", wireType) + } + m.HoursOverdue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HoursOverdue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CurrentStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecommendedAction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RecommendedAction = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventInflightFundCleaned) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventInflightFundCleaned: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventInflightFundCleaned: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountReturned", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountReturned.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventRouteCapacityExceeded) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventRouteCapacityExceeded: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventRouteCapacityExceeded: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentInflightValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CurrentInflightValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CapacityLimit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CapacityLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttemptedAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AttemptedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEvents(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, ErrIntOverflowEvents + } + 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, ErrIntOverflowEvents + } + 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, ErrIntOverflowEvents + } + 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, ErrInvalidLengthEvents + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEvents + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEvents + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/vaults/v2/fees.pb.go b/types/vaults/v2/fees.pb.go new file mode 100644 index 00000000..3ecc9556 --- /dev/null +++ b/types/vaults/v2/fees.pb.go @@ -0,0 +1,3482 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/fees.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// FeeType defines the different types of fees that can be collected +type FeeType int32 + +const ( + // Management fee charged periodically + FEE_TYPE_MANAGEMENT FeeType = 0 + // Performance fee on positive returns + FEE_TYPE_PERFORMANCE FeeType = 1 +) + +var FeeType_name = map[int32]string{ + 0: "FEE_TYPE_MANAGEMENT", + 1: "FEE_TYPE_PERFORMANCE", +} + +var FeeType_value = map[string]int32{ + "FEE_TYPE_MANAGEMENT": 0, + "FEE_TYPE_PERFORMANCE": 1, +} + +func (x FeeType) String() string { + return proto.EnumName(FeeType_name, int32(x)) +} + +func (FeeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{0} +} + +// FeeConfig defines the configuration for various fees +type FeeConfig struct { + // Management fee rate (annual basis points) + ManagementFeeRate int32 `protobuf:"varint,1,opt,name=management_fee_rate,json=managementFeeRate,proto3" json:"management_fee_rate,omitempty"` + // Performance fee rate (basis points) + PerformanceFeeRate int32 `protobuf:"varint,2,opt,name=performance_fee_rate,json=performanceFeeRate,proto3" json:"performance_fee_rate,omitempty"` + // Fee recipient address + FeeRecipient string `protobuf:"bytes,3,opt,name=fee_recipient,json=feeRecipient,proto3" json:"fee_recipient,omitempty"` + // Whether fees are enabled + FeesEnabled bool `protobuf:"varint,4,opt,name=fees_enabled,json=feesEnabled,proto3" json:"fees_enabled,omitempty"` + // High water mark for performance fees + HighWaterMark cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=high_water_mark,json=highWaterMark,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"high_water_mark"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{0} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetManagementFeeRate() int32 { + if m != nil { + return m.ManagementFeeRate + } + return 0 +} + +func (m *FeeConfig) GetPerformanceFeeRate() int32 { + if m != nil { + return m.PerformanceFeeRate + } + return 0 +} + +func (m *FeeConfig) GetFeeRecipient() string { + if m != nil { + return m.FeeRecipient + } + return "" +} + +func (m *FeeConfig) GetFeesEnabled() bool { + if m != nil { + return m.FeesEnabled + } + return false +} + +// YieldDeductionParams defines parameters for fee collection from yield +type YieldDeductionParams struct { + // Target fee rate on yield (basis points) + YieldFeeRate int32 `protobuf:"varint,1,opt,name=yield_fee_rate,json=yieldFeeRate,proto3" json:"yield_fee_rate,omitempty"` + // Minimum fee amount per period + MinFeeAmount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=min_fee_amount,json=minFeeAmount,proto3,customtype=cosmossdk.io/math.Int" json:"min_fee_amount"` + // Maximum fee amount per period + MaxFeeAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=max_fee_amount,json=maxFeeAmount,proto3,customtype=cosmossdk.io/math.Int" json:"max_fee_amount"` + // Fee collection frequency (seconds) + CollectionFrequency int64 `protobuf:"varint,4,opt,name=collection_frequency,json=collectionFrequency,proto3" json:"collection_frequency,omitempty"` + // Last collection timestamp + LastCollection time.Time `protobuf:"bytes,5,opt,name=last_collection,json=lastCollection,proto3,stdtime" json:"last_collection"` +} + +func (m *YieldDeductionParams) Reset() { *m = YieldDeductionParams{} } +func (m *YieldDeductionParams) String() string { return proto.CompactTextString(m) } +func (*YieldDeductionParams) ProtoMessage() {} +func (*YieldDeductionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{1} +} +func (m *YieldDeductionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *YieldDeductionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_YieldDeductionParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *YieldDeductionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_YieldDeductionParams.Merge(m, src) +} +func (m *YieldDeductionParams) XXX_Size() int { + return m.Size() +} +func (m *YieldDeductionParams) XXX_DiscardUnknown() { + xxx_messageInfo_YieldDeductionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_YieldDeductionParams proto.InternalMessageInfo + +func (m *YieldDeductionParams) GetYieldFeeRate() int32 { + if m != nil { + return m.YieldFeeRate + } + return 0 +} + +func (m *YieldDeductionParams) GetCollectionFrequency() int64 { + if m != nil { + return m.CollectionFrequency + } + return 0 +} + +func (m *YieldDeductionParams) GetLastCollection() time.Time { + if m != nil { + return m.LastCollection + } + return time.Time{} +} + +// FeeAccrual represents accrued fees for a specific period +type FeeAccrual struct { + // Fee type + FeeType FeeType `protobuf:"varint,1,opt,name=fee_type,json=feeType,proto3,enum=noble.dollar.vaults.v2.FeeType" json:"fee_type,omitempty"` + // Accrued amount + AccruedAmount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=accrued_amount,json=accruedAmount,proto3,customtype=cosmossdk.io/math.Int" json:"accrued_amount"` + // Yield to be deducted for this fee + YieldToDeduct cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=yield_to_deduct,json=yieldToDeduct,proto3,customtype=cosmossdk.io/math.Int" json:"yield_to_deduct"` + // Accrual period start + PeriodStart time.Time `protobuf:"bytes,4,opt,name=period_start,json=periodStart,proto3,stdtime" json:"period_start"` + // Accrual period end + PeriodEnd time.Time `protobuf:"bytes,5,opt,name=period_end,json=periodEnd,proto3,stdtime" json:"period_end"` + // Whether this accrual has been collected + Collected bool `protobuf:"varint,6,opt,name=collected,proto3" json:"collected,omitempty"` +} + +func (m *FeeAccrual) Reset() { *m = FeeAccrual{} } +func (m *FeeAccrual) String() string { return proto.CompactTextString(m) } +func (*FeeAccrual) ProtoMessage() {} +func (*FeeAccrual) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{2} +} +func (m *FeeAccrual) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeAccrual) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeAccrual.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeAccrual) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeAccrual.Merge(m, src) +} +func (m *FeeAccrual) XXX_Size() int { + return m.Size() +} +func (m *FeeAccrual) XXX_DiscardUnknown() { + xxx_messageInfo_FeeAccrual.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeAccrual proto.InternalMessageInfo + +func (m *FeeAccrual) GetFeeType() FeeType { + if m != nil { + return m.FeeType + } + return FEE_TYPE_MANAGEMENT +} + +func (m *FeeAccrual) GetPeriodStart() time.Time { + if m != nil { + return m.PeriodStart + } + return time.Time{} +} + +func (m *FeeAccrual) GetPeriodEnd() time.Time { + if m != nil { + return m.PeriodEnd + } + return time.Time{} +} + +func (m *FeeAccrual) GetCollected() bool { + if m != nil { + return m.Collected + } + return false +} + +// FeeCollection represents a completed fee collection event +type FeeCollection struct { + // Collection timestamp + Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Total fee amount collected + TotalAmount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount"` + // Yield deducted for collection + YieldDeducted cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=yield_deducted,json=yieldDeducted,proto3,customtype=cosmossdk.io/math.Int" json:"yield_deducted"` + // Breakdown by fee type + Breakdown []*FeeTypeBreakdown `protobuf:"bytes,4,rep,name=breakdown,proto3" json:"breakdown,omitempty"` + // Block height when collected + BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *FeeCollection) Reset() { *m = FeeCollection{} } +func (m *FeeCollection) String() string { return proto.CompactTextString(m) } +func (*FeeCollection) ProtoMessage() {} +func (*FeeCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{3} +} +func (m *FeeCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeCollection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeCollection.Merge(m, src) +} +func (m *FeeCollection) XXX_Size() int { + return m.Size() +} +func (m *FeeCollection) XXX_DiscardUnknown() { + xxx_messageInfo_FeeCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeCollection proto.InternalMessageInfo + +func (m *FeeCollection) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *FeeCollection) GetBreakdown() []*FeeTypeBreakdown { + if m != nil { + return m.Breakdown + } + return nil +} + +func (m *FeeCollection) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +// FeeTypeBreakdown provides details for each fee type in a collection +type FeeTypeBreakdown struct { + // Fee type + FeeType FeeType `protobuf:"varint,1,opt,name=fee_type,json=feeType,proto3,enum=noble.dollar.vaults.v2.FeeType" json:"fee_type,omitempty"` + // Amount for this fee type + Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Yield deducted for this fee type + YieldDeducted cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=yield_deducted,json=yieldDeducted,proto3,customtype=cosmossdk.io/math.Int" json:"yield_deducted"` + // Fee rate applied (basis points) + RateApplied int32 `protobuf:"varint,4,opt,name=rate_applied,json=rateApplied,proto3" json:"rate_applied,omitempty"` +} + +func (m *FeeTypeBreakdown) Reset() { *m = FeeTypeBreakdown{} } +func (m *FeeTypeBreakdown) String() string { return proto.CompactTextString(m) } +func (*FeeTypeBreakdown) ProtoMessage() {} +func (*FeeTypeBreakdown) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{4} +} +func (m *FeeTypeBreakdown) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeTypeBreakdown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeTypeBreakdown.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeTypeBreakdown) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeTypeBreakdown.Merge(m, src) +} +func (m *FeeTypeBreakdown) XXX_Size() int { + return m.Size() +} +func (m *FeeTypeBreakdown) XXX_DiscardUnknown() { + xxx_messageInfo_FeeTypeBreakdown.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeTypeBreakdown proto.InternalMessageInfo + +func (m *FeeTypeBreakdown) GetFeeType() FeeType { + if m != nil { + return m.FeeType + } + return FEE_TYPE_MANAGEMENT +} + +func (m *FeeTypeBreakdown) GetRateApplied() int32 { + if m != nil { + return m.RateApplied + } + return 0 +} + +// FeeStats provides statistics about fee collection +type FeeStats struct { + // Total fees collected (all time) + TotalFeesCollected cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_fees_collected,json=totalFeesCollected,proto3,customtype=cosmossdk.io/math.Int" json:"total_fees_collected"` + // Total yield collected for fees + TotalYieldCollected cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_yield_collected,json=totalYieldCollected,proto3,customtype=cosmossdk.io/math.Int" json:"total_yield_collected"` + // Current annualized fee rate (basis points) + CurrentAnnualRate int32 `protobuf:"varint,3,opt,name=current_annual_rate,json=currentAnnualRate,proto3" json:"current_annual_rate,omitempty"` + // Last fee collection timestamp + LastCollection time.Time `protobuf:"bytes,4,opt,name=last_collection,json=lastCollection,proto3,stdtime" json:"last_collection"` + // Average daily fee collection + AvgDailyCollection cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=avg_daily_collection,json=avgDailyCollection,proto3,customtype=cosmossdk.io/math.Int" json:"avg_daily_collection"` + // Fee collection frequency (seconds) + CollectionFrequency int64 `protobuf:"varint,6,opt,name=collection_frequency,json=collectionFrequency,proto3" json:"collection_frequency,omitempty"` +} + +func (m *FeeStats) Reset() { *m = FeeStats{} } +func (m *FeeStats) String() string { return proto.CompactTextString(m) } +func (*FeeStats) ProtoMessage() {} +func (*FeeStats) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{5} +} +func (m *FeeStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeStats.Merge(m, src) +} +func (m *FeeStats) XXX_Size() int { + return m.Size() +} +func (m *FeeStats) XXX_DiscardUnknown() { + xxx_messageInfo_FeeStats.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeStats proto.InternalMessageInfo + +func (m *FeeStats) GetCurrentAnnualRate() int32 { + if m != nil { + return m.CurrentAnnualRate + } + return 0 +} + +func (m *FeeStats) GetLastCollection() time.Time { + if m != nil { + return m.LastCollection + } + return time.Time{} +} + +func (m *FeeStats) GetCollectionFrequency() int64 { + if m != nil { + return m.CollectionFrequency + } + return 0 +} + +// PerformanceFeeState tracks performance fee calculations +type PerformanceFeeState struct { + // Current high water mark (total NAV) + HighWaterMark cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=high_water_mark,json=highWaterMark,proto3,customtype=cosmossdk.io/math.Int" json:"high_water_mark"` + // Last performance fee calculation + LastCalculation time.Time `protobuf:"bytes,2,opt,name=last_calculation,json=lastCalculation,proto3,stdtime" json:"last_calculation"` + // Current period start (for performance measurement) + PeriodStart time.Time `protobuf:"bytes,3,opt,name=period_start,json=periodStart,proto3,stdtime" json:"period_start"` + // Accrued performance fees (not yet collected) + AccruedPerformanceFees cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=accrued_performance_fees,json=accruedPerformanceFees,proto3,customtype=cosmossdk.io/math.Int" json:"accrued_performance_fees"` + // Whether performance fees are currently active + Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` +} + +func (m *PerformanceFeeState) Reset() { *m = PerformanceFeeState{} } +func (m *PerformanceFeeState) String() string { return proto.CompactTextString(m) } +func (*PerformanceFeeState) ProtoMessage() {} +func (*PerformanceFeeState) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{6} +} +func (m *PerformanceFeeState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PerformanceFeeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PerformanceFeeState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PerformanceFeeState) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerformanceFeeState.Merge(m, src) +} +func (m *PerformanceFeeState) XXX_Size() int { + return m.Size() +} +func (m *PerformanceFeeState) XXX_DiscardUnknown() { + xxx_messageInfo_PerformanceFeeState.DiscardUnknown(m) +} + +var xxx_messageInfo_PerformanceFeeState proto.InternalMessageInfo + +func (m *PerformanceFeeState) GetLastCalculation() time.Time { + if m != nil { + return m.LastCalculation + } + return time.Time{} +} + +func (m *PerformanceFeeState) GetPeriodStart() time.Time { + if m != nil { + return m.PeriodStart + } + return time.Time{} +} + +func (m *PerformanceFeeState) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +// FeeExemption represents an exemption from certain fees for specific addresses +type FeeExemption struct { + // Exempt address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Exempted fee types + ExemptedTypes []FeeType `protobuf:"varint,2,rep,packed,name=exempted_types,json=exemptedTypes,proto3,enum=noble.dollar.vaults.v2.FeeType" json:"exempted_types,omitempty"` + // Exemption expiry (if applicable) + Expiry *time.Time `protobuf:"bytes,3,opt,name=expiry,proto3,stdtime" json:"expiry,omitempty"` + // Exemption reason + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + // Whether exemption is active + Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` +} + +func (m *FeeExemption) Reset() { *m = FeeExemption{} } +func (m *FeeExemption) String() string { return proto.CompactTextString(m) } +func (*FeeExemption) ProtoMessage() {} +func (*FeeExemption) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{7} +} +func (m *FeeExemption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeExemption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeExemption.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeExemption) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeExemption.Merge(m, src) +} +func (m *FeeExemption) XXX_Size() int { + return m.Size() +} +func (m *FeeExemption) XXX_DiscardUnknown() { + xxx_messageInfo_FeeExemption.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeExemption proto.InternalMessageInfo + +func (m *FeeExemption) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + +func (m *FeeExemption) GetExemptedTypes() []FeeType { + if m != nil { + return m.ExemptedTypes + } + return nil +} + +func (m *FeeExemption) GetExpiry() *time.Time { + if m != nil { + return m.Expiry + } + return nil +} + +func (m *FeeExemption) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *FeeExemption) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +// FeeSchedule defines time-based fee rate changes +type FeeSchedule struct { + // Effective date for the fee rates + EffectiveDate time.Time `protobuf:"bytes,1,opt,name=effective_date,json=effectiveDate,proto3,stdtime" json:"effective_date"` + // Fee configuration for this schedule + FeeConfig *FeeConfig `protobuf:"bytes,2,opt,name=fee_config,json=feeConfig,proto3" json:"fee_config,omitempty"` + // Whether this schedule is active + Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` + // Description of the schedule change + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *FeeSchedule) Reset() { *m = FeeSchedule{} } +func (m *FeeSchedule) String() string { return proto.CompactTextString(m) } +func (*FeeSchedule) ProtoMessage() {} +func (*FeeSchedule) Descriptor() ([]byte, []int) { + return fileDescriptor_679151218fb83e25, []int{8} +} +func (m *FeeSchedule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeSchedule.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FeeSchedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeSchedule.Merge(m, src) +} +func (m *FeeSchedule) XXX_Size() int { + return m.Size() +} +func (m *FeeSchedule) XXX_DiscardUnknown() { + xxx_messageInfo_FeeSchedule.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeSchedule proto.InternalMessageInfo + +func (m *FeeSchedule) GetEffectiveDate() time.Time { + if m != nil { + return m.EffectiveDate + } + return time.Time{} +} + +func (m *FeeSchedule) GetFeeConfig() *FeeConfig { + if m != nil { + return m.FeeConfig + } + return nil +} + +func (m *FeeSchedule) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +func (m *FeeSchedule) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func init() { + proto.RegisterEnum("noble.dollar.vaults.v2.FeeType", FeeType_name, FeeType_value) + proto.RegisterType((*FeeConfig)(nil), "noble.dollar.vaults.v2.FeeConfig") + proto.RegisterType((*YieldDeductionParams)(nil), "noble.dollar.vaults.v2.YieldDeductionParams") + proto.RegisterType((*FeeAccrual)(nil), "noble.dollar.vaults.v2.FeeAccrual") + proto.RegisterType((*FeeCollection)(nil), "noble.dollar.vaults.v2.FeeCollection") + proto.RegisterType((*FeeTypeBreakdown)(nil), "noble.dollar.vaults.v2.FeeTypeBreakdown") + proto.RegisterType((*FeeStats)(nil), "noble.dollar.vaults.v2.FeeStats") + proto.RegisterType((*PerformanceFeeState)(nil), "noble.dollar.vaults.v2.PerformanceFeeState") + proto.RegisterType((*FeeExemption)(nil), "noble.dollar.vaults.v2.FeeExemption") + proto.RegisterType((*FeeSchedule)(nil), "noble.dollar.vaults.v2.FeeSchedule") +} + +func init() { proto.RegisterFile("noble/dollar/vaults/v2/fees.proto", fileDescriptor_679151218fb83e25) } + +var fileDescriptor_679151218fb83e25 = []byte{ + // 1219 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6e, 0x1b, 0xd5, + 0x17, 0xcf, 0x78, 0xd2, 0x34, 0x3e, 0xfe, 0x68, 0x7a, 0xe3, 0xf6, 0xef, 0x7f, 0x40, 0x4e, 0x62, + 0x58, 0x44, 0x95, 0x3a, 0x2e, 0xa9, 0xc4, 0x02, 0x51, 0x09, 0x3b, 0xf6, 0xb4, 0x15, 0xa4, 0x8d, + 0x26, 0x11, 0xa5, 0x2c, 0x18, 0x5d, 0xcf, 0x1c, 0x8f, 0x87, 0xcc, 0x17, 0x33, 0xd7, 0x6e, 0xcc, + 0x13, 0xb0, 0x41, 0xea, 0x82, 0x37, 0x60, 0x01, 0x3b, 0x58, 0xf4, 0x21, 0xba, 0xac, 0xba, 0x40, + 0x88, 0x45, 0x41, 0xed, 0x02, 0x09, 0x21, 0x9e, 0x01, 0xdd, 0x7b, 0x67, 0x3c, 0x6e, 0xda, 0x42, + 0xea, 0x88, 0x4d, 0xe4, 0x7b, 0x3e, 0x7e, 0xf7, 0x9c, 0xdf, 0x39, 0x73, 0xce, 0x0d, 0x6c, 0x06, + 0x61, 0xdf, 0xc3, 0x96, 0x1d, 0x7a, 0x1e, 0x8d, 0x5b, 0x63, 0x3a, 0xf2, 0x58, 0xd2, 0x1a, 0x6f, + 0xb7, 0x06, 0x88, 0x89, 0x16, 0xc5, 0x21, 0x0b, 0xc9, 0x45, 0x61, 0xa2, 0x49, 0x13, 0x4d, 0x9a, + 0x68, 0xe3, 0xed, 0xb5, 0xf3, 0xd4, 0x77, 0x83, 0xb0, 0x25, 0xfe, 0x4a, 0xd3, 0xb5, 0xff, 0x5b, + 0x61, 0xe2, 0x87, 0x89, 0x29, 0x4e, 0x2d, 0x79, 0x48, 0x55, 0x35, 0x27, 0x74, 0x42, 0x29, 0xe7, + 0xbf, 0x52, 0xe9, 0xba, 0x13, 0x86, 0x8e, 0x87, 0x2d, 0x71, 0xea, 0x8f, 0x06, 0x2d, 0xe6, 0xfa, + 0x98, 0x30, 0xea, 0x47, 0xd2, 0xa0, 0xf9, 0x43, 0x01, 0x8a, 0x3a, 0xe2, 0x4e, 0x18, 0x0c, 0x5c, + 0x87, 0x68, 0xb0, 0xea, 0xd3, 0x80, 0x3a, 0xe8, 0x63, 0xc0, 0xcc, 0x01, 0xa2, 0x19, 0x53, 0x86, + 0x75, 0x65, 0x43, 0xd9, 0x3a, 0x63, 0x9c, 0xcf, 0x55, 0x3a, 0xa2, 0x41, 0x19, 0x92, 0x2b, 0x50, + 0x8b, 0x30, 0x1e, 0x84, 0xb1, 0x4f, 0x03, 0x0b, 0x73, 0x87, 0x82, 0x70, 0x20, 0x33, 0xba, 0xcc, + 0xe3, 0x1a, 0x54, 0x84, 0x15, 0x5a, 0x6e, 0xe4, 0x62, 0xc0, 0xea, 0xea, 0x86, 0xb2, 0x55, 0xec, + 0xd4, 0x1f, 0x3f, 0xb8, 0x5c, 0x4b, 0xf3, 0x69, 0xdb, 0x76, 0x8c, 0x49, 0xb2, 0xcf, 0x62, 0x37, + 0x70, 0x8c, 0xf2, 0x00, 0xd1, 0xc8, 0xac, 0xc9, 0x26, 0xf0, 0x73, 0x62, 0x62, 0x40, 0xfb, 0x1e, + 0xda, 0xf5, 0xc5, 0x0d, 0x65, 0x6b, 0xd9, 0x28, 0x71, 0x59, 0x4f, 0x8a, 0xc8, 0x67, 0x70, 0x6e, + 0xe8, 0x3a, 0x43, 0xf3, 0x1e, 0x65, 0x18, 0x9b, 0x3e, 0x8d, 0x0f, 0xeb, 0x67, 0xc4, 0x1d, 0xef, + 0x3e, 0x7c, 0xb2, 0xbe, 0xf0, 0xcb, 0x93, 0xf5, 0x37, 0xe4, 0x3d, 0x89, 0x7d, 0xa8, 0xb9, 0x61, + 0xcb, 0xa7, 0x6c, 0xa8, 0x7d, 0x84, 0x0e, 0xb5, 0x26, 0x5d, 0xb4, 0x1e, 0x3f, 0xb8, 0x0c, 0x69, + 0x18, 0x5d, 0xb4, 0xbe, 0xff, 0xfd, 0xc7, 0x4b, 0x8a, 0x51, 0xe1, 0x70, 0x77, 0x38, 0xda, 0x2e, + 0x8d, 0x0f, 0x9b, 0x7f, 0x15, 0xa0, 0x76, 0xd7, 0x45, 0xcf, 0xee, 0xa2, 0x3d, 0xb2, 0x98, 0x1b, + 0x06, 0x7b, 0x34, 0xa6, 0x7e, 0x42, 0xde, 0x86, 0xea, 0x84, 0xcb, 0x8f, 0xf3, 0x56, 0x16, 0xd2, + 0x8c, 0x80, 0x8f, 0xa1, 0xea, 0xbb, 0x81, 0xb0, 0xa1, 0x7e, 0x38, 0x0a, 0x98, 0x20, 0xab, 0xd8, + 0xb9, 0x92, 0x46, 0x77, 0xe1, 0xc5, 0xe8, 0x6e, 0x06, 0x6c, 0x26, 0xae, 0x9b, 0x01, 0x93, 0x71, + 0x95, 0x7d, 0x37, 0xd0, 0x11, 0xdb, 0x02, 0x45, 0xe0, 0xd2, 0xa3, 0x59, 0x5c, 0x75, 0x6e, 0x5c, + 0x7a, 0x94, 0xe3, 0xbe, 0x03, 0x35, 0x2b, 0xf4, 0x3c, 0x14, 0x99, 0x9a, 0x83, 0x18, 0xbf, 0x18, + 0x61, 0x60, 0x4d, 0x04, 0xf3, 0xaa, 0xb1, 0x9a, 0xeb, 0xf4, 0x4c, 0x45, 0x76, 0xe1, 0x9c, 0x47, + 0x13, 0x66, 0xe6, 0x3a, 0x51, 0x81, 0xd2, 0xf6, 0x9a, 0x26, 0xdb, 0x51, 0xcb, 0xda, 0x51, 0x3b, + 0xc8, 0xda, 0xb1, 0xb3, 0xcc, 0xe3, 0xbc, 0xff, 0xeb, 0xba, 0x62, 0x54, 0xb9, 0xf3, 0xce, 0xd4, + 0xb7, 0xf9, 0x9d, 0x0a, 0xc0, 0xe3, 0xb1, 0xac, 0x78, 0x44, 0x3d, 0xf2, 0x1e, 0x2c, 0xf3, 0x24, + 0xd9, 0x24, 0x92, 0x04, 0x57, 0xb7, 0xd7, 0xb5, 0x97, 0x7f, 0x41, 0x9a, 0x8e, 0x78, 0x30, 0x89, + 0xd0, 0x38, 0x3b, 0x90, 0x3f, 0xc8, 0x1d, 0xa8, 0x52, 0x0e, 0x83, 0xf6, 0x69, 0xc9, 0xaf, 0xa4, + 0x38, 0x29, 0x4b, 0x9f, 0xc0, 0x39, 0x59, 0x7b, 0x16, 0x9a, 0xb6, 0xe8, 0x8b, 0xb9, 0xe9, 0xaf, + 0x08, 0xa0, 0x83, 0x50, 0xb6, 0x17, 0xb9, 0x0e, 0xe5, 0x08, 0x63, 0x37, 0xb4, 0xcd, 0x84, 0xd1, + 0x98, 0x09, 0xde, 0x4f, 0xca, 0x64, 0x49, 0x7a, 0xee, 0x73, 0x47, 0xb2, 0x03, 0x90, 0x02, 0x61, + 0x60, 0xbf, 0x56, 0x41, 0x8a, 0xd2, 0xaf, 0x17, 0xd8, 0xe4, 0x4d, 0x28, 0xa6, 0x55, 0x45, 0xbb, + 0xbe, 0x24, 0x3e, 0xbe, 0x5c, 0xd0, 0xfc, 0xb3, 0x00, 0x15, 0x31, 0x4c, 0xb2, 0xda, 0x91, 0x0e, + 0x14, 0xa7, 0x13, 0x47, 0x54, 0xeb, 0xc4, 0x77, 0x4e, 0xdd, 0xc8, 0x3e, 0x94, 0x59, 0xc8, 0xa8, + 0x77, 0xda, 0x92, 0x95, 0x04, 0x4a, 0x5a, 0xb0, 0x3b, 0xd9, 0xc7, 0x2a, 0xab, 0x85, 0xf6, 0x29, + 0xeb, 0xd5, 0x4d, 0x61, 0x88, 0x0e, 0xc5, 0x7e, 0x8c, 0xf4, 0xd0, 0x0e, 0xef, 0x05, 0xf5, 0xc5, + 0x0d, 0x75, 0xab, 0xb4, 0xbd, 0xf5, 0x2f, 0xfd, 0xd9, 0xc9, 0xec, 0x8d, 0xdc, 0x95, 0x4f, 0xba, + 0xbe, 0x17, 0x5a, 0x87, 0xe6, 0x10, 0x5d, 0x67, 0xc8, 0x44, 0xc1, 0x54, 0xa3, 0x24, 0x64, 0x37, + 0x84, 0xa8, 0xf9, 0x4d, 0x01, 0x56, 0x8e, 0x43, 0x9c, 0xea, 0xf3, 0xb8, 0x01, 0x4b, 0xa7, 0xe4, + 0x38, 0xf5, 0xff, 0xef, 0xe8, 0xdd, 0x84, 0x32, 0x1f, 0xad, 0x26, 0x8d, 0x22, 0xcf, 0x4d, 0x17, + 0xc0, 0x19, 0xa3, 0xc4, 0x65, 0x6d, 0x29, 0x6a, 0xfe, 0xa1, 0xc2, 0xb2, 0x8e, 0xb8, 0xcf, 0x28, + 0x4b, 0x48, 0x1f, 0x6a, 0xb2, 0x79, 0xc4, 0xda, 0xc8, 0x7b, 0x57, 0x99, 0x33, 0x1c, 0x22, 0xd0, + 0x74, 0xc4, 0x64, 0x27, 0xc3, 0x22, 0x36, 0x5c, 0x90, 0x77, 0xc8, 0x94, 0xf3, 0x4b, 0xe6, 0x65, + 0x71, 0x55, 0xc0, 0x89, 0x25, 0x93, 0xdf, 0xa2, 0xc1, 0xaa, 0x35, 0x8a, 0x63, 0xbe, 0x98, 0x69, + 0x10, 0x8c, 0xa8, 0x27, 0x77, 0x8c, 0x2a, 0x77, 0x73, 0xaa, 0x6a, 0x0b, 0x8d, 0x58, 0x34, 0x2f, + 0x99, 0xc2, 0x8b, 0xf3, 0x4f, 0x61, 0x4e, 0x24, 0x1d, 0x3b, 0xa6, 0x4d, 0x5d, 0x6f, 0x72, 0x7c, + 0xb2, 0xcf, 0x45, 0x24, 0x1d, 0x3b, 0x5d, 0x0e, 0x36, 0x73, 0xc7, 0xab, 0x76, 0xcd, 0xd2, 0x2b, + 0x77, 0x4d, 0xf3, 0x6b, 0x15, 0x56, 0xf7, 0x9e, 0x7b, 0x66, 0xf0, 0xba, 0x23, 0x1f, 0xc8, 0xc7, + 0x5f, 0x01, 0xf3, 0x96, 0xfc, 0xf9, 0xfd, 0x4f, 0x6e, 0xc3, 0x8a, 0xe4, 0x95, 0x7a, 0xd6, 0xc8, + 0xa3, 0x82, 0x84, 0xc2, 0x6b, 0x10, 0x2b, 0xaa, 0xb2, 0x93, 0x3b, 0xbf, 0x30, 0xe1, 0xd5, 0x79, + 0x27, 0xfc, 0xe7, 0x50, 0xcf, 0xb6, 0xdb, 0xb1, 0x57, 0x59, 0x22, 0x4a, 0x3f, 0x4f, 0xf2, 0x17, + 0x53, 0xc4, 0xe7, 0x39, 0x4e, 0xc8, 0x45, 0x58, 0xa2, 0x16, 0x73, 0xc7, 0x28, 0x1a, 0x60, 0xd9, + 0x48, 0x4f, 0xcd, 0x27, 0x0a, 0x94, 0x75, 0xc4, 0xde, 0x11, 0xfa, 0x91, 0xc8, 0xae, 0x0e, 0x67, + 0xa9, 0x7c, 0xd0, 0x89, 0x02, 0x94, 0x8d, 0xec, 0x48, 0x74, 0xa8, 0xa2, 0x30, 0x43, 0x5b, 0x8c, + 0xab, 0xa4, 0x5e, 0xd8, 0x50, 0x4f, 0x32, 0xaf, 0x2a, 0x99, 0x1b, 0x3f, 0x25, 0xe4, 0x7d, 0x58, + 0xc2, 0xa3, 0xc8, 0x8d, 0x27, 0x27, 0x64, 0x4e, 0x11, 0xcc, 0xa5, 0x3e, 0x3c, 0x91, 0x18, 0x69, + 0x92, 0x7e, 0x1d, 0x45, 0x23, 0x3d, 0xbd, 0x32, 0xc1, 0x9f, 0x14, 0x28, 0xf1, 0x2e, 0xb3, 0x86, + 0x68, 0x8f, 0x3c, 0x24, 0x1f, 0x42, 0x15, 0x07, 0x03, 0x14, 0x4a, 0xd3, 0xce, 0x5e, 0x7d, 0x27, + 0xad, 0x5f, 0x65, 0xea, 0xdb, 0xe5, 0x5d, 0xfb, 0x01, 0x00, 0x1f, 0xde, 0x96, 0x78, 0x8d, 0xa7, + 0x5d, 0xb5, 0xf9, 0x0f, 0x74, 0xc8, 0x67, 0xbb, 0x51, 0x1c, 0x4c, 0x5f, 0xf0, 0x79, 0xd8, 0xea, + 0x6c, 0xd8, 0x64, 0x03, 0x4a, 0x36, 0x26, 0x56, 0xec, 0x46, 0xd3, 0x49, 0x50, 0x34, 0x66, 0x45, + 0x97, 0x3a, 0x70, 0x36, 0x25, 0x98, 0xfc, 0x0f, 0x56, 0xf5, 0x5e, 0xcf, 0x3c, 0xb8, 0xbb, 0xd7, + 0x33, 0x77, 0xdb, 0xb7, 0xda, 0xd7, 0x7b, 0xbb, 0xbd, 0x5b, 0x07, 0x2b, 0x0b, 0xa4, 0x0e, 0xb5, + 0xa9, 0x62, 0xaf, 0x67, 0xe8, 0xb7, 0x8d, 0xdd, 0xf6, 0xad, 0x9d, 0xde, 0x8a, 0xb2, 0xb6, 0xf8, + 0xd5, 0xb7, 0x8d, 0x85, 0xce, 0xb5, 0x87, 0x4f, 0x1b, 0xca, 0xa3, 0xa7, 0x0d, 0xe5, 0xb7, 0xa7, + 0x0d, 0xe5, 0xfe, 0xb3, 0xc6, 0xc2, 0xa3, 0x67, 0x8d, 0x85, 0x9f, 0x9f, 0x35, 0x16, 0x3e, 0x7d, + 0x2b, 0x0d, 0x5f, 0xe6, 0x72, 0x34, 0xf9, 0xb2, 0x35, 0xbe, 0xda, 0x12, 0x55, 0xcf, 0xff, 0x29, + 0xea, 0x2f, 0x09, 0xae, 0xae, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xc2, 0xb7, 0x32, 0x5a, 0x35, + 0x0d, 0x00, 0x00, +} + +func (m *FeeConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.HighWaterMark.Size() + i -= size + if _, err := m.HighWaterMark.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if m.FeesEnabled { + i-- + if m.FeesEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.FeeRecipient) > 0 { + i -= len(m.FeeRecipient) + copy(dAtA[i:], m.FeeRecipient) + i = encodeVarintFees(dAtA, i, uint64(len(m.FeeRecipient))) + i-- + dAtA[i] = 0x1a + } + if m.PerformanceFeeRate != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.PerformanceFeeRate)) + i-- + dAtA[i] = 0x10 + } + if m.ManagementFeeRate != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.ManagementFeeRate)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *YieldDeductionParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *YieldDeductionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *YieldDeductionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastCollection, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastCollection):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintFees(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x2a + if m.CollectionFrequency != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.CollectionFrequency)) + i-- + dAtA[i] = 0x20 + } + { + size := m.MaxFeeAmount.Size() + i -= size + if _, err := m.MaxFeeAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.MinFeeAmount.Size() + i -= size + if _, err := m.MinFeeAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.YieldFeeRate != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.YieldFeeRate)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeAccrual) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeAccrual) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeAccrual) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Collected { + i-- + if m.Collected { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.PeriodEnd, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.PeriodEnd):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintFees(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x2a + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.PeriodStart, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.PeriodStart):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintFees(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x22 + { + size := m.YieldToDeduct.Size() + i -= size + if _, err := m.YieldToDeduct.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.AccruedAmount.Size() + i -= size + if _, err := m.AccruedAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.FeeType != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.FeeType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeCollection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(m.Breakdown) > 0 { + for iNdEx := len(m.Breakdown) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Breakdown[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + { + size := m.YieldDeducted.Size() + i -= size + if _, err := m.YieldDeducted.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalAmount.Size() + i -= size + if _, err := m.TotalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintFees(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *FeeTypeBreakdown) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeTypeBreakdown) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeTypeBreakdown) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RateApplied != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.RateApplied)) + i-- + dAtA[i] = 0x20 + } + { + size := m.YieldDeducted.Size() + i -= size + if _, err := m.YieldDeducted.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.FeeType != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.FeeType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CollectionFrequency != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.CollectionFrequency)) + i-- + dAtA[i] = 0x30 + } + { + size := m.AvgDailyCollection.Size() + i -= size + if _, err := m.AvgDailyCollection.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastCollection, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastCollection):]) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintFees(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x22 + if m.CurrentAnnualRate != 0 { + i = encodeVarintFees(dAtA, i, uint64(m.CurrentAnnualRate)) + i-- + dAtA[i] = 0x18 + } + { + size := m.TotalYieldCollected.Size() + i -= size + if _, err := m.TotalYieldCollected.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalFeesCollected.Size() + i -= size + if _, err := m.TotalFeesCollected.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PerformanceFeeState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PerformanceFeeState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PerformanceFeeState) 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] = 0x28 + } + { + size := m.AccruedPerformanceFees.Size() + i -= size + if _, err := m.AccruedPerformanceFees.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.PeriodStart, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.PeriodStart):]) + if err6 != nil { + return 0, err6 + } + i -= n6 + i = encodeVarintFees(dAtA, i, uint64(n6)) + i-- + dAtA[i] = 0x1a + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastCalculation, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastCalculation):]) + if err7 != nil { + return 0, err7 + } + i -= n7 + i = encodeVarintFees(dAtA, i, uint64(n7)) + i-- + dAtA[i] = 0x12 + { + size := m.HighWaterMark.Size() + i -= size + if _, err := m.HighWaterMark.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *FeeExemption) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeExemption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeExemption) 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] = 0x28 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintFees(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.Expiry != nil { + n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Expiry, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Expiry):]) + if err8 != nil { + return 0, err8 + } + i -= n8 + i = encodeVarintFees(dAtA, i, uint64(n8)) + i-- + dAtA[i] = 0x1a + } + if len(m.ExemptedTypes) > 0 { + dAtA10 := make([]byte, len(m.ExemptedTypes)*10) + var j9 int + for _, num := range m.ExemptedTypes { + for num >= 1<<7 { + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j9++ + } + dAtA10[j9] = uint8(num) + j9++ + } + i -= j9 + copy(dAtA[i:], dAtA10[:j9]) + i = encodeVarintFees(dAtA, i, uint64(j9)) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintFees(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FeeSchedule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeeSchedule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeSchedule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintFees(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if m.Active { + i-- + if m.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.FeeConfig != nil { + { + size, err := m.FeeConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFees(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + n12, err12 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.EffectiveDate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.EffectiveDate):]) + if err12 != nil { + return 0, err12 + } + i -= n12 + i = encodeVarintFees(dAtA, i, uint64(n12)) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintFees(dAtA []byte, offset int, v uint64) int { + offset -= sovFees(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ManagementFeeRate != 0 { + n += 1 + sovFees(uint64(m.ManagementFeeRate)) + } + if m.PerformanceFeeRate != 0 { + n += 1 + sovFees(uint64(m.PerformanceFeeRate)) + } + l = len(m.FeeRecipient) + if l > 0 { + n += 1 + l + sovFees(uint64(l)) + } + if m.FeesEnabled { + n += 2 + } + l = m.HighWaterMark.Size() + n += 1 + l + sovFees(uint64(l)) + return n +} + +func (m *YieldDeductionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.YieldFeeRate != 0 { + n += 1 + sovFees(uint64(m.YieldFeeRate)) + } + l = m.MinFeeAmount.Size() + n += 1 + l + sovFees(uint64(l)) + l = m.MaxFeeAmount.Size() + n += 1 + l + sovFees(uint64(l)) + if m.CollectionFrequency != 0 { + n += 1 + sovFees(uint64(m.CollectionFrequency)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastCollection) + n += 1 + l + sovFees(uint64(l)) + return n +} + +func (m *FeeAccrual) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FeeType != 0 { + n += 1 + sovFees(uint64(m.FeeType)) + } + l = m.AccruedAmount.Size() + n += 1 + l + sovFees(uint64(l)) + l = m.YieldToDeduct.Size() + n += 1 + l + sovFees(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.PeriodStart) + n += 1 + l + sovFees(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.PeriodEnd) + n += 1 + l + sovFees(uint64(l)) + if m.Collected { + n += 2 + } + return n +} + +func (m *FeeCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovFees(uint64(l)) + l = m.TotalAmount.Size() + n += 1 + l + sovFees(uint64(l)) + l = m.YieldDeducted.Size() + n += 1 + l + sovFees(uint64(l)) + if len(m.Breakdown) > 0 { + for _, e := range m.Breakdown { + l = e.Size() + n += 1 + l + sovFees(uint64(l)) + } + } + if m.BlockHeight != 0 { + n += 1 + sovFees(uint64(m.BlockHeight)) + } + return n +} + +func (m *FeeTypeBreakdown) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FeeType != 0 { + n += 1 + sovFees(uint64(m.FeeType)) + } + l = m.Amount.Size() + n += 1 + l + sovFees(uint64(l)) + l = m.YieldDeducted.Size() + n += 1 + l + sovFees(uint64(l)) + if m.RateApplied != 0 { + n += 1 + sovFees(uint64(m.RateApplied)) + } + return n +} + +func (m *FeeStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalFeesCollected.Size() + n += 1 + l + sovFees(uint64(l)) + l = m.TotalYieldCollected.Size() + n += 1 + l + sovFees(uint64(l)) + if m.CurrentAnnualRate != 0 { + n += 1 + sovFees(uint64(m.CurrentAnnualRate)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastCollection) + n += 1 + l + sovFees(uint64(l)) + l = m.AvgDailyCollection.Size() + n += 1 + l + sovFees(uint64(l)) + if m.CollectionFrequency != 0 { + n += 1 + sovFees(uint64(m.CollectionFrequency)) + } + return n +} + +func (m *PerformanceFeeState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HighWaterMark.Size() + n += 1 + l + sovFees(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastCalculation) + n += 1 + l + sovFees(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.PeriodStart) + n += 1 + l + sovFees(uint64(l)) + l = m.AccruedPerformanceFees.Size() + n += 1 + l + sovFees(uint64(l)) + if m.Active { + n += 2 + } + return n +} + +func (m *FeeExemption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovFees(uint64(l)) + } + if len(m.ExemptedTypes) > 0 { + l = 0 + for _, e := range m.ExemptedTypes { + l += sovFees(uint64(e)) + } + n += 1 + sovFees(uint64(l)) + l + } + if m.Expiry != nil { + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Expiry) + n += 1 + l + sovFees(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovFees(uint64(l)) + } + if m.Active { + n += 2 + } + return n +} + +func (m *FeeSchedule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.EffectiveDate) + n += 1 + l + sovFees(uint64(l)) + if m.FeeConfig != nil { + l = m.FeeConfig.Size() + n += 1 + l + sovFees(uint64(l)) + } + if m.Active { + n += 2 + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovFees(uint64(l)) + } + return n +} + +func sovFees(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFees(x uint64) (n int) { + return sovFees(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ManagementFeeRate", wireType) + } + m.ManagementFeeRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ManagementFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PerformanceFeeRate", wireType) + } + m.PerformanceFeeRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PerformanceFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeRecipient", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeRecipient = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FeesEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FeesEnabled = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HighWaterMark", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HighWaterMark.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *YieldDeductionParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: YieldDeductionParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: YieldDeductionParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldFeeRate", wireType) + } + m.YieldFeeRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.YieldFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinFeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinFeeAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxFeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxFeeAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionFrequency", wireType) + } + m.CollectionFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CollectionFrequency |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastCollection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastCollection, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeAccrual) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeAccrual: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeAccrual: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeType", wireType) + } + m.FeeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FeeType |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccruedAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AccruedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldToDeduct", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldToDeduct.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeriodStart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.PeriodStart, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeriodEnd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.PeriodEnd, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Collected", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Collected = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldDeducted", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldDeducted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Breakdown", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Breakdown = append(m.Breakdown, &FeeTypeBreakdown{}) + if err := m.Breakdown[len(m.Breakdown)-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 BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeTypeBreakdown) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeTypeBreakdown: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeTypeBreakdown: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeType", wireType) + } + m.FeeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FeeType |= FeeType(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 ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + 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 YieldDeducted", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldDeducted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateApplied", wireType) + } + m.RateApplied = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RateApplied |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalFeesCollected", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalFeesCollected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalYieldCollected", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalYieldCollected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentAnnualRate", wireType) + } + m.CurrentAnnualRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentAnnualRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastCollection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastCollection, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvgDailyCollection", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AvgDailyCollection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionFrequency", wireType) + } + m.CollectionFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CollectionFrequency |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PerformanceFeeState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PerformanceFeeState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PerformanceFeeState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HighWaterMark", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HighWaterMark.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastCalculation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastCalculation, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeriodStart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.PeriodStart, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccruedPerformanceFees", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AccruedPerformanceFees.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + 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 ErrIntOverflowFees + } + 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 := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeExemption) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeExemption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeExemption: 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType == 0 { + var v FeeType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExemptedTypes = append(m.ExemptedTypes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.ExemptedTypes) == 0 { + m.ExemptedTypes = make([]FeeType, 0, elementCount) + } + for iNdEx < postIndex { + var v FeeType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= FeeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExemptedTypes = append(m.ExemptedTypes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ExemptedTypes", wireType) + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Expiry == nil { + m.Expiry = new(time.Time) + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Expiry, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 ErrIntOverflowFees + } + 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 := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeSchedule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeeSchedule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeSchedule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.EffectiveDate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FeeConfig == nil { + m.FeeConfig = &FeeConfig{} + } + if err := m.FeeConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Active = bool(v != 0) + case 4: + 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 ErrIntOverflowFees + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFees + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFees + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFees(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFees + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFees(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, ErrIntOverflowFees + } + 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, ErrIntOverflowFees + } + 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, ErrIntOverflowFees + } + 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, ErrInvalidLengthFees + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFees + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFees + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFees = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFees = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFees = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/vaults/v2/genesis.pb.go b/types/vaults/v2/genesis.pb.go new file mode 100644 index 00000000..1679b1df --- /dev/null +++ b/types/vaults/v2/genesis.pb.go @@ -0,0 +1,2741 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/genesis.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 V2 vaults module's genesis state +type GenesisState struct { + // Module parameters + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + // V2 vault configurations + VaultConfig VaultConfig `protobuf:"bytes,2,opt,name=vault_config,json=vaultConfig,proto3" json:"vault_config"` + // All user positions in V2 + UserPositions []UserPositionEntry `protobuf:"bytes,3,rep,name=user_positions,json=userPositions,proto3" json:"user_positions"` + // Current NAV information for each vault type + NavEntries []NAVEntry `protobuf:"bytes,4,rep,name=nav_entries,json=navEntries,proto3" json:"nav_entries"` + // Withdrawal queue entries + WithdrawalQueue []WithdrawalRequestEntry `protobuf:"bytes,5,rep,name=withdrawal_queue,json=withdrawalQueue,proto3" json:"withdrawal_queue"` + // Total deposits and yield + VaultTotals VaultTotalEntry `protobuf:"bytes,6,opt,name=vault_totals,json=vaultTotals,proto3" json:"vault_totals"` + // Vault statistics + VaultStats VaultStatsEntry `protobuf:"bytes,7,opt,name=vault_stats,json=vaultStats,proto3" json:"vault_stats"` +} + +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_a687c7a1c262a427, []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) GetVaultConfig() VaultConfig { + if m != nil { + return m.VaultConfig + } + return VaultConfig{} +} + +func (m *GenesisState) GetUserPositions() []UserPositionEntry { + if m != nil { + return m.UserPositions + } + return nil +} + +func (m *GenesisState) GetNavEntries() []NAVEntry { + if m != nil { + return m.NavEntries + } + return nil +} + +func (m *GenesisState) GetWithdrawalQueue() []WithdrawalRequestEntry { + if m != nil { + return m.WithdrawalQueue + } + return nil +} + +func (m *GenesisState) GetVaultTotals() VaultTotalEntry { + if m != nil { + return m.VaultTotals + } + return VaultTotalEntry{} +} + +func (m *GenesisState) GetVaultStats() VaultStatsEntry { + if m != nil { + return m.VaultStats + } + return VaultStatsEntry{} +} + +// Params defines the parameters for the V2 vaults module +type Params struct { + // Authority address that can update parameters + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Minimum deposit amount + MinDepositAmount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=min_deposit_amount,json=minDepositAmount,proto3,customtype=cosmossdk.io/math.Int" json:"min_deposit_amount"` + // Minimum withdrawal amount + MinWithdrawalAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=min_withdrawal_amount,json=minWithdrawalAmount,proto3,customtype=cosmossdk.io/math.Int" json:"min_withdrawal_amount"` + // Maximum NAV change percentage allowed per update (basis points) + MaxNavChangeBps int32 `protobuf:"varint,4,opt,name=max_nav_change_bps,json=maxNavChangeBps,proto3" json:"max_nav_change_bps,omitempty"` + // Withdrawal request timeout duration (in seconds) + WithdrawalRequestTimeout int64 `protobuf:"varint,5,opt,name=withdrawal_request_timeout,json=withdrawalRequestTimeout,proto3" json:"withdrawal_request_timeout,omitempty"` + // Maximum number of withdrawal requests to process per block + MaxWithdrawalRequestsPerBlock int32 `protobuf:"varint,6,opt,name=max_withdrawal_requests_per_block,json=maxWithdrawalRequestsPerBlock,proto3" json:"max_withdrawal_requests_per_block,omitempty"` + // Whether V2 vault are enabled + VaultEnabled bool `protobuf:"varint,7,opt,name=vault_enabled,json=vaultEnabled,proto3" json:"vault_enabled,omitempty"` + // TWAP configuration for share pricing + TwapConfig TWAPConfig `protobuf:"bytes,8,opt,name=twap_config,json=twapConfig,proto3" json:"twap_config"` +} + +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_a687c7a1c262a427, []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 + +func (m *Params) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *Params) GetMaxNavChangeBps() int32 { + if m != nil { + return m.MaxNavChangeBps + } + return 0 +} + +func (m *Params) GetWithdrawalRequestTimeout() int64 { + if m != nil { + return m.WithdrawalRequestTimeout + } + return 0 +} + +func (m *Params) GetMaxWithdrawalRequestsPerBlock() int32 { + if m != nil { + return m.MaxWithdrawalRequestsPerBlock + } + return 0 +} + +func (m *Params) GetVaultEnabled() bool { + if m != nil { + return m.VaultEnabled + } + return false +} + +func (m *Params) GetTwapConfig() TWAPConfig { + if m != nil { + return m.TwapConfig + } + return TWAPConfig{} +} + +// VaultConfig stores configuration for a specific vault type +type VaultConfig struct { + // Whether this vault type is enabled for new deposits + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Maximum total deposits allowed + MaxTotalDeposits cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=max_total_deposits,json=maxTotalDeposits,proto3,customtype=cosmossdk.io/math.Int" json:"max_total_deposits"` + // Target yield rate (informational) + TargetYieldRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=target_yield_rate,json=targetYieldRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"target_yield_rate"` +} + +func (m *VaultConfig) Reset() { *m = VaultConfig{} } +func (m *VaultConfig) String() string { return proto.CompactTextString(m) } +func (*VaultConfig) ProtoMessage() {} +func (*VaultConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a687c7a1c262a427, []int{2} +} +func (m *VaultConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VaultConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VaultConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_VaultConfig.Merge(m, src) +} +func (m *VaultConfig) XXX_Size() int { + return m.Size() +} +func (m *VaultConfig) XXX_DiscardUnknown() { + xxx_messageInfo_VaultConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_VaultConfig proto.InternalMessageInfo + +func (m *VaultConfig) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + +// UserPositionEntry stores a user's position in the V2 system +type UserPositionEntry struct { + // User address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // User position details + Position UserPosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position"` +} + +func (m *UserPositionEntry) Reset() { *m = UserPositionEntry{} } +func (m *UserPositionEntry) String() string { return proto.CompactTextString(m) } +func (*UserPositionEntry) ProtoMessage() {} +func (*UserPositionEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_a687c7a1c262a427, []int{3} +} +func (m *UserPositionEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserPositionEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserPositionEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserPositionEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserPositionEntry.Merge(m, src) +} +func (m *UserPositionEntry) XXX_Size() int { + return m.Size() +} +func (m *UserPositionEntry) XXX_DiscardUnknown() { + xxx_messageInfo_UserPositionEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_UserPositionEntry proto.InternalMessageInfo + +func (m *UserPositionEntry) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + +func (m *UserPositionEntry) GetPosition() UserPosition { + if m != nil { + return m.Position + } + return UserPosition{} +} + +// NAVEntry stores NAV information for a vault type +type NAVEntry struct { + // NAV information + NavInfo NAVInfo `protobuf:"bytes,1,opt,name=nav_info,json=navInfo,proto3" json:"nav_info"` +} + +func (m *NAVEntry) Reset() { *m = NAVEntry{} } +func (m *NAVEntry) String() string { return proto.CompactTextString(m) } +func (*NAVEntry) ProtoMessage() {} +func (*NAVEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_a687c7a1c262a427, []int{4} +} +func (m *NAVEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVEntry.Merge(m, src) +} +func (m *NAVEntry) XXX_Size() int { + return m.Size() +} +func (m *NAVEntry) XXX_DiscardUnknown() { + xxx_messageInfo_NAVEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVEntry proto.InternalMessageInfo + +func (m *NAVEntry) GetNavInfo() NAVInfo { + if m != nil { + return m.NavInfo + } + return NAVInfo{} +} + +// WithdrawalRequestEntry stores a withdrawal request in the queue +type WithdrawalRequestEntry struct { + // User address + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Withdrawal request details + WithdrawalRequest WithdrawalRequest `protobuf:"bytes,2,opt,name=withdrawal_request,json=withdrawalRequest,proto3" json:"withdrawal_request"` +} + +func (m *WithdrawalRequestEntry) Reset() { *m = WithdrawalRequestEntry{} } +func (m *WithdrawalRequestEntry) String() string { return proto.CompactTextString(m) } +func (*WithdrawalRequestEntry) ProtoMessage() {} +func (*WithdrawalRequestEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_a687c7a1c262a427, []int{5} +} +func (m *WithdrawalRequestEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithdrawalRequestEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithdrawalRequestEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithdrawalRequestEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithdrawalRequestEntry.Merge(m, src) +} +func (m *WithdrawalRequestEntry) XXX_Size() int { + return m.Size() +} +func (m *WithdrawalRequestEntry) XXX_DiscardUnknown() { + xxx_messageInfo_WithdrawalRequestEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_WithdrawalRequestEntry proto.InternalMessageInfo + +func (m *WithdrawalRequestEntry) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + +func (m *WithdrawalRequestEntry) GetWithdrawalRequest() WithdrawalRequest { + if m != nil { + return m.WithdrawalRequest + } + return WithdrawalRequest{} +} + +// VaultTotalEntry tracks total deposits and yield for a vault type +type VaultTotalEntry struct { + // Total deposits in the vault + TotalDeposits cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_deposits,json=totalDeposits,proto3,customtype=cosmossdk.io/math.Int" json:"total_deposits"` + // Total accrued yield + TotalAccruedYield cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_accrued_yield,json=totalAccruedYield,proto3,customtype=cosmossdk.io/math.Int" json:"total_accrued_yield"` + // Total NAV (Net Asset Value = deposits + yield) + TotalNav cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=total_nav,json=totalNav,proto3,customtype=cosmossdk.io/math.Int" json:"total_nav"` +} + +func (m *VaultTotalEntry) Reset() { *m = VaultTotalEntry{} } +func (m *VaultTotalEntry) String() string { return proto.CompactTextString(m) } +func (*VaultTotalEntry) ProtoMessage() {} +func (*VaultTotalEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_a687c7a1c262a427, []int{6} +} +func (m *VaultTotalEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VaultTotalEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VaultTotalEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VaultTotalEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_VaultTotalEntry.Merge(m, src) +} +func (m *VaultTotalEntry) XXX_Size() int { + return m.Size() +} +func (m *VaultTotalEntry) XXX_DiscardUnknown() { + xxx_messageInfo_VaultTotalEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_VaultTotalEntry proto.InternalMessageInfo + +// VaultStatsEntry tracks statistics for a vault type +type VaultStatsEntry struct { + // Total number of depositors + TotalDepositors uint64 `protobuf:"varint,1,opt,name=total_depositors,json=totalDepositors,proto3" json:"total_depositors,omitempty"` + // Total value deposited (cumulative) + TotalDeposited cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_deposited,json=totalDeposited,proto3,customtype=cosmossdk.io/math.Int" json:"total_deposited"` + // Total value withdrawn (cumulative) + TotalWithdrawn cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=total_withdrawn,json=totalWithdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"total_withdrawn"` + // Total fees collected + TotalFeesCollected cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=total_fees_collected,json=totalFeesCollected,proto3,customtype=cosmossdk.io/math.Int" json:"total_fees_collected"` + // Total yield distributed + TotalYieldDistributed cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=total_yield_distributed,json=totalYieldDistributed,proto3,customtype=cosmossdk.io/math.Int" json:"total_yield_distributed"` + // Number of active positions + ActivePositions uint64 `protobuf:"varint,6,opt,name=active_positions,json=activePositions,proto3" json:"active_positions,omitempty"` +} + +func (m *VaultStatsEntry) Reset() { *m = VaultStatsEntry{} } +func (m *VaultStatsEntry) String() string { return proto.CompactTextString(m) } +func (*VaultStatsEntry) ProtoMessage() {} +func (*VaultStatsEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_a687c7a1c262a427, []int{7} +} +func (m *VaultStatsEntry) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VaultStatsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VaultStatsEntry.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VaultStatsEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_VaultStatsEntry.Merge(m, src) +} +func (m *VaultStatsEntry) XXX_Size() int { + return m.Size() +} +func (m *VaultStatsEntry) XXX_DiscardUnknown() { + xxx_messageInfo_VaultStatsEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_VaultStatsEntry proto.InternalMessageInfo + +func (m *VaultStatsEntry) GetTotalDepositors() uint64 { + if m != nil { + return m.TotalDepositors + } + return 0 +} + +func (m *VaultStatsEntry) GetActivePositions() uint64 { + if m != nil { + return m.ActivePositions + } + return 0 +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "noble.dollar.vaults.v2.GenesisState") + proto.RegisterType((*Params)(nil), "noble.dollar.vaults.v2.Params") + proto.RegisterType((*VaultConfig)(nil), "noble.dollar.vaults.v2.VaultConfig") + proto.RegisterType((*UserPositionEntry)(nil), "noble.dollar.vaults.v2.UserPositionEntry") + proto.RegisterType((*NAVEntry)(nil), "noble.dollar.vaults.v2.NAVEntry") + proto.RegisterType((*WithdrawalRequestEntry)(nil), "noble.dollar.vaults.v2.WithdrawalRequestEntry") + proto.RegisterType((*VaultTotalEntry)(nil), "noble.dollar.vaults.v2.VaultTotalEntry") + proto.RegisterType((*VaultStatsEntry)(nil), "noble.dollar.vaults.v2.VaultStatsEntry") +} + +func init() { + proto.RegisterFile("noble/dollar/vaults/v2/genesis.proto", fileDescriptor_a687c7a1c262a427) +} + +var fileDescriptor_a687c7a1c262a427 = []byte{ + // 1068 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x4f, 0x1b, 0x47, + 0x14, 0xc7, 0xd9, 0x60, 0xc0, 0x8c, 0x01, 0xc3, 0x04, 0xd2, 0x2d, 0x55, 0x0d, 0x35, 0x91, 0x0a, + 0xad, 0xe2, 0xad, 0x88, 0x94, 0x53, 0x2a, 0x15, 0x03, 0x49, 0x91, 0x28, 0xa2, 0x1b, 0x0a, 0x4a, + 0x0f, 0xd9, 0x8e, 0x77, 0x87, 0x65, 0x95, 0xdd, 0x19, 0x67, 0x66, 0x76, 0xb1, 0xfb, 0x57, 0x54, + 0xbd, 0xf6, 0x1f, 0xa8, 0xd4, 0x4b, 0x0f, 0x39, 0xf7, 0x9c, 0x63, 0x94, 0x53, 0xd5, 0x43, 0x54, + 0xc1, 0xa1, 0x87, 0xfc, 0x13, 0xd5, 0xfc, 0x58, 0xbc, 0xe0, 0x18, 0x21, 0xe7, 0x62, 0x79, 0x66, + 0xbf, 0xfb, 0x79, 0xf3, 0xde, 0x7c, 0xdf, 0xd3, 0x82, 0xbb, 0x84, 0xb6, 0x62, 0xec, 0x04, 0x34, + 0x8e, 0x11, 0x73, 0x32, 0x94, 0xc6, 0x82, 0x3b, 0xd9, 0xba, 0x13, 0x62, 0x82, 0x79, 0xc4, 0x1b, + 0x6d, 0x46, 0x05, 0x85, 0x77, 0x94, 0xaa, 0xa1, 0x55, 0x0d, 0xad, 0x6a, 0x64, 0xeb, 0x8b, 0x73, + 0x28, 0x89, 0x08, 0x75, 0xd4, 0xaf, 0x96, 0x2e, 0x7e, 0xec, 0x53, 0x9e, 0x50, 0xee, 0xa9, 0x95, + 0xa3, 0x17, 0xe6, 0xd1, 0x7c, 0x48, 0x43, 0xaa, 0xf7, 0xe5, 0x3f, 0xb3, 0xbb, 0x14, 0x52, 0x1a, + 0xc6, 0xd8, 0x51, 0xab, 0x56, 0x7a, 0xec, 0x88, 0x28, 0xc1, 0x5c, 0xa0, 0xa4, 0x6d, 0x04, 0xcb, + 0x03, 0x8e, 0x48, 0x50, 0x66, 0x14, 0x2b, 0x03, 0x14, 0xe6, 0xa0, 0x4a, 0x54, 0xff, 0xab, 0x04, + 0xa6, 0x1e, 0xeb, 0xac, 0x9e, 0x08, 0x24, 0x30, 0x7c, 0x08, 0xc6, 0xdb, 0x88, 0xa1, 0x84, 0xdb, + 0xd6, 0xb2, 0xb5, 0x5a, 0x59, 0xaf, 0x35, 0xde, 0x9f, 0x65, 0x63, 0x5f, 0xa9, 0x9a, 0xa5, 0x57, + 0x6f, 0x97, 0x46, 0x5c, 0xf3, 0x0e, 0xdc, 0x05, 0x53, 0x4a, 0xe1, 0xf9, 0x94, 0x1c, 0x47, 0xa1, + 0x7d, 0x4b, 0x31, 0x56, 0x06, 0x31, 0x0e, 0xe5, 0xbf, 0x4d, 0x25, 0x35, 0xa0, 0x4a, 0xd6, 0xdb, + 0x82, 0x87, 0x60, 0x26, 0xe5, 0x98, 0x79, 0x6d, 0xca, 0x23, 0x11, 0x51, 0xc2, 0xed, 0xd1, 0xe5, + 0xd1, 0xd5, 0xca, 0xfa, 0xda, 0x20, 0xde, 0x0f, 0x1c, 0xb3, 0x7d, 0x23, 0xde, 0x26, 0x82, 0x75, + 0x0d, 0x75, 0x3a, 0x2d, 0x3c, 0xe0, 0xf0, 0x31, 0xa8, 0x10, 0x94, 0x79, 0x98, 0x08, 0x16, 0x61, + 0x6e, 0x97, 0x14, 0x74, 0x79, 0x10, 0x74, 0x6f, 0xe3, 0xb0, 0xc8, 0x02, 0x04, 0x65, 0xdb, 0xfa, + 0x4d, 0xe8, 0x81, 0xd9, 0xd3, 0x48, 0x9c, 0x04, 0x0c, 0x9d, 0xa2, 0xd8, 0x7b, 0x91, 0xe2, 0x14, + 0xdb, 0x63, 0x8a, 0xd6, 0x18, 0x44, 0x3b, 0xba, 0xd0, 0xbb, 0xf8, 0x45, 0x8a, 0xb9, 0x28, 0xb2, + 0xab, 0x3d, 0xda, 0xf7, 0x12, 0x06, 0xf7, 0xf3, 0x7a, 0x0a, 0x2a, 0x50, 0xcc, 0xed, 0x71, 0x55, + 0xcf, 0xcf, 0xaf, 0xad, 0xe7, 0x81, 0x94, 0x16, 0xa9, 0xba, 0xa6, 0x6a, 0x9b, 0xc3, 0x3d, 0xa0, + 0x97, 0x1e, 0x17, 0x48, 0x70, 0x7b, 0xe2, 0x06, 0x40, 0x69, 0x0c, 0x7e, 0xa9, 0x04, 0xd9, 0xc5, + 0x76, 0xfd, 0x8f, 0x12, 0x18, 0xd7, 0x56, 0x80, 0x0f, 0xc0, 0x24, 0x4a, 0xc5, 0x09, 0x65, 0x91, + 0xe8, 0x2a, 0xf7, 0x4c, 0x36, 0xed, 0x37, 0x2f, 0xef, 0xcd, 0x1b, 0xbb, 0x6f, 0x04, 0x01, 0xc3, + 0x9c, 0x3f, 0x11, 0x2c, 0x22, 0xa1, 0xdb, 0x93, 0xc2, 0x67, 0x00, 0x26, 0x11, 0xf1, 0x02, 0xac, + 0xee, 0xd9, 0x43, 0x09, 0x4d, 0x89, 0x50, 0xd6, 0x99, 0x6c, 0x7e, 0x25, 0x03, 0xfe, 0xf3, 0x76, + 0x69, 0x41, 0x43, 0x78, 0xf0, 0xbc, 0x11, 0x51, 0x27, 0x41, 0xe2, 0xa4, 0xb1, 0x43, 0xc4, 0x9b, + 0x97, 0xf7, 0x80, 0xa1, 0xef, 0x10, 0xf1, 0xfb, 0x7f, 0x7f, 0x7e, 0x61, 0xb9, 0xb3, 0x49, 0x44, + 0xb6, 0x34, 0x6a, 0x43, 0x91, 0x60, 0x00, 0x16, 0x24, 0xbf, 0x70, 0x53, 0x26, 0xc4, 0xe8, 0x90, + 0x21, 0x6e, 0x27, 0x11, 0xe9, 0xdd, 0xa3, 0x89, 0xf2, 0x25, 0x80, 0x09, 0xea, 0x78, 0xd2, 0x58, + 0xfe, 0x09, 0x22, 0x21, 0xf6, 0x5a, 0x6d, 0xe9, 0x2d, 0x6b, 0x75, 0xcc, 0xad, 0x26, 0xa8, 0xb3, + 0x87, 0xb2, 0x4d, 0xb5, 0xdf, 0x6c, 0x73, 0xf8, 0x10, 0x2c, 0x16, 0x8e, 0xc3, 0xb4, 0x13, 0x3c, + 0xd9, 0xe3, 0x34, 0x15, 0xf6, 0xd8, 0xb2, 0xb5, 0x3a, 0xea, 0xda, 0xa7, 0x57, 0xad, 0x72, 0xa0, + 0x9f, 0xc3, 0x6f, 0xc1, 0x67, 0x32, 0x54, 0x3f, 0x81, 0x7b, 0x6d, 0xcc, 0xbc, 0x56, 0x4c, 0xfd, + 0xe7, 0xca, 0x2a, 0x63, 0xee, 0xa7, 0x09, 0xea, 0xf4, 0x59, 0x8e, 0xef, 0x63, 0xd6, 0x94, 0x22, + 0xb8, 0x02, 0xa6, 0xb5, 0x1b, 0x30, 0x41, 0xad, 0x18, 0x07, 0xca, 0x0f, 0x65, 0x57, 0x9b, 0x6e, + 0x5b, 0xef, 0xc1, 0x1d, 0x50, 0x11, 0xa7, 0xa8, 0x9d, 0xf7, 0x74, 0x59, 0x59, 0xa6, 0x3e, 0xc8, + 0x32, 0x07, 0x47, 0x1b, 0xfb, 0x97, 0x5a, 0x1a, 0xc8, 0x97, 0xf5, 0x4e, 0xfd, 0x9d, 0x05, 0x2a, + 0x85, 0xa6, 0x87, 0x36, 0x98, 0xc8, 0x23, 0x5b, 0x2a, 0x72, 0xbe, 0x54, 0xa6, 0x40, 0x1d, 0xed, + 0xfb, 0xdc, 0x1a, 0xfc, 0x03, 0x4c, 0x81, 0x3a, 0xaa, 0x01, 0x8c, 0x33, 0x38, 0x6c, 0x81, 0x39, + 0x81, 0x58, 0x88, 0x85, 0xd7, 0x8d, 0x70, 0x1c, 0x78, 0x0c, 0x09, 0x6c, 0x0c, 0xf1, 0xc0, 0xe0, + 0x3f, 0xe9, 0xc7, 0xef, 0xe2, 0x10, 0xf9, 0xdd, 0x2d, 0xec, 0x17, 0x82, 0x6c, 0x61, 0x5f, 0x07, + 0xa9, 0x6a, 0xe0, 0x53, 0xc9, 0x73, 0x91, 0xc0, 0xf5, 0x14, 0xcc, 0xf5, 0x4d, 0x24, 0x99, 0x32, + 0xd2, 0x9d, 0xa0, 0x52, 0x9e, 0x72, 0xf3, 0x25, 0x7c, 0x04, 0xca, 0xf9, 0xa4, 0x33, 0x83, 0xf3, + 0xee, 0x4d, 0x06, 0x9d, 0x29, 0xf3, 0xc5, 0xbb, 0xf5, 0x5d, 0x50, 0xce, 0x67, 0x16, 0xfc, 0x06, + 0x94, 0xa5, 0x23, 0x23, 0x72, 0x4c, 0xcd, 0x40, 0x5f, 0xba, 0x66, 0xce, 0xed, 0x90, 0x63, 0x6a, + 0x70, 0x13, 0x04, 0x65, 0x72, 0x59, 0xff, 0xd5, 0x02, 0x77, 0xde, 0x3f, 0xb4, 0xae, 0x49, 0xe5, + 0x19, 0x80, 0xfd, 0xee, 0x34, 0x49, 0xad, 0xdd, 0x78, 0x34, 0x9a, 0xa3, 0xcc, 0xf5, 0x35, 0x42, + 0xfd, 0xb7, 0x5b, 0xa0, 0x7a, 0x65, 0xd8, 0xc1, 0x23, 0x30, 0x73, 0xc5, 0x2d, 0xd6, 0x90, 0x6e, + 0x99, 0x16, 0x97, 0xac, 0xf2, 0x13, 0xb8, 0xad, 0xc1, 0xc8, 0xf7, 0x59, 0x8a, 0x03, 0xed, 0x98, + 0xa1, 0xbd, 0x38, 0xa7, 0x60, 0x1b, 0x9a, 0xa5, 0xcc, 0x02, 0xbf, 0x03, 0x93, 0x3a, 0x02, 0x41, + 0xd9, 0xd0, 0x53, 0xa9, 0xac, 0x10, 0x7b, 0x28, 0xab, 0xbf, 0x1b, 0x35, 0xd5, 0xe9, 0x4d, 0x6e, + 0xb8, 0x06, 0x66, 0x2f, 0x55, 0x87, 0x32, 0x5d, 0x9f, 0x92, 0x5b, 0x2d, 0x66, 0x4b, 0x19, 0x87, + 0x4f, 0x41, 0xf5, 0x92, 0x14, 0x0f, 0x9f, 0xeb, 0x4c, 0x91, 0x8d, 0x83, 0x1e, 0x3a, 0xbf, 0x52, + 0x32, 0x74, 0xba, 0x1a, 0x9d, 0x7b, 0x86, 0xc0, 0x16, 0x98, 0xd7, 0xe8, 0x63, 0x8c, 0xb9, 0xe7, + 0xd3, 0x38, 0xc6, 0xbe, 0x3c, 0x7a, 0x69, 0x48, 0x3e, 0x54, 0xb4, 0x47, 0x18, 0xf3, 0xcd, 0x9c, + 0x05, 0x4f, 0xc0, 0x47, 0x3a, 0x86, 0x9e, 0x19, 0x41, 0xc4, 0x05, 0x8b, 0x5a, 0xa9, 0x0c, 0x33, + 0x36, 0x64, 0x98, 0x05, 0x05, 0x54, 0x36, 0xd8, 0xea, 0xe1, 0xe4, 0x75, 0x21, 0x5f, 0x44, 0x19, + 0x2e, 0x7c, 0xfc, 0x8c, 0xeb, 0xeb, 0xd2, 0xfb, 0x17, 0x5f, 0x33, 0xcd, 0xaf, 0x5f, 0x9d, 0xd5, + 0xac, 0xd7, 0x67, 0x35, 0xeb, 0xdf, 0xb3, 0x9a, 0xf5, 0xcb, 0x79, 0x6d, 0xe4, 0xf5, 0x79, 0x6d, + 0xe4, 0xef, 0xf3, 0xda, 0xc8, 0x8f, 0x2b, 0xa6, 0xc5, 0x74, 0xbf, 0x75, 0xba, 0x3f, 0x3b, 0xd9, + 0x7d, 0x47, 0x74, 0xdb, 0x98, 0xf7, 0x3e, 0x07, 0x5b, 0xe3, 0xea, 0x43, 0xf0, 0xfe, 0xff, 0x01, + 0x00, 0x00, 0xff, 0xff, 0xf6, 0x01, 0xf2, 0xd2, 0xf4, 0x0a, 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.VaultStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + { + size, err := m.VaultTotals.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.WithdrawalQueue) > 0 { + for iNdEx := len(m.WithdrawalQueue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WithdrawalQueue[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.NavEntries) > 0 { + for iNdEx := len(m.NavEntries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NavEntries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.UserPositions) > 0 { + for iNdEx := len(m.UserPositions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserPositions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.VaultConfig.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 (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 + { + size, err := m.TwapConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if m.VaultEnabled { + i-- + if m.VaultEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.MaxWithdrawalRequestsPerBlock != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.MaxWithdrawalRequestsPerBlock)) + i-- + dAtA[i] = 0x30 + } + if m.WithdrawalRequestTimeout != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.WithdrawalRequestTimeout)) + i-- + dAtA[i] = 0x28 + } + if m.MaxNavChangeBps != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.MaxNavChangeBps)) + i-- + dAtA[i] = 0x20 + } + { + size := m.MinWithdrawalAmount.Size() + i -= size + if _, err := m.MinWithdrawalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.MinDepositAmount.Size() + i -= size + if _, err := m.MinDepositAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VaultConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VaultConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VaultConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.TargetYieldRate.Size() + i -= size + if _, err := m.TargetYieldRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.MaxTotalDeposits.Size() + i -= size + if _, err := m.MaxTotalDeposits.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.Enabled { + i-- + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *UserPositionEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserPositionEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserPositionEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NAVEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.NavInfo.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 *WithdrawalRequestEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithdrawalRequestEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithdrawalRequestEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.WithdrawalRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VaultTotalEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VaultTotalEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VaultTotalEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.TotalNav.Size() + i -= size + if _, err := m.TotalNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalAccruedYield.Size() + i -= size + if _, err := m.TotalAccruedYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalDeposits.Size() + i -= size + if _, err := m.TotalDeposits.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 *VaultStatsEntry) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VaultStatsEntry) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VaultStatsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ActivePositions != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.ActivePositions)) + i-- + dAtA[i] = 0x30 + } + { + size := m.TotalYieldDistributed.Size() + i -= size + if _, err := m.TotalYieldDistributed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.TotalFeesCollected.Size() + i -= size + if _, err := m.TotalFeesCollected.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.TotalWithdrawn.Size() + i -= size + if _, err := m.TotalWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalDeposited.Size() + i -= size + if _, err := m.TotalDeposited.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.TotalDepositors != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TotalDepositors)) + i-- + dAtA[i] = 0x8 + } + 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 = m.VaultConfig.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.UserPositions) > 0 { + for _, e := range m.UserPositions { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.NavEntries) > 0 { + for _, e := range m.NavEntries { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.WithdrawalQueue) > 0 { + for _, e := range m.WithdrawalQueue { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + l = m.VaultTotals.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.VaultStats.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.MinDepositAmount.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.MinWithdrawalAmount.Size() + n += 1 + l + sovGenesis(uint64(l)) + if m.MaxNavChangeBps != 0 { + n += 1 + sovGenesis(uint64(m.MaxNavChangeBps)) + } + if m.WithdrawalRequestTimeout != 0 { + n += 1 + sovGenesis(uint64(m.WithdrawalRequestTimeout)) + } + if m.MaxWithdrawalRequestsPerBlock != 0 { + n += 1 + sovGenesis(uint64(m.MaxWithdrawalRequestsPerBlock)) + } + if m.VaultEnabled { + n += 2 + } + l = m.TwapConfig.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *VaultConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled { + n += 2 + } + l = m.MaxTotalDeposits.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.TargetYieldRate.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *UserPositionEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Position.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *NAVEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.NavInfo.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *WithdrawalRequestEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.WithdrawalRequest.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *VaultTotalEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalDeposits.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.TotalAccruedYield.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.TotalNav.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *VaultStatsEntry) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TotalDepositors != 0 { + n += 1 + sovGenesis(uint64(m.TotalDepositors)) + } + l = m.TotalDeposited.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.TotalWithdrawn.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.TotalFeesCollected.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.TotalYieldDistributed.Size() + n += 1 + l + sovGenesis(uint64(l)) + if m.ActivePositions != 0 { + n += 1 + sovGenesis(uint64(m.ActivePositions)) + } + 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 VaultConfig", 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.VaultConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserPositions", 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.UserPositions = append(m.UserPositions, UserPositionEntry{}) + if err := m.UserPositions[len(m.UserPositions)-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 NavEntries", 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.NavEntries = append(m.NavEntries, NAVEntry{}) + if err := m.NavEntries[len(m.NavEntries)-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 WithdrawalQueue", 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.WithdrawalQueue = append(m.WithdrawalQueue, WithdrawalRequestEntry{}) + if err := m.WithdrawalQueue[len(m.WithdrawalQueue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultTotals", 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.VaultTotals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultStats", 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.VaultStats.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 *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 { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinDepositAmount", 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.MinDepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinWithdrawalAmount", 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.MinWithdrawalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNavChangeBps", wireType) + } + m.MaxNavChangeBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxNavChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalRequestTimeout", wireType) + } + m.WithdrawalRequestTimeout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WithdrawalRequestTimeout |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxWithdrawalRequestsPerBlock", wireType) + } + m.MaxWithdrawalRequestsPerBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxWithdrawalRequestsPerBlock |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultEnabled", 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.VaultEnabled = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TwapConfig", 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.TwapConfig.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 *VaultConfig) Unmarshal(dAtA []byte) 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: VaultConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VaultConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", 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.Enabled = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTotalDeposits", 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.MaxTotalDeposits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetYieldRate", 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.TargetYieldRate.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 *UserPositionEntry) Unmarshal(dAtA []byte) 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: UserPositionEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserPositionEntry: 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 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.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", 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.Position.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 *NAVEntry) Unmarshal(dAtA []byte) 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: NAVEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NavInfo", 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.NavInfo.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 *WithdrawalRequestEntry) Unmarshal(dAtA []byte) 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: WithdrawalRequestEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithdrawalRequestEntry: 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 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.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalRequest", 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.WithdrawalRequest.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 *VaultTotalEntry) Unmarshal(dAtA []byte) 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: VaultTotalEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VaultTotalEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAccruedYield", 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.TotalAccruedYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalNav", 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.TotalNav.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 *VaultStatsEntry) Unmarshal(dAtA []byte) 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: VaultStatsEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VaultStatsEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDepositors", wireType) + } + m.TotalDepositors = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalDepositors |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposited", 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.TotalDeposited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalWithdrawn", 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.TotalWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalFeesCollected", 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.TotalFeesCollected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalYieldDistributed", 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.TotalYieldDistributed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActivePositions", wireType) + } + m.ActivePositions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActivePositions |= 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/types/vaults/v2/keys.go b/types/vaults/v2/keys.go new file mode 100644 index 00000000..589a8eb4 --- /dev/null +++ b/types/vaults/v2/keys.go @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: BUSL-1.1 +// +// Copyright (C) 2025, NASD Inc. All rights reserved. +// Use of this software is governed by the Business Source License included +// in the LICENSE file of this repository and at www.mariadb.com/bsl11. +// +// ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY +// TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER +// VERSIONS OF THE LICENSED WORK. +// +// THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF +// LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF +// LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE). +// +// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +// TITLE. + +package v2 + +const SubmoduleName = "dollar/vaults/v2" + +var ( + ParamsKey = []byte("vaults/v2/params") + VaultConfigurationKey = []byte("vaults/v2/vault_config") + UserPositionPrefix = []byte("vaults/v2/user_position/") + NAVKey = []byte("vaults/v2/nav") + NAVInfoKey = []byte("vaults/v2/nav_info") + VaultStateKey = []byte("vaults/v2/vault_state") + LastNAVUpdateKey = []byte("vaults/v2/last_nav_update") + RemotePositionPrefix = []byte("vaults/v2/remote_position/") + InflightFundsPrefix = []byte("vaults/v2/inflight_funds/") + InflightRoutesKey = []byte("vaults/v2/inflight_routes") + TotalInflightValueKey = []byte("vaults/v2/total_inflight_value") + InflightValueByRoutePrefix = []byte("vaults/v2/inflight_value_by_route/") + InflightNextIDKey = []byte("vaults/v2/inflight_next_id") + RemotePositionNextIDKey = []byte("vaults/v2/remote_position_next_id") + RemotePositionChainPrefix = []byte("vaults/v2/remote_position_chain/") + PendingDeploymentFundsKey = []byte("vaults/v2/pending_deployment") + PendingWithdrawalDistributionKey = []byte("vaults/v2/pending_withdrawal_dist") + WithdrawalQueuePrefix = []byte("vaults/v2/withdrawal_queue/") + WithdrawalQueueSequenceKey = []byte("vaults/v2/withdrawal_queue_seq") + WithdrawalQueueNextIDKey = []byte("vaults/v2/withdrawal_next_id") + PendingWithdrawalsKey = []byte("vaults/v2/pending_withdrawals") + UserSharesPrefix = []byte("vaults/v2/user_shares/") + TotalSharesKey = []byte("vaults/v2/total_shares") + DepositLimitsKey = []byte("vaults/v2/deposit_limits") + UserDepositHistoryPrefix = []byte("vaults/v2/user_deposit_history/") + DepositVelocityPrefix = []byte("vaults/v2/deposit_velocity/") + RemotePositionOraclesPrefix = []byte("vaults/v2/remote_position_oracles/") + OracleUpdatesPrefix = []byte("vaults/v2/oracle_updates/") + OracleRouteConfigsPrefix = []byte("vaults/v2/oracle_route_configs/") + LastOracleUpdatePrefix = []byte("vaults/v2/last_oracle_update/") + EnrolledOraclePrefix = []byte("vaults/v2/enrolled_oracles/") + OracleParamsKey = []byte("vaults/v2/oracle_params") + CrossChainRoutePrefix = []byte("vaults/v2/cross_chain_route/") + CrossChainRouteNextIDKey = []byte("vaults/v2/cross_chain_route_next_id") + BlockDepositVolumePrefix = []byte("vaults/v2/block_deposit_volume/") + NAVSnapshotsPrefix = []byte("vaults/v2/nav_snapshots/") + NAVSnapshotNextIDKey = []byte("vaults/v2/nav_snapshot_next_id") +) diff --git a/types/vaults/v2/nav.pb.go b/types/vaults/v2/nav.pb.go new file mode 100644 index 00000000..bda7f4cc --- /dev/null +++ b/types/vaults/v2/nav.pb.go @@ -0,0 +1,1920 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/nav.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// NAVBand defines the pricing bands for deposits and withdrawals +type NAVBand struct { + // Lower bound of the band (basis points above/below NAV) + LowerBound int32 `protobuf:"varint,1,opt,name=lower_bound,json=lowerBound,proto3" json:"lower_bound,omitempty"` + // Upper bound of the band (basis points above/below NAV) + UpperBound int32 `protobuf:"varint,2,opt,name=upper_bound,json=upperBound,proto3" json:"upper_bound,omitempty"` +} + +func (m *NAVBand) Reset() { *m = NAVBand{} } +func (m *NAVBand) String() string { return proto.CompactTextString(m) } +func (*NAVBand) ProtoMessage() {} +func (*NAVBand) Descriptor() ([]byte, []int) { + return fileDescriptor_893b9e92a5bdeb81, []int{0} +} +func (m *NAVBand) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVBand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVBand.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVBand) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVBand.Merge(m, src) +} +func (m *NAVBand) XXX_Size() int { + return m.Size() +} +func (m *NAVBand) XXX_DiscardUnknown() { + xxx_messageInfo_NAVBand.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVBand proto.InternalMessageInfo + +func (m *NAVBand) GetLowerBound() int32 { + if m != nil { + return m.LowerBound + } + return 0 +} + +func (m *NAVBand) GetUpperBound() int32 { + if m != nil { + return m.UpperBound + } + return 0 +} + +// NAVConfig defines the configuration for NAV-based pricing +type NAVConfig struct { + // Base NAV bands for deposits + DepositBands []*NAVBand `protobuf:"bytes,1,rep,name=deposit_bands,json=depositBands,proto3" json:"deposit_bands,omitempty"` + // Base NAV bands for withdrawals + WithdrawalBands []*NAVBand `protobuf:"bytes,2,rep,name=withdrawal_bands,json=withdrawalBands,proto3" json:"withdrawal_bands,omitempty"` + // Minimum NAV update interval (seconds) + MinNavUpdateInterval int64 `protobuf:"varint,3,opt,name=min_nav_update_interval,json=minNavUpdateInterval,proto3" json:"min_nav_update_interval,omitempty"` + // Maximum allowed NAV deviation before emergency controls (basis points) + MaxNavDeviation int32 `protobuf:"varint,4,opt,name=max_nav_deviation,json=maxNavDeviation,proto3" json:"max_nav_deviation,omitempty"` + // Emergency circuit breaker threshold (basis points) + CircuitBreakerThreshold int32 `protobuf:"varint,5,opt,name=circuit_breaker_threshold,json=circuitBreakerThreshold,proto3" json:"circuit_breaker_threshold,omitempty"` +} + +func (m *NAVConfig) Reset() { *m = NAVConfig{} } +func (m *NAVConfig) String() string { return proto.CompactTextString(m) } +func (*NAVConfig) ProtoMessage() {} +func (*NAVConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_893b9e92a5bdeb81, []int{1} +} +func (m *NAVConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVConfig.Merge(m, src) +} +func (m *NAVConfig) XXX_Size() int { + return m.Size() +} +func (m *NAVConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NAVConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVConfig proto.InternalMessageInfo + +func (m *NAVConfig) GetDepositBands() []*NAVBand { + if m != nil { + return m.DepositBands + } + return nil +} + +func (m *NAVConfig) GetWithdrawalBands() []*NAVBand { + if m != nil { + return m.WithdrawalBands + } + return nil +} + +func (m *NAVConfig) GetMinNavUpdateInterval() int64 { + if m != nil { + return m.MinNavUpdateInterval + } + return 0 +} + +func (m *NAVConfig) GetMaxNavDeviation() int32 { + if m != nil { + return m.MaxNavDeviation + } + return 0 +} + +func (m *NAVConfig) GetCircuitBreakerThreshold() int32 { + if m != nil { + return m.CircuitBreakerThreshold + } + return 0 +} + +// NAVInfo represents current NAV information for a vault +type NAVInfo struct { + // Current NAV value + CurrentNav cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=current_nav,json=currentNav,proto3,customtype=cosmossdk.io/math.Int" json:"current_nav"` + // Previous NAV value + PreviousNav cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=previous_nav,json=previousNav,proto3,customtype=cosmossdk.io/math.Int" json:"previous_nav"` + // Last update timestamp + LastUpdate time.Time `protobuf:"bytes,3,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"` + // NAV change since last update (basis points) + ChangeBps int32 `protobuf:"varint,4,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Whether circuit breaker is active + CircuitBreakerActive bool `protobuf:"varint,5,opt,name=circuit_breaker_active,json=circuitBreakerActive,proto3" json:"circuit_breaker_active,omitempty"` +} + +func (m *NAVInfo) Reset() { *m = NAVInfo{} } +func (m *NAVInfo) String() string { return proto.CompactTextString(m) } +func (*NAVInfo) ProtoMessage() {} +func (*NAVInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_893b9e92a5bdeb81, []int{2} +} +func (m *NAVInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVInfo.Merge(m, src) +} +func (m *NAVInfo) XXX_Size() int { + return m.Size() +} +func (m *NAVInfo) XXX_DiscardUnknown() { + xxx_messageInfo_NAVInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVInfo proto.InternalMessageInfo + +func (m *NAVInfo) GetLastUpdate() time.Time { + if m != nil { + return m.LastUpdate + } + return time.Time{} +} + +func (m *NAVInfo) GetChangeBps() int32 { + if m != nil { + return m.ChangeBps + } + return 0 +} + +func (m *NAVInfo) GetCircuitBreakerActive() bool { + if m != nil { + return m.CircuitBreakerActive + } + return false +} + +// NAVUpdate represents a NAV update event +type NAVUpdate struct { + // New NAV point + NewNav cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=new_nav,json=newNav,proto3,customtype=cosmossdk.io/math.Int" json:"new_nav"` + // Update timestamp + Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Block height + BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *NAVUpdate) Reset() { *m = NAVUpdate{} } +func (m *NAVUpdate) String() string { return proto.CompactTextString(m) } +func (*NAVUpdate) ProtoMessage() {} +func (*NAVUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_893b9e92a5bdeb81, []int{3} +} +func (m *NAVUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVUpdate.Merge(m, src) +} +func (m *NAVUpdate) XXX_Size() int { + return m.Size() +} +func (m *NAVUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_NAVUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVUpdate proto.InternalMessageInfo + +func (m *NAVUpdate) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *NAVUpdate) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +// PricingInfo provides pricing information for deposits/withdrawals +type PricingInfo struct { + // Current yield rate (APY) + YieldRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=yield_rate,json=yieldRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"yield_rate"` + // Applied NAV band + AppliedBand *NAVBand `protobuf:"bytes,2,opt,name=applied_band,json=appliedBand,proto3" json:"applied_band,omitempty"` + // Effective fee rate + EffectiveFeeRate int32 `protobuf:"varint,3,opt,name=effective_fee_rate,json=effectiveFeeRate,proto3" json:"effective_fee_rate,omitempty"` +} + +func (m *PricingInfo) Reset() { *m = PricingInfo{} } +func (m *PricingInfo) String() string { return proto.CompactTextString(m) } +func (*PricingInfo) ProtoMessage() {} +func (*PricingInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_893b9e92a5bdeb81, []int{4} +} +func (m *PricingInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PricingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PricingInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PricingInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PricingInfo.Merge(m, src) +} +func (m *PricingInfo) XXX_Size() int { + return m.Size() +} +func (m *PricingInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PricingInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_PricingInfo proto.InternalMessageInfo + +func (m *PricingInfo) GetAppliedBand() *NAVBand { + if m != nil { + return m.AppliedBand + } + return nil +} + +func (m *PricingInfo) GetEffectiveFeeRate() int32 { + if m != nil { + return m.EffectiveFeeRate + } + return 0 +} + +// LossEvent represents a loss in vault value +type LossEvent struct { + // Amount of loss + LossAmount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=loss_amount,json=lossAmount,proto3,customtype=cosmossdk.io/math.Int" json:"loss_amount"` + // Previous NAV before loss + PreviousNav cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=previous_nav,json=previousNav,proto3,customtype=cosmossdk.io/math.Int" json:"previous_nav"` + // New NAV after loss + NewNav cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=new_nav,json=newNav,proto3,customtype=cosmossdk.io/math.Int" json:"new_nav"` + // Timestamp of loss + Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp"` +} + +func (m *LossEvent) Reset() { *m = LossEvent{} } +func (m *LossEvent) String() string { return proto.CompactTextString(m) } +func (*LossEvent) ProtoMessage() {} +func (*LossEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_893b9e92a5bdeb81, []int{5} +} +func (m *LossEvent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LossEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LossEvent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LossEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_LossEvent.Merge(m, src) +} +func (m *LossEvent) XXX_Size() int { + return m.Size() +} +func (m *LossEvent) XXX_DiscardUnknown() { + xxx_messageInfo_LossEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_LossEvent proto.InternalMessageInfo + +func (m *LossEvent) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func init() { + proto.RegisterType((*NAVBand)(nil), "noble.dollar.vaults.v2.NAVBand") + proto.RegisterType((*NAVConfig)(nil), "noble.dollar.vaults.v2.NAVConfig") + proto.RegisterType((*NAVInfo)(nil), "noble.dollar.vaults.v2.NAVInfo") + proto.RegisterType((*NAVUpdate)(nil), "noble.dollar.vaults.v2.NAVUpdate") + proto.RegisterType((*PricingInfo)(nil), "noble.dollar.vaults.v2.PricingInfo") + proto.RegisterType((*LossEvent)(nil), "noble.dollar.vaults.v2.LossEvent") +} + +func init() { proto.RegisterFile("noble/dollar/vaults/v2/nav.proto", fileDescriptor_893b9e92a5bdeb81) } + +var fileDescriptor_893b9e92a5bdeb81 = []byte{ + // 771 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4d, 0x6f, 0xd3, 0x4a, + 0x14, 0x8d, 0x93, 0x7e, 0x65, 0x9c, 0xa7, 0xb6, 0x56, 0x5f, 0x9b, 0xf6, 0xe9, 0x25, 0x79, 0x79, + 0x9b, 0xaa, 0x02, 0x1b, 0xa5, 0xc0, 0x02, 0x89, 0x45, 0x4c, 0x8a, 0x08, 0x54, 0x11, 0x84, 0xb6, + 0x0b, 0x36, 0xd6, 0xc4, 0x9e, 0x38, 0xa3, 0xda, 0x33, 0x96, 0x67, 0xec, 0x34, 0xfc, 0x8a, 0xfe, + 0x0c, 0x96, 0x2c, 0x58, 0xc2, 0x86, 0x55, 0x37, 0x48, 0x15, 0x0b, 0x84, 0x58, 0x14, 0xd4, 0x2e, + 0xf8, 0x1b, 0xc8, 0x33, 0x93, 0xb6, 0x7c, 0x48, 0x54, 0x05, 0x36, 0x51, 0xe6, 0xde, 0x73, 0xcf, + 0xf8, 0x9c, 0x7b, 0x9c, 0x80, 0x1a, 0xa1, 0xbd, 0x00, 0x59, 0x1e, 0x0d, 0x02, 0x18, 0x5b, 0x29, + 0x4c, 0x02, 0xce, 0xac, 0xb4, 0x61, 0x11, 0x98, 0x9a, 0x51, 0x4c, 0x39, 0x35, 0x16, 0x05, 0xc2, + 0x94, 0x08, 0x53, 0x22, 0xcc, 0xb4, 0xb1, 0x32, 0x0f, 0x43, 0x4c, 0xa8, 0x25, 0x3e, 0x25, 0x74, + 0x65, 0xd9, 0xa5, 0x2c, 0xa4, 0xcc, 0x11, 0x27, 0x4b, 0x1e, 0x54, 0x6b, 0xc1, 0xa7, 0x3e, 0x95, + 0xf5, 0xec, 0x9b, 0xaa, 0x56, 0x7d, 0x4a, 0xfd, 0x00, 0x59, 0xe2, 0xd4, 0x4b, 0xfa, 0x16, 0xc7, + 0x21, 0x62, 0x1c, 0x86, 0x91, 0x04, 0xd4, 0x1f, 0x80, 0xe9, 0x4e, 0x73, 0xc7, 0x86, 0xc4, 0x33, + 0xaa, 0x40, 0x0f, 0xe8, 0x10, 0xc5, 0x4e, 0x8f, 0x26, 0xc4, 0x2b, 0x6b, 0x35, 0x6d, 0x75, 0xb2, + 0x0b, 0x44, 0xc9, 0xce, 0x2a, 0x19, 0x20, 0x89, 0xa2, 0x53, 0x40, 0x5e, 0x02, 0x44, 0x49, 0x00, + 0xea, 0x2f, 0xf3, 0xa0, 0xd8, 0x69, 0xee, 0xdc, 0xa1, 0xa4, 0x8f, 0x7d, 0xa3, 0x05, 0xfe, 0xf2, + 0x50, 0x44, 0x19, 0xe6, 0x4e, 0x0f, 0x12, 0x8f, 0x95, 0xb5, 0x5a, 0x61, 0x55, 0x6f, 0x54, 0xcd, + 0x1f, 0xeb, 0x35, 0xd5, 0x73, 0x74, 0x4b, 0x6a, 0x2a, 0x3b, 0x30, 0xe3, 0x3e, 0x98, 0x1b, 0x62, + 0x3e, 0xf0, 0x62, 0x38, 0x84, 0x81, 0x22, 0xca, 0x5f, 0x8c, 0x68, 0xf6, 0x6c, 0x50, 0x72, 0xdd, + 0x00, 0x4b, 0x21, 0x26, 0x0e, 0x81, 0xa9, 0x93, 0x44, 0x1e, 0xe4, 0xc8, 0xc1, 0x84, 0xa3, 0x38, + 0x85, 0x41, 0xb9, 0x50, 0xd3, 0x56, 0x0b, 0xdd, 0x85, 0x10, 0x93, 0x0e, 0x4c, 0xb7, 0x45, 0xb3, + 0xad, 0x7a, 0xc6, 0x1a, 0x98, 0x0f, 0xe1, 0x9e, 0x18, 0xf3, 0x50, 0x8a, 0x21, 0xc7, 0x94, 0x94, + 0x27, 0x84, 0xfa, 0xd9, 0x10, 0xee, 0x75, 0x60, 0xda, 0x1a, 0x97, 0x8d, 0x5b, 0x60, 0xd9, 0xc5, + 0xb1, 0x9b, 0x64, 0xa2, 0x63, 0x04, 0x77, 0x51, 0xec, 0xf0, 0x41, 0x8c, 0xd8, 0x80, 0x06, 0x5e, + 0x79, 0x52, 0xcc, 0x2c, 0x29, 0x80, 0x2d, 0xfb, 0x5b, 0xe3, 0x76, 0xfd, 0x4d, 0x5e, 0x2c, 0xa3, + 0x4d, 0xfa, 0xd4, 0x78, 0x04, 0x74, 0x37, 0x89, 0x63, 0x44, 0x78, 0x76, 0xaf, 0x58, 0x46, 0xd1, + 0xbe, 0x76, 0x70, 0x54, 0xcd, 0x7d, 0x38, 0xaa, 0xfe, 0x2d, 0x37, 0xcf, 0xbc, 0x5d, 0x13, 0x53, + 0x2b, 0x84, 0x7c, 0x60, 0xb6, 0x09, 0x7f, 0xfb, 0xe2, 0x2a, 0x50, 0x91, 0x68, 0x13, 0xfe, 0xec, + 0xf3, 0xf3, 0x35, 0xad, 0x0b, 0x14, 0x49, 0x07, 0xa6, 0xc6, 0x63, 0x50, 0x8a, 0x62, 0x94, 0x62, + 0x9a, 0x30, 0xc1, 0x99, 0xbf, 0x24, 0xa7, 0x3e, 0x66, 0xc9, 0x48, 0x37, 0x80, 0x1e, 0x40, 0xc6, + 0x95, 0x9f, 0xc2, 0x46, 0xbd, 0xb1, 0x62, 0xca, 0xd8, 0x99, 0xe3, 0xd8, 0x99, 0x5b, 0xe3, 0xd8, + 0xd9, 0x33, 0xd9, 0x7d, 0xfb, 0x1f, 0xab, 0x5a, 0x17, 0x64, 0x83, 0xd2, 0x6a, 0xe3, 0x5f, 0x00, + 0xdc, 0x01, 0x24, 0x3e, 0x72, 0x7a, 0x11, 0x53, 0xde, 0x16, 0x65, 0xc5, 0x8e, 0x98, 0x71, 0x1d, + 0x2c, 0x7e, 0xeb, 0x2a, 0x74, 0x39, 0x4e, 0x91, 0xb0, 0x74, 0xa6, 0xbb, 0xf0, 0xb5, 0xa5, 0x4d, + 0xd1, 0xab, 0xbf, 0xd2, 0x44, 0x1c, 0xd5, 0x15, 0x6d, 0x30, 0x4d, 0xd0, 0xf0, 0x97, 0xdc, 0x9c, + 0x22, 0x68, 0x98, 0x89, 0xb6, 0x41, 0xf1, 0xf4, 0x3d, 0x12, 0x36, 0x5e, 0x54, 0xf2, 0xd9, 0x98, + 0xf1, 0x1f, 0x28, 0xf5, 0x02, 0xea, 0xee, 0x3a, 0x03, 0x84, 0xfd, 0x01, 0x57, 0x01, 0xd4, 0x45, + 0xed, 0x9e, 0x28, 0xd5, 0xdf, 0x69, 0x40, 0x7f, 0x18, 0x63, 0x17, 0x13, 0x5f, 0x64, 0x62, 0x1b, + 0x80, 0x11, 0x46, 0x81, 0xe7, 0xc4, 0x99, 0xd5, 0x52, 0xc4, 0x4d, 0x25, 0xe2, 0x9f, 0xef, 0x45, + 0x6c, 0x22, 0x1f, 0xba, 0xa3, 0x16, 0x72, 0xcf, 0x49, 0x69, 0x21, 0x57, 0x4a, 0x29, 0x0a, 0xa6, + 0x6e, 0x66, 0x8c, 0x0d, 0x4a, 0x30, 0x8a, 0x02, 0x8c, 0x3c, 0xf1, 0x7a, 0x29, 0x41, 0x3f, 0x7d, + 0xbb, 0x74, 0x35, 0x24, 0x7e, 0x3b, 0xae, 0x00, 0x03, 0xf5, 0xfb, 0x48, 0xf8, 0xee, 0xf4, 0x11, + 0x92, 0x8f, 0x58, 0x10, 0x7b, 0x9c, 0x3b, 0xed, 0xdc, 0x45, 0x28, 0xbb, 0xb1, 0xfe, 0x3a, 0x0f, + 0x8a, 0x9b, 0x94, 0xb1, 0x8d, 0x14, 0x11, 0x9e, 0x45, 0x3d, 0xa0, 0x8c, 0x39, 0x30, 0xa4, 0x09, + 0xe1, 0x97, 0x8f, 0x7a, 0x46, 0xd2, 0x14, 0x1c, 0x7f, 0x26, 0xea, 0xe7, 0x02, 0x54, 0xf8, 0x9d, + 0x01, 0x9a, 0xb8, 0x54, 0x80, 0xec, 0xdb, 0x07, 0xc7, 0x15, 0xed, 0xf0, 0xb8, 0xa2, 0x7d, 0x3a, + 0xae, 0x68, 0xfb, 0x27, 0x95, 0xdc, 0xe1, 0x49, 0x25, 0xf7, 0xfe, 0xa4, 0x92, 0x7b, 0xf2, 0xbf, + 0xda, 0x99, 0x5c, 0xe0, 0xde, 0xe8, 0xa9, 0x95, 0xae, 0x5b, 0x7c, 0x14, 0x21, 0x76, 0xf6, 0xff, + 0xd3, 0x9b, 0x12, 0xf7, 0xac, 0x7f, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x2a, 0x8b, 0x94, 0xa0, + 0x06, 0x00, 0x00, +} + +func (m *NAVBand) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVBand) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVBand) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UpperBound != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.UpperBound)) + i-- + dAtA[i] = 0x10 + } + if m.LowerBound != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.LowerBound)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *NAVConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CircuitBreakerThreshold != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.CircuitBreakerThreshold)) + i-- + dAtA[i] = 0x28 + } + if m.MaxNavDeviation != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.MaxNavDeviation)) + i-- + dAtA[i] = 0x20 + } + if m.MinNavUpdateInterval != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.MinNavUpdateInterval)) + i-- + dAtA[i] = 0x18 + } + if len(m.WithdrawalBands) > 0 { + for iNdEx := len(m.WithdrawalBands) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WithdrawalBands[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.DepositBands) > 0 { + for iNdEx := len(m.DepositBands) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DepositBands[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NAVInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CircuitBreakerActive { + i-- + if m.CircuitBreakerActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.ChangeBps != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.ChangeBps)) + i-- + dAtA[i] = 0x20 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintNav(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x1a + { + size := m.PreviousNav.Size() + i -= size + if _, err := m.PreviousNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.CurrentNav.Size() + i -= size + if _, err := m.CurrentNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NAVUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintNav(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x12 + { + size := m.NewNav.Size() + i -= size + if _, err := m.NewNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PricingInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PricingInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PricingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EffectiveFeeRate != 0 { + i = encodeVarintNav(dAtA, i, uint64(m.EffectiveFeeRate)) + i-- + dAtA[i] = 0x18 + } + if m.AppliedBand != nil { + { + size, err := m.AppliedBand.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size := m.YieldRate.Size() + i -= size + if _, err := m.YieldRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *LossEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LossEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LossEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintNav(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x22 + { + size := m.NewNav.Size() + i -= size + if _, err := m.NewNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PreviousNav.Size() + i -= size + if _, err := m.PreviousNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.LossAmount.Size() + i -= size + if _, err := m.LossAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNav(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintNav(dAtA []byte, offset int, v uint64) int { + offset -= sovNav(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NAVBand) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LowerBound != 0 { + n += 1 + sovNav(uint64(m.LowerBound)) + } + if m.UpperBound != 0 { + n += 1 + sovNav(uint64(m.UpperBound)) + } + return n +} + +func (m *NAVConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DepositBands) > 0 { + for _, e := range m.DepositBands { + l = e.Size() + n += 1 + l + sovNav(uint64(l)) + } + } + if len(m.WithdrawalBands) > 0 { + for _, e := range m.WithdrawalBands { + l = e.Size() + n += 1 + l + sovNav(uint64(l)) + } + } + if m.MinNavUpdateInterval != 0 { + n += 1 + sovNav(uint64(m.MinNavUpdateInterval)) + } + if m.MaxNavDeviation != 0 { + n += 1 + sovNav(uint64(m.MaxNavDeviation)) + } + if m.CircuitBreakerThreshold != 0 { + n += 1 + sovNav(uint64(m.CircuitBreakerThreshold)) + } + return n +} + +func (m *NAVInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CurrentNav.Size() + n += 1 + l + sovNav(uint64(l)) + l = m.PreviousNav.Size() + n += 1 + l + sovNav(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate) + n += 1 + l + sovNav(uint64(l)) + if m.ChangeBps != 0 { + n += 1 + sovNav(uint64(m.ChangeBps)) + } + if m.CircuitBreakerActive { + n += 2 + } + return n +} + +func (m *NAVUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.NewNav.Size() + n += 1 + l + sovNav(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovNav(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovNav(uint64(m.BlockHeight)) + } + return n +} + +func (m *PricingInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.YieldRate.Size() + n += 1 + l + sovNav(uint64(l)) + if m.AppliedBand != nil { + l = m.AppliedBand.Size() + n += 1 + l + sovNav(uint64(l)) + } + if m.EffectiveFeeRate != 0 { + n += 1 + sovNav(uint64(m.EffectiveFeeRate)) + } + return n +} + +func (m *LossEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.LossAmount.Size() + n += 1 + l + sovNav(uint64(l)) + l = m.PreviousNav.Size() + n += 1 + l + sovNav(uint64(l)) + l = m.NewNav.Size() + n += 1 + l + sovNav(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovNav(uint64(l)) + return n +} + +func sovNav(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNav(x uint64) (n int) { + return sovNav(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NAVBand) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVBand: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVBand: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LowerBound", wireType) + } + m.LowerBound = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LowerBound |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpperBound", wireType) + } + m.UpperBound = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpperBound |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNav(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNav + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NAVConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositBands", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DepositBands = append(m.DepositBands, &NAVBand{}) + if err := m.DepositBands[len(m.DepositBands)-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 WithdrawalBands", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithdrawalBands = append(m.WithdrawalBands, &NAVBand{}) + if err := m.WithdrawalBands[len(m.WithdrawalBands)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNavUpdateInterval", wireType) + } + m.MinNavUpdateInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNavUpdateInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNavDeviation", wireType) + } + m.MaxNavDeviation = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxNavDeviation |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerThreshold", wireType) + } + m.CircuitBreakerThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CircuitBreakerThreshold |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNav(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNav + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NAVInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CurrentNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastUpdate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + m.ChangeBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CircuitBreakerActive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNav(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNav + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NAVUpdate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVUpdate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNav(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNav + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PricingInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PricingInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PricingInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppliedBand", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AppliedBand == nil { + m.AppliedBand = &NAVBand{} + } + if err := m.AppliedBand.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveFeeRate", wireType) + } + m.EffectiveFeeRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EffectiveFeeRate |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNav(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNav + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LossEvent) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LossEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LossEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LossAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LossAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNav + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNav + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNav + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNav(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNav + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNav(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, ErrIntOverflowNav + } + 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, ErrIntOverflowNav + } + 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, ErrIntOverflowNav + } + 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, ErrInvalidLengthNav + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNav + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNav + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNav = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNav = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNav = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/vaults/v2/nav_payload.go b/types/vaults/v2/nav_payload.go new file mode 100644 index 00000000..dc9c58de --- /dev/null +++ b/types/vaults/v2/nav_payload.go @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: BUSL-1.1 +// +// Copyright (C) 2025, NASD Inc. All rights reserved. +// Use of this software is governed by the Business Source License included +// in the LICENSE file of this repository and at www.mariadb.com/bsl11. +// +// ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY +// TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER +// VERSIONS OF THE LICENSED WORK. +// +// THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF +// LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF +// LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE). +// +// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +// TITLE. + +package v2 + +import ( + "encoding/binary" + "fmt" + "math/big" + "time" + + "cosmossdk.io/math" +) + +const ( + navPayloadSize = 105 + navPayloadWithAck = 113 + navUpdateMessageType = 0x01 + navDecimalPrecision = int64(1_000_000_000_000_000_000) // 1e18 precision +) + +// NAVUpdatePayload represents the decoded NAV oracle update carried inside a +// Hyperlane message body. +type NAVUpdatePayload struct { + MessageType uint8 + PositionID uint64 + SharePrice math.LegacyDec + SharesHeld math.Int + Timestamp time.Time + InflightAckID uint64 +} + +// ParseNAVPayload decodes the fixed-length NAV oracle payload into a strongly +// typed representation. All numeric values are expected to be big-endian +// encoded. +func ParseNAVPayload(body []byte) (NAVUpdatePayload, error) { + if len(body) != navPayloadSize && len(body) != navPayloadWithAck { + return NAVUpdatePayload{}, fmt.Errorf("invalid NAV payload size: expected %d or %d, got %d", navPayloadSize, navPayloadWithAck, len(body)) + } + + if body[0] != navUpdateMessageType { + return NAVUpdatePayload{}, fmt.Errorf("invalid NAV payload message type 0x%02x", body[0]) + } + + positionBig := new(big.Int).SetBytes(body[1:33]) + if !positionBig.IsUint64() { + return NAVUpdatePayload{}, fmt.Errorf("position identifier exceeds uint64 range") + } + + sharePriceBig := new(big.Int).SetBytes(body[33:65]) + sharesHeldBig := new(big.Int).SetBytes(body[65:97]) + timestamp := int64(binary.BigEndian.Uint64(body[97:105])) + var ackID uint64 + if len(body) == navPayloadWithAck { + ackID = binary.BigEndian.Uint64(body[105:113]) + } + + scale := math.NewInt(navDecimalPrecision) + sharePrice := math.LegacyNewDecFromBigInt(sharePriceBig).QuoInt(scale) + sharesHeld := math.NewIntFromBigInt(sharesHeldBig) + + return NAVUpdatePayload{ + MessageType: body[0], + PositionID: positionBig.Uint64(), + SharePrice: sharePrice, + SharesHeld: sharesHeld, + Timestamp: time.Unix(timestamp, 0).UTC(), + InflightAckID: ackID, + }, nil +} diff --git a/types/vaults/v2/oracle.pb.go b/types/vaults/v2/oracle.pb.go new file mode 100644 index 00000000..440aad76 --- /dev/null +++ b/types/vaults/v2/oracle.pb.go @@ -0,0 +1,6346 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/oracle.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + github_com_bcp_innovations_hyperlane_cosmos_util "github.com/bcp-innovations/hyperlane-cosmos/util" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// StalenessLevel represents the freshness of oracle data +type StalenessLevel int32 + +const ( + // Data is fresh + STALENESS_LEVEL_FRESH StalenessLevel = 0 + // Data is stale + STALENESS_LEVEL_STALE StalenessLevel = 1 + // Data is in warning threshold + STALENESS_LEVEL_WARNING StalenessLevel = 2 + // Data is in critical threshold + STALENESS_LEVEL_CRITICAL StalenessLevel = 3 +) + +var StalenessLevel_name = map[int32]string{ + 0: "STALENESS_LEVEL_FRESH", + 1: "STALENESS_LEVEL_STALE", + 2: "STALENESS_LEVEL_WARNING", + 3: "STALENESS_LEVEL_CRITICAL", +} + +var StalenessLevel_value = map[string]int32{ + "STALENESS_LEVEL_FRESH": 0, + "STALENESS_LEVEL_STALE": 1, + "STALENESS_LEVEL_WARNING": 2, + "STALENESS_LEVEL_CRITICAL": 3, +} + +func (x StalenessLevel) String() string { + return proto.EnumName(StalenessLevel_name, int32(x)) +} + +func (StalenessLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{0} +} + +// RemotePosition represents a position tracked by an oracle +type RemotePositionOracle struct { + // Unique position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Chain ID where the position exists + ChainId uint32 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Oracle contract address on the remote chain + OracleAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"oracle_address"` + // Vault address holding this position + VaultAddress string `protobuf:"bytes,4,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + // Number of shares held + SharesHeld cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=shares_held,json=sharesHeld,proto3,customtype=cosmossdk.io/math.Int" json:"shares_held"` + // Current share price + SharePrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=share_price,json=sharePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"share_price"` + // Last update timestamp + LastUpdate time.Time `protobuf:"bytes,7,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"` +} + +func (m *RemotePositionOracle) Reset() { *m = RemotePositionOracle{} } +func (m *RemotePositionOracle) String() string { return proto.CompactTextString(m) } +func (*RemotePositionOracle) ProtoMessage() {} +func (*RemotePositionOracle) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{0} +} +func (m *RemotePositionOracle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemotePositionOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemotePositionOracle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemotePositionOracle) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemotePositionOracle.Merge(m, src) +} +func (m *RemotePositionOracle) XXX_Size() int { + return m.Size() +} +func (m *RemotePositionOracle) XXX_DiscardUnknown() { + xxx_messageInfo_RemotePositionOracle.DiscardUnknown(m) +} + +var xxx_messageInfo_RemotePositionOracle proto.InternalMessageInfo + +func (m *RemotePositionOracle) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *RemotePositionOracle) GetChainId() uint32 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *RemotePositionOracle) GetVaultAddress() string { + if m != nil { + return m.VaultAddress + } + return "" +} + +func (m *RemotePositionOracle) GetLastUpdate() time.Time { + if m != nil { + return m.LastUpdate + } + return time.Time{} +} + +// OracleMapping defines the mapping between an oracle and its position +type OracleMapping struct { + // Oracle contract address + OracleAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,1,opt,name=oracle_address,json=oracleAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"oracle_address"` + // Source chain ID + ChainId uint32 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Position identifier this oracle reports for + PositionId uint64 `protobuf:"varint,3,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` +} + +func (m *OracleMapping) Reset() { *m = OracleMapping{} } +func (m *OracleMapping) String() string { return proto.CompactTextString(m) } +func (*OracleMapping) ProtoMessage() {} +func (*OracleMapping) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{1} +} +func (m *OracleMapping) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OracleMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OracleMapping.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OracleMapping) XXX_Merge(src proto.Message) { + xxx_messageInfo_OracleMapping.Merge(m, src) +} +func (m *OracleMapping) XXX_Size() int { + return m.Size() +} +func (m *OracleMapping) XXX_DiscardUnknown() { + xxx_messageInfo_OracleMapping.DiscardUnknown(m) +} + +var xxx_messageInfo_OracleMapping proto.InternalMessageInfo + +func (m *OracleMapping) GetChainId() uint32 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *OracleMapping) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +// EnrolledOracleRouter represents an enrolled oracle router +type EnrolledOracleRouter struct { + // Position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,2,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Oracle contract address + OracleAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"oracle_address"` +} + +func (m *EnrolledOracleRouter) Reset() { *m = EnrolledOracleRouter{} } +func (m *EnrolledOracleRouter) String() string { return proto.CompactTextString(m) } +func (*EnrolledOracleRouter) ProtoMessage() {} +func (*EnrolledOracleRouter) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{2} +} +func (m *EnrolledOracleRouter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EnrolledOracleRouter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EnrolledOracleRouter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EnrolledOracleRouter) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnrolledOracleRouter.Merge(m, src) +} +func (m *EnrolledOracleRouter) XXX_Size() int { + return m.Size() +} +func (m *EnrolledOracleRouter) XXX_DiscardUnknown() { + xxx_messageInfo_EnrolledOracleRouter.DiscardUnknown(m) +} + +var xxx_messageInfo_EnrolledOracleRouter proto.InternalMessageInfo + +func (m *EnrolledOracleRouter) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *EnrolledOracleRouter) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +// EnrolledOracle represents a registered oracle +type EnrolledOracle struct { + // Position identifier + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,2,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Oracle address on remote chain + OracleAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"oracle_address"` + // Maximum staleness (seconds) + MaxStaleness int64 `protobuf:"varint,4,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Registration timestamp + RegisteredAt time.Time `protobuf:"bytes,5,opt,name=registered_at,json=registeredAt,proto3,stdtime" json:"registered_at"` + // Whether the oracle is active + Active bool `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty"` +} + +func (m *EnrolledOracle) Reset() { *m = EnrolledOracle{} } +func (m *EnrolledOracle) String() string { return proto.CompactTextString(m) } +func (*EnrolledOracle) ProtoMessage() {} +func (*EnrolledOracle) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{3} +} +func (m *EnrolledOracle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EnrolledOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EnrolledOracle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EnrolledOracle) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnrolledOracle.Merge(m, src) +} +func (m *EnrolledOracle) XXX_Size() int { + return m.Size() +} +func (m *EnrolledOracle) XXX_DiscardUnknown() { + xxx_messageInfo_EnrolledOracle.DiscardUnknown(m) +} + +var xxx_messageInfo_EnrolledOracle proto.InternalMessageInfo + +func (m *EnrolledOracle) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *EnrolledOracle) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *EnrolledOracle) GetMaxStaleness() int64 { + if m != nil { + return m.MaxStaleness + } + return 0 +} + +func (m *EnrolledOracle) GetRegisteredAt() time.Time { + if m != nil { + return m.RegisteredAt + } + return time.Time{} +} + +func (m *EnrolledOracle) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +// StalenessConfig defines staleness thresholds +type StalenessConfig struct { + // Warning threshold in seconds + WarningThreshold int64 `protobuf:"varint,1,opt,name=warning_threshold,json=warningThreshold,proto3" json:"warning_threshold,omitempty"` + // Critical threshold in seconds + CriticalThreshold int64 `protobuf:"varint,2,opt,name=critical_threshold,json=criticalThreshold,proto3" json:"critical_threshold,omitempty"` + // Maximum allowed staleness before fallback + MaxStaleness int64 `protobuf:"varint,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` +} + +func (m *StalenessConfig) Reset() { *m = StalenessConfig{} } +func (m *StalenessConfig) String() string { return proto.CompactTextString(m) } +func (*StalenessConfig) ProtoMessage() {} +func (*StalenessConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{4} +} +func (m *StalenessConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StalenessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StalenessConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StalenessConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_StalenessConfig.Merge(m, src) +} +func (m *StalenessConfig) XXX_Size() int { + return m.Size() +} +func (m *StalenessConfig) XXX_DiscardUnknown() { + xxx_messageInfo_StalenessConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_StalenessConfig proto.InternalMessageInfo + +func (m *StalenessConfig) GetWarningThreshold() int64 { + if m != nil { + return m.WarningThreshold + } + return 0 +} + +func (m *StalenessConfig) GetCriticalThreshold() int64 { + if m != nil { + return m.CriticalThreshold + } + return 0 +} + +func (m *StalenessConfig) GetMaxStaleness() int64 { + if m != nil { + return m.MaxStaleness + } + return 0 +} + +// NAVPayload represents the oracle update payload (105 bytes when encoded) +type NAVPayload struct { + // Message type (0x01 for NAV update) + MessageType uint32 `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` + // Position identifier (32 bytes) + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Share price (32 bytes, 1e18 precision) + SharePrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=share_price,json=sharePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"share_price"` + // Shares held (32 bytes, 1e18 precision) + SharesHeld cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=shares_held,json=sharesHeld,proto3,customtype=cosmossdk.io/math.Int" json:"shares_held"` + // Unix timestamp (8 bytes) + Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *NAVPayload) Reset() { *m = NAVPayload{} } +func (m *NAVPayload) String() string { return proto.CompactTextString(m) } +func (*NAVPayload) ProtoMessage() {} +func (*NAVPayload) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{5} +} +func (m *NAVPayload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVPayload.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVPayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVPayload.Merge(m, src) +} +func (m *NAVPayload) XXX_Size() int { + return m.Size() +} +func (m *NAVPayload) XXX_DiscardUnknown() { + xxx_messageInfo_NAVPayload.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVPayload proto.InternalMessageInfo + +func (m *NAVPayload) GetMessageType() uint32 { + if m != nil { + return m.MessageType + } + return 0 +} + +func (m *NAVPayload) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *NAVPayload) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +// FallbackStrategy defines the fallback strategy for stale data +type FallbackStrategy struct { + // Whether to use last known good value + UseLastKnownGood bool `protobuf:"varint,1,opt,name=use_last_known_good,json=useLastKnownGood,proto3" json:"use_last_known_good,omitempty"` + // Maximum cache age allowed (seconds) + MaxCacheAge int64 `protobuf:"varint,2,opt,name=max_cache_age,json=maxCacheAge,proto3" json:"max_cache_age,omitempty"` + // Alert threshold for notifications (seconds) + AlertThreshold int64 `protobuf:"varint,3,opt,name=alert_threshold,json=alertThreshold,proto3" json:"alert_threshold,omitempty"` +} + +func (m *FallbackStrategy) Reset() { *m = FallbackStrategy{} } +func (m *FallbackStrategy) String() string { return proto.CompactTextString(m) } +func (*FallbackStrategy) ProtoMessage() {} +func (*FallbackStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{6} +} +func (m *FallbackStrategy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FallbackStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FallbackStrategy.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FallbackStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_FallbackStrategy.Merge(m, src) +} +func (m *FallbackStrategy) XXX_Size() int { + return m.Size() +} +func (m *FallbackStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_FallbackStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_FallbackStrategy proto.InternalMessageInfo + +func (m *FallbackStrategy) GetUseLastKnownGood() bool { + if m != nil { + return m.UseLastKnownGood + } + return false +} + +func (m *FallbackStrategy) GetMaxCacheAge() int64 { + if m != nil { + return m.MaxCacheAge + } + return 0 +} + +func (m *FallbackStrategy) GetAlertThreshold() int64 { + if m != nil { + return m.AlertThreshold + } + return 0 +} + +// OracleGovernanceParams defines governance parameters for oracles +type OracleGovernanceParams struct { + // Maximum update interval allowed (seconds) + MaxUpdateInterval int64 `protobuf:"varint,1,opt,name=max_update_interval,json=maxUpdateInterval,proto3" json:"max_update_interval,omitempty"` + // Minimum update interval to prevent spam (seconds) + MinUpdateInterval int64 `protobuf:"varint,2,opt,name=min_update_interval,json=minUpdateInterval,proto3" json:"min_update_interval,omitempty"` + // Maximum price deviation per update (basis points) + MaxPriceDeviationBps int32 `protobuf:"varint,3,opt,name=max_price_deviation_bps,json=maxPriceDeviationBps,proto3" json:"max_price_deviation_bps,omitempty"` + // Default staleness config + DefaultStaleness *StalenessConfig `protobuf:"bytes,4,opt,name=default_staleness,json=defaultStaleness,proto3" json:"default_staleness,omitempty"` + // Default fallback strategy + DefaultFallback *FallbackStrategy `protobuf:"bytes,5,opt,name=default_fallback,json=defaultFallback,proto3" json:"default_fallback,omitempty"` +} + +func (m *OracleGovernanceParams) Reset() { *m = OracleGovernanceParams{} } +func (m *OracleGovernanceParams) String() string { return proto.CompactTextString(m) } +func (*OracleGovernanceParams) ProtoMessage() {} +func (*OracleGovernanceParams) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{7} +} +func (m *OracleGovernanceParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OracleGovernanceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OracleGovernanceParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OracleGovernanceParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_OracleGovernanceParams.Merge(m, src) +} +func (m *OracleGovernanceParams) XXX_Size() int { + return m.Size() +} +func (m *OracleGovernanceParams) XXX_DiscardUnknown() { + xxx_messageInfo_OracleGovernanceParams.DiscardUnknown(m) +} + +var xxx_messageInfo_OracleGovernanceParams proto.InternalMessageInfo + +func (m *OracleGovernanceParams) GetMaxUpdateInterval() int64 { + if m != nil { + return m.MaxUpdateInterval + } + return 0 +} + +func (m *OracleGovernanceParams) GetMinUpdateInterval() int64 { + if m != nil { + return m.MinUpdateInterval + } + return 0 +} + +func (m *OracleGovernanceParams) GetMaxPriceDeviationBps() int32 { + if m != nil { + return m.MaxPriceDeviationBps + } + return 0 +} + +func (m *OracleGovernanceParams) GetDefaultStaleness() *StalenessConfig { + if m != nil { + return m.DefaultStaleness + } + return nil +} + +func (m *OracleGovernanceParams) GetDefaultFallback() *FallbackStrategy { + if m != nil { + return m.DefaultFallback + } + return nil +} + +// AlertConfig defines alert configuration +type AlertConfig struct { + // Stale data threshold (seconds) + StaleDataThreshold int64 `protobuf:"varint,1,opt,name=stale_data_threshold,json=staleDataThreshold,proto3" json:"stale_data_threshold,omitempty"` + // Price deviation threshold (basis points) + PriceDeviationThreshold int32 `protobuf:"varint,2,opt,name=price_deviation_threshold,json=priceDeviationThreshold,proto3" json:"price_deviation_threshold,omitempty"` + // Failed update threshold (count) + FailedUpdateThreshold int32 `protobuf:"varint,3,opt,name=failed_update_threshold,json=failedUpdateThreshold,proto3" json:"failed_update_threshold,omitempty"` +} + +func (m *AlertConfig) Reset() { *m = AlertConfig{} } +func (m *AlertConfig) String() string { return proto.CompactTextString(m) } +func (*AlertConfig) ProtoMessage() {} +func (*AlertConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{8} +} +func (m *AlertConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlertConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AlertConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AlertConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlertConfig.Merge(m, src) +} +func (m *AlertConfig) XXX_Size() int { + return m.Size() +} +func (m *AlertConfig) XXX_DiscardUnknown() { + xxx_messageInfo_AlertConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_AlertConfig proto.InternalMessageInfo + +func (m *AlertConfig) GetStaleDataThreshold() int64 { + if m != nil { + return m.StaleDataThreshold + } + return 0 +} + +func (m *AlertConfig) GetPriceDeviationThreshold() int32 { + if m != nil { + return m.PriceDeviationThreshold + } + return 0 +} + +func (m *AlertConfig) GetFailedUpdateThreshold() int32 { + if m != nil { + return m.FailedUpdateThreshold + } + return 0 +} + +// OracleStatus represents the current status of an oracle +type OracleStatus struct { + // Oracle identifier + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Position ID + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Last successful update + LastSuccess time.Time `protobuf:"bytes,3,opt,name=last_success,json=lastSuccess,proto3,stdtime" json:"last_success"` + // Number of consecutive failures + ConsecutiveFailures int32 `protobuf:"varint,4,opt,name=consecutive_failures,json=consecutiveFailures,proto3" json:"consecutive_failures,omitempty"` + // Whether oracle is healthy + IsHealthy bool `protobuf:"varint,5,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` + // Current staleness level + StalenessLevel StalenessLevel `protobuf:"varint,6,opt,name=staleness_level,json=stalenessLevel,proto3,enum=noble.dollar.vaults.v2.StalenessLevel" json:"staleness_level,omitempty"` + // Last error message if any + LastError string `protobuf:"bytes,7,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` +} + +func (m *OracleStatus) Reset() { *m = OracleStatus{} } +func (m *OracleStatus) String() string { return proto.CompactTextString(m) } +func (*OracleStatus) ProtoMessage() {} +func (*OracleStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{9} +} +func (m *OracleStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OracleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OracleStatus.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OracleStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_OracleStatus.Merge(m, src) +} +func (m *OracleStatus) XXX_Size() int { + return m.Size() +} +func (m *OracleStatus) XXX_DiscardUnknown() { + xxx_messageInfo_OracleStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_OracleStatus proto.InternalMessageInfo + +func (m *OracleStatus) GetOracleId() string { + if m != nil { + return m.OracleId + } + return "" +} + +func (m *OracleStatus) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *OracleStatus) GetLastSuccess() time.Time { + if m != nil { + return m.LastSuccess + } + return time.Time{} +} + +func (m *OracleStatus) GetConsecutiveFailures() int32 { + if m != nil { + return m.ConsecutiveFailures + } + return 0 +} + +func (m *OracleStatus) GetIsHealthy() bool { + if m != nil { + return m.IsHealthy + } + return false +} + +func (m *OracleStatus) GetStalenessLevel() StalenessLevel { + if m != nil { + return m.StalenessLevel + } + return STALENESS_LEVEL_FRESH +} + +func (m *OracleStatus) GetLastError() string { + if m != nil { + return m.LastError + } + return "" +} + +// CrossChainOracleMessage represents an oracle update delivered by cross-chain messaging +// This is not a Msg type as it's handled internally when messages are delivered +type CrossChainOracleMessage struct { + // Mailbox/channel identifier + MailboxId []byte `protobuf:"bytes,1,opt,name=mailbox_id,json=mailboxId,proto3" json:"mailbox_id,omitempty"` + // Source chain identifier + SourceChain string `protobuf:"bytes,2,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Sender address on origin chain + Sender []byte `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` + // Hyperlane metadata for verification + Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // NAV oracle update payload (105 bytes) + Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` + // Timestamp when received + ReceivedAt time.Time `protobuf:"bytes,6,opt,name=received_at,json=receivedAt,proto3,stdtime" json:"received_at"` + // Provider type (HYPERLANE, IBC) + ProviderType ProviderType `protobuf:"varint,7,opt,name=provider_type,json=providerType,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"provider_type,omitempty"` +} + +func (m *CrossChainOracleMessage) Reset() { *m = CrossChainOracleMessage{} } +func (m *CrossChainOracleMessage) String() string { return proto.CompactTextString(m) } +func (*CrossChainOracleMessage) ProtoMessage() {} +func (*CrossChainOracleMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{10} +} +func (m *CrossChainOracleMessage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossChainOracleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossChainOracleMessage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossChainOracleMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossChainOracleMessage.Merge(m, src) +} +func (m *CrossChainOracleMessage) XXX_Size() int { + return m.Size() +} +func (m *CrossChainOracleMessage) XXX_DiscardUnknown() { + xxx_messageInfo_CrossChainOracleMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossChainOracleMessage proto.InternalMessageInfo + +func (m *CrossChainOracleMessage) GetMailboxId() []byte { + if m != nil { + return m.MailboxId + } + return nil +} + +func (m *CrossChainOracleMessage) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *CrossChainOracleMessage) GetSender() []byte { + if m != nil { + return m.Sender + } + return nil +} + +func (m *CrossChainOracleMessage) GetMetadata() []byte { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *CrossChainOracleMessage) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *CrossChainOracleMessage) GetReceivedAt() time.Time { + if m != nil { + return m.ReceivedAt + } + return time.Time{} +} + +func (m *CrossChainOracleMessage) GetProviderType() ProviderType { + if m != nil { + return m.ProviderType + } + return PROVIDER_TYPE_HYPERLANE +} + +// OracleUpdateResult represents the result of processing an oracle update +type OracleUpdateResult struct { + // Position ID that was updated + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // New share price + NewSharePrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=new_share_price,json=newSharePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"new_share_price"` + // New shares held + NewShares cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=new_shares,json=newShares,proto3,customtype=cosmossdk.io/math.Int" json:"new_shares"` + // Calculated position value + PositionValue cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=position_value,json=positionValue,proto3,customtype=cosmossdk.io/math.Int" json:"position_value"` + // Updated total NAV + UpdatedNav cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=updated_nav,json=updatedNav,proto3,customtype=cosmossdk.io/math.Int" json:"updated_nav"` +} + +func (m *OracleUpdateResult) Reset() { *m = OracleUpdateResult{} } +func (m *OracleUpdateResult) String() string { return proto.CompactTextString(m) } +func (*OracleUpdateResult) ProtoMessage() {} +func (*OracleUpdateResult) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{11} +} +func (m *OracleUpdateResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OracleUpdateResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OracleUpdateResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OracleUpdateResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_OracleUpdateResult.Merge(m, src) +} +func (m *OracleUpdateResult) XXX_Size() int { + return m.Size() +} +func (m *OracleUpdateResult) XXX_DiscardUnknown() { + xxx_messageInfo_OracleUpdateResult.DiscardUnknown(m) +} + +var xxx_messageInfo_OracleUpdateResult proto.InternalMessageInfo + +func (m *OracleUpdateResult) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +// MsgRegisterOracle registers a new oracle for a position +type MsgRegisterOracle struct { + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Position identifier to track + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Oracle contract address on remote chain + OracleAddress github_com_bcp_innovations_hyperlane_cosmos_util.HexAddress `protobuf:"bytes,3,opt,name=oracle_address,json=oracleAddress,proto3,customtype=github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress" json:"oracle_address"` + // Source chain identifier + SourceChain string `protobuf:"bytes,4,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + // Maximum staleness allowed (seconds) + MaxStaleness int64 `protobuf:"varint,5,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Provider type (HYPERLANE, IBC) + ProviderType ProviderType `protobuf:"varint,6,opt,name=provider_type,json=providerType,proto3,enum=noble.dollar.vaults.v2.ProviderType" json:"provider_type,omitempty"` + // Origin identifier (mailbox for Hyperlane, channel for IBC) + OriginIdentifier string `protobuf:"bytes,7,opt,name=origin_identifier,json=originIdentifier,proto3" json:"origin_identifier,omitempty"` +} + +func (m *MsgRegisterOracle) Reset() { *m = MsgRegisterOracle{} } +func (m *MsgRegisterOracle) String() string { return proto.CompactTextString(m) } +func (*MsgRegisterOracle) ProtoMessage() {} +func (*MsgRegisterOracle) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{12} +} +func (m *MsgRegisterOracle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRegisterOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRegisterOracle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRegisterOracle) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRegisterOracle.Merge(m, src) +} +func (m *MsgRegisterOracle) XXX_Size() int { + return m.Size() +} +func (m *MsgRegisterOracle) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRegisterOracle.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRegisterOracle proto.InternalMessageInfo + +// MsgRegisterOracleResponse confirms oracle registration +type MsgRegisterOracleResponse struct { + // Oracle ID assigned + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Position ID + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Registration timestamp + RegisteredAt time.Time `protobuf:"bytes,3,opt,name=registered_at,json=registeredAt,proto3,stdtime" json:"registered_at"` +} + +func (m *MsgRegisterOracleResponse) Reset() { *m = MsgRegisterOracleResponse{} } +func (m *MsgRegisterOracleResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRegisterOracleResponse) ProtoMessage() {} +func (*MsgRegisterOracleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{13} +} +func (m *MsgRegisterOracleResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRegisterOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRegisterOracleResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRegisterOracleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRegisterOracleResponse.Merge(m, src) +} +func (m *MsgRegisterOracleResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRegisterOracleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRegisterOracleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRegisterOracleResponse proto.InternalMessageInfo + +func (m *MsgRegisterOracleResponse) GetOracleId() string { + if m != nil { + return m.OracleId + } + return "" +} + +func (m *MsgRegisterOracleResponse) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *MsgRegisterOracleResponse) GetRegisteredAt() time.Time { + if m != nil { + return m.RegisteredAt + } + return time.Time{} +} + +// MsgUpdateOracleConfig updates an oracle's configuration +type MsgUpdateOracleConfig struct { + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Oracle ID to update + OracleId string `protobuf:"bytes,2,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // New maximum staleness (0 to keep current) + MaxStaleness int64 `protobuf:"varint,3,opt,name=max_staleness,json=maxStaleness,proto3" json:"max_staleness,omitempty"` + // Whether to activate/deactivate + Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` +} + +func (m *MsgUpdateOracleConfig) Reset() { *m = MsgUpdateOracleConfig{} } +func (m *MsgUpdateOracleConfig) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateOracleConfig) ProtoMessage() {} +func (*MsgUpdateOracleConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{14} +} +func (m *MsgUpdateOracleConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateOracleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateOracleConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateOracleConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateOracleConfig.Merge(m, src) +} +func (m *MsgUpdateOracleConfig) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateOracleConfig) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateOracleConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateOracleConfig proto.InternalMessageInfo + +// MsgUpdateOracleConfigResponse confirms configuration update +type MsgUpdateOracleConfigResponse struct { + // Oracle ID + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Updated configuration + UpdatedConfig *EnrolledOracle `protobuf:"bytes,2,opt,name=updated_config,json=updatedConfig,proto3" json:"updated_config,omitempty"` +} + +func (m *MsgUpdateOracleConfigResponse) Reset() { *m = MsgUpdateOracleConfigResponse{} } +func (m *MsgUpdateOracleConfigResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateOracleConfigResponse) ProtoMessage() {} +func (*MsgUpdateOracleConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{15} +} +func (m *MsgUpdateOracleConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateOracleConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateOracleConfigResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateOracleConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateOracleConfigResponse.Merge(m, src) +} +func (m *MsgUpdateOracleConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateOracleConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateOracleConfigResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateOracleConfigResponse proto.InternalMessageInfo + +func (m *MsgUpdateOracleConfigResponse) GetOracleId() string { + if m != nil { + return m.OracleId + } + return "" +} + +func (m *MsgUpdateOracleConfigResponse) GetUpdatedConfig() *EnrolledOracle { + if m != nil { + return m.UpdatedConfig + } + return nil +} + +// MsgRemoveOracle removes an oracle from the system +type MsgRemoveOracle struct { + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Oracle ID to remove + OracleId string `protobuf:"bytes,2,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Reason for removal + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgRemoveOracle) Reset() { *m = MsgRemoveOracle{} } +func (m *MsgRemoveOracle) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveOracle) ProtoMessage() {} +func (*MsgRemoveOracle) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{16} +} +func (m *MsgRemoveOracle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveOracle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRemoveOracle) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveOracle.Merge(m, src) +} +func (m *MsgRemoveOracle) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveOracle) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveOracle.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoveOracle proto.InternalMessageInfo + +// MsgRemoveOracleResponse confirms oracle removal +type MsgRemoveOracleResponse struct { + // Oracle ID removed + OracleId string `protobuf:"bytes,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + // Position ID affected + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Removal timestamp + RemovedAt time.Time `protobuf:"bytes,3,opt,name=removed_at,json=removedAt,proto3,stdtime" json:"removed_at"` +} + +func (m *MsgRemoveOracleResponse) Reset() { *m = MsgRemoveOracleResponse{} } +func (m *MsgRemoveOracleResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveOracleResponse) ProtoMessage() {} +func (*MsgRemoveOracleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{17} +} +func (m *MsgRemoveOracleResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveOracleResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRemoveOracleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveOracleResponse.Merge(m, src) +} +func (m *MsgRemoveOracleResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveOracleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveOracleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoveOracleResponse proto.InternalMessageInfo + +func (m *MsgRemoveOracleResponse) GetOracleId() string { + if m != nil { + return m.OracleId + } + return "" +} + +func (m *MsgRemoveOracleResponse) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *MsgRemoveOracleResponse) GetRemovedAt() time.Time { + if m != nil { + return m.RemovedAt + } + return time.Time{} +} + +// MsgUpdateOracleParams updates global oracle parameters +type MsgUpdateOracleParams struct { + // Authority (governance module account) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Updated governance parameters + Params OracleGovernanceParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateOracleParams) Reset() { *m = MsgUpdateOracleParams{} } +func (m *MsgUpdateOracleParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateOracleParams) ProtoMessage() {} +func (*MsgUpdateOracleParams) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{18} +} +func (m *MsgUpdateOracleParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateOracleParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateOracleParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateOracleParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateOracleParams.Merge(m, src) +} +func (m *MsgUpdateOracleParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateOracleParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateOracleParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateOracleParams proto.InternalMessageInfo + +// MsgUpdateOracleParamsResponse confirms parameter update +type MsgUpdateOracleParamsResponse struct { + // Previous parameters + PreviousParams OracleGovernanceParams `protobuf:"bytes,1,opt,name=previous_params,json=previousParams,proto3" json:"previous_params"` + // New parameters + NewParams OracleGovernanceParams `protobuf:"bytes,2,opt,name=new_params,json=newParams,proto3" json:"new_params"` +} + +func (m *MsgUpdateOracleParamsResponse) Reset() { *m = MsgUpdateOracleParamsResponse{} } +func (m *MsgUpdateOracleParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateOracleParamsResponse) ProtoMessage() {} +func (*MsgUpdateOracleParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0e470ac00e47b462, []int{19} +} +func (m *MsgUpdateOracleParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateOracleParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateOracleParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateOracleParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateOracleParamsResponse.Merge(m, src) +} +func (m *MsgUpdateOracleParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateOracleParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateOracleParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateOracleParamsResponse proto.InternalMessageInfo + +func (m *MsgUpdateOracleParamsResponse) GetPreviousParams() OracleGovernanceParams { + if m != nil { + return m.PreviousParams + } + return OracleGovernanceParams{} +} + +func (m *MsgUpdateOracleParamsResponse) GetNewParams() OracleGovernanceParams { + if m != nil { + return m.NewParams + } + return OracleGovernanceParams{} +} + +func init() { + proto.RegisterEnum("noble.dollar.vaults.v2.StalenessLevel", StalenessLevel_name, StalenessLevel_value) + proto.RegisterType((*RemotePositionOracle)(nil), "noble.dollar.vaults.v2.RemotePositionOracle") + proto.RegisterType((*OracleMapping)(nil), "noble.dollar.vaults.v2.OracleMapping") + proto.RegisterType((*EnrolledOracleRouter)(nil), "noble.dollar.vaults.v2.EnrolledOracleRouter") + proto.RegisterType((*EnrolledOracle)(nil), "noble.dollar.vaults.v2.EnrolledOracle") + proto.RegisterType((*StalenessConfig)(nil), "noble.dollar.vaults.v2.StalenessConfig") + proto.RegisterType((*NAVPayload)(nil), "noble.dollar.vaults.v2.NAVPayload") + proto.RegisterType((*FallbackStrategy)(nil), "noble.dollar.vaults.v2.FallbackStrategy") + proto.RegisterType((*OracleGovernanceParams)(nil), "noble.dollar.vaults.v2.OracleGovernanceParams") + proto.RegisterType((*AlertConfig)(nil), "noble.dollar.vaults.v2.AlertConfig") + proto.RegisterType((*OracleStatus)(nil), "noble.dollar.vaults.v2.OracleStatus") + proto.RegisterType((*CrossChainOracleMessage)(nil), "noble.dollar.vaults.v2.CrossChainOracleMessage") + proto.RegisterType((*OracleUpdateResult)(nil), "noble.dollar.vaults.v2.OracleUpdateResult") + proto.RegisterType((*MsgRegisterOracle)(nil), "noble.dollar.vaults.v2.MsgRegisterOracle") + proto.RegisterType((*MsgRegisterOracleResponse)(nil), "noble.dollar.vaults.v2.MsgRegisterOracleResponse") + proto.RegisterType((*MsgUpdateOracleConfig)(nil), "noble.dollar.vaults.v2.MsgUpdateOracleConfig") + proto.RegisterType((*MsgUpdateOracleConfigResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateOracleConfigResponse") + proto.RegisterType((*MsgRemoveOracle)(nil), "noble.dollar.vaults.v2.MsgRemoveOracle") + proto.RegisterType((*MsgRemoveOracleResponse)(nil), "noble.dollar.vaults.v2.MsgRemoveOracleResponse") + proto.RegisterType((*MsgUpdateOracleParams)(nil), "noble.dollar.vaults.v2.MsgUpdateOracleParams") + proto.RegisterType((*MsgUpdateOracleParamsResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateOracleParamsResponse") +} + +func init() { + proto.RegisterFile("noble/dollar/vaults/v2/oracle.proto", fileDescriptor_0e470ac00e47b462) +} + +var fileDescriptor_0e470ac00e47b462 = []byte{ + // 1811 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xcd, 0x6f, 0x1c, 0x49, + 0x15, 0x77, 0xcf, 0xd8, 0x8e, 0xa7, 0x66, 0x3c, 0x1e, 0x77, 0x1c, 0x7f, 0x65, 0x63, 0x87, 0x0e, + 0x62, 0xad, 0x20, 0xcf, 0xec, 0x7a, 0x45, 0x84, 0x8c, 0x40, 0x1a, 0x3b, 0x4e, 0x32, 0xc2, 0x71, + 0x4c, 0x8d, 0x49, 0x24, 0x24, 0x68, 0x95, 0xbb, 0xcb, 0x3d, 0x4d, 0xba, 0xbb, 0x5a, 0x55, 0xd5, + 0x1d, 0x0f, 0x47, 0x2e, 0xac, 0x40, 0x42, 0xab, 0x3d, 0x22, 0x0e, 0x2b, 0xc1, 0x81, 0x63, 0x24, + 0x56, 0x02, 0x89, 0x3b, 0xca, 0x71, 0xb5, 0x20, 0x40, 0x2b, 0xb1, 0xa0, 0xe4, 0x10, 0xf8, 0x2f, + 0x50, 0x7d, 0xf4, 0x7c, 0xb5, 0xbd, 0x71, 0x9c, 0x10, 0x69, 0x2f, 0xf6, 0xd4, 0x7b, 0xaf, 0x5e, + 0xbd, 0xf7, 0x7e, 0xef, 0xab, 0xc1, 0xb5, 0x88, 0x1c, 0x06, 0xb8, 0xe1, 0x92, 0x20, 0x40, 0xb4, + 0x91, 0xa2, 0x24, 0xe0, 0xac, 0x91, 0x6e, 0x34, 0x08, 0x45, 0x4e, 0x80, 0xeb, 0x31, 0x25, 0x9c, + 0x98, 0xf3, 0x52, 0xa8, 0xae, 0x84, 0xea, 0x4a, 0xa8, 0x9e, 0x6e, 0x2c, 0xcf, 0xa2, 0xd0, 0x8f, + 0x48, 0x43, 0xfe, 0x55, 0xa2, 0xcb, 0x0b, 0x0e, 0x61, 0x21, 0x61, 0x8d, 0x90, 0x79, 0x8d, 0xf4, + 0x5d, 0xf1, 0x4f, 0x33, 0x96, 0x14, 0xc3, 0x96, 0xa7, 0x86, 0x3a, 0x68, 0xd6, 0x9c, 0x47, 0x3c, + 0xa2, 0xe8, 0xe2, 0x97, 0xa6, 0xae, 0x7a, 0x84, 0x78, 0x01, 0x6e, 0xc8, 0xd3, 0x61, 0x72, 0xd4, + 0xe0, 0x7e, 0x88, 0x19, 0x47, 0x61, 0xac, 0x05, 0xd6, 0x4e, 0x31, 0xdd, 0xa1, 0x84, 0x31, 0xdb, + 0xe9, 0x20, 0x3f, 0x52, 0x92, 0xd6, 0xdf, 0x8a, 0x60, 0x0e, 0xe2, 0x90, 0x70, 0xbc, 0x4f, 0x98, + 0xcf, 0x7d, 0x12, 0xdd, 0x93, 0xee, 0x99, 0xab, 0xa0, 0x1c, 0x6b, 0x8a, 0xed, 0xbb, 0x8b, 0xc6, + 0x55, 0x63, 0x6d, 0x1c, 0x82, 0x8c, 0xd4, 0x72, 0xcd, 0x25, 0x30, 0x25, 0x15, 0x09, 0x6e, 0xe1, + 0xaa, 0xb1, 0x36, 0x0d, 0x2f, 0xc8, 0x73, 0xcb, 0x35, 0x7f, 0x0c, 0xaa, 0x2a, 0x48, 0x36, 0x72, + 0x5d, 0x8a, 0x19, 0x5b, 0x2c, 0x5e, 0x35, 0xd6, 0x4a, 0x5b, 0xdb, 0x4f, 0x3e, 0x5f, 0x1d, 0xfb, + 0xec, 0xf3, 0xd5, 0x6f, 0x79, 0x3e, 0xef, 0x24, 0x87, 0x75, 0x87, 0x84, 0x8d, 0x43, 0x27, 0x5e, + 0xf7, 0xa3, 0x88, 0xa4, 0x48, 0xe8, 0x65, 0x8d, 0x4e, 0x37, 0xc6, 0x34, 0x40, 0x11, 0x5e, 0xd7, + 0xe1, 0x4a, 0xb8, 0x1f, 0xd4, 0xef, 0xe0, 0xe3, 0xa6, 0x52, 0x05, 0xa7, 0x95, 0x6a, 0x7d, 0x34, + 0xaf, 0x81, 0x69, 0xe9, 0x5f, 0xef, 0xa9, 0x71, 0xf1, 0x14, 0xac, 0x48, 0x62, 0x26, 0xf4, 0x3d, + 0x50, 0x66, 0x1d, 0x44, 0x31, 0xb3, 0x3b, 0x38, 0x70, 0x17, 0x27, 0xa4, 0x35, 0xef, 0x68, 0x6b, + 0x2e, 0xa9, 0x87, 0x98, 0xfb, 0xb0, 0xee, 0x93, 0x46, 0x88, 0x78, 0xa7, 0xde, 0x8a, 0xf8, 0xa7, + 0x1f, 0xaf, 0x03, 0x0d, 0x45, 0x2b, 0xe2, 0xbf, 0x7b, 0xfe, 0xf8, 0xba, 0x01, 0x81, 0x52, 0x72, + 0x07, 0x07, 0xae, 0xf9, 0x40, 0xab, 0xb4, 0x63, 0xea, 0x3b, 0x78, 0x71, 0x52, 0xaa, 0xbc, 0xa1, + 0x55, 0x5e, 0xce, 0xab, 0xdc, 0xc5, 0x1e, 0x72, 0xba, 0x37, 0xb1, 0x33, 0xa0, 0xf8, 0x26, 0x76, + 0x06, 0x15, 0xef, 0x0b, 0x4d, 0xe6, 0x0e, 0x28, 0x07, 0x88, 0x71, 0x3b, 0x89, 0x5d, 0xc4, 0xf1, + 0xe2, 0x85, 0xab, 0xc6, 0x5a, 0x79, 0x63, 0xb9, 0xae, 0x20, 0xaf, 0x67, 0x90, 0xd7, 0x0f, 0x32, + 0xc8, 0xb7, 0xa6, 0xc4, 0xa3, 0x1f, 0xfc, 0x6b, 0xd5, 0x80, 0x40, 0x5c, 0xfc, 0xbe, 0xbc, 0x67, + 0xfd, 0xc1, 0x00, 0xd3, 0x0a, 0xca, 0xbb, 0x28, 0x8e, 0xfd, 0xc8, 0x3b, 0x01, 0x15, 0xe3, 0xff, + 0x86, 0xca, 0x17, 0x24, 0xc7, 0x48, 0x62, 0x15, 0x47, 0x13, 0xcb, 0xfa, 0xb3, 0x01, 0xe6, 0x76, + 0x22, 0x4a, 0x82, 0x00, 0xbb, 0xca, 0x03, 0x48, 0x12, 0x8e, 0xe9, 0x8b, 0x53, 0xf2, 0x2b, 0xa0, + 0xc2, 0x48, 0x42, 0x1d, 0xac, 0x52, 0x5c, 0xbe, 0x5c, 0x82, 0x65, 0x45, 0xdb, 0x16, 0xa4, 0x37, + 0x99, 0x9a, 0xd6, 0x93, 0x02, 0xa8, 0x0e, 0x3b, 0xf2, 0x65, 0x73, 0x41, 0x54, 0x57, 0x88, 0x8e, + 0x6d, 0xc6, 0x51, 0x80, 0xa3, 0xac, 0xba, 0x8a, 0xb0, 0x12, 0xa2, 0xe3, 0x76, 0x46, 0x33, 0x5b, + 0x60, 0x9a, 0x62, 0xcf, 0x67, 0x1c, 0x53, 0xec, 0xda, 0x88, 0xcb, 0xfa, 0x3a, 0x6b, 0xce, 0x56, + 0xfa, 0x57, 0x9b, 0xdc, 0x9c, 0x07, 0x93, 0xc8, 0xe1, 0x7e, 0xaa, 0x0a, 0x6a, 0x0a, 0xea, 0x93, + 0xf5, 0xa1, 0x01, 0x66, 0x7a, 0x0f, 0x6e, 0x93, 0xe8, 0xc8, 0xf7, 0xcc, 0xaf, 0x83, 0xd9, 0x47, + 0x88, 0x46, 0x7e, 0xe4, 0xd9, 0xbc, 0x43, 0x31, 0xeb, 0x90, 0x40, 0x45, 0xb4, 0x08, 0x6b, 0x9a, + 0x71, 0x90, 0xd1, 0xcd, 0x75, 0x60, 0x3a, 0xd4, 0xe7, 0xbe, 0x83, 0x82, 0x01, 0xe9, 0x82, 0x94, + 0x9e, 0xcd, 0x38, 0x7d, 0xf1, 0x9c, 0xdf, 0xc5, 0xbc, 0xdf, 0xd6, 0xaf, 0x0a, 0x00, 0xec, 0x35, + 0xef, 0xef, 0xa3, 0x6e, 0x40, 0x90, 0x84, 0x2e, 0xc4, 0x8c, 0x21, 0x0f, 0xdb, 0xbc, 0x1b, 0x63, + 0x69, 0xca, 0x34, 0x2c, 0x6b, 0xda, 0x41, 0x37, 0xce, 0xc1, 0x5f, 0xc8, 0xc1, 0x3f, 0xd2, 0x55, + 0x8a, 0xaf, 0xad, 0xab, 0x8c, 0x74, 0xc0, 0xf1, 0xd7, 0xd0, 0x01, 0xdf, 0x02, 0xa5, 0xde, 0xdc, + 0x91, 0x90, 0x17, 0x61, 0x9f, 0x60, 0xfd, 0xd2, 0x00, 0xb5, 0x5b, 0x28, 0x08, 0x0e, 0x91, 0xf3, + 0xb0, 0xcd, 0x29, 0xe2, 0xd8, 0xeb, 0x9a, 0xeb, 0xe0, 0x62, 0xc2, 0xb0, 0x2d, 0xfb, 0xdb, 0xc3, + 0x88, 0x3c, 0x8a, 0x6c, 0x8f, 0x10, 0x05, 0xda, 0x14, 0xac, 0x25, 0x0c, 0xef, 0x22, 0xc6, 0xbf, + 0x2b, 0x18, 0xb7, 0x09, 0x71, 0x4d, 0x4b, 0xa1, 0xe0, 0x20, 0xa7, 0x83, 0x6d, 0xe4, 0x61, 0x8d, + 0x57, 0x39, 0x44, 0xc7, 0xdb, 0x82, 0xd6, 0xf4, 0xb0, 0xf9, 0x36, 0x98, 0x41, 0x01, 0xa6, 0x7c, + 0x00, 0x55, 0x85, 0x55, 0x55, 0x92, 0x7b, 0x90, 0x5a, 0x9f, 0x15, 0xc0, 0xbc, 0xaa, 0xc2, 0xdb, + 0x24, 0xc5, 0x34, 0x42, 0x91, 0x83, 0xf7, 0x11, 0x45, 0x21, 0x33, 0xeb, 0xe0, 0xa2, 0x78, 0x47, + 0x75, 0x5c, 0xdb, 0x8f, 0x38, 0xa6, 0x29, 0x0a, 0x74, 0x2e, 0xcd, 0x86, 0xe8, 0x58, 0xf5, 0xd4, + 0x96, 0x66, 0x48, 0x79, 0x3f, 0xca, 0xc9, 0xeb, 0x6c, 0x0a, 0xfd, 0x68, 0x44, 0xfe, 0x1b, 0x60, + 0x41, 0xe8, 0x97, 0x98, 0xda, 0x2e, 0x4e, 0x7d, 0x59, 0x8d, 0xf6, 0x61, 0xac, 0xf2, 0x6a, 0x02, + 0xce, 0x85, 0xe8, 0x58, 0xe2, 0x74, 0x33, 0x63, 0x6e, 0xc5, 0xcc, 0x3c, 0x00, 0xb3, 0x2e, 0x3e, + 0x92, 0xc3, 0x6d, 0xb8, 0x00, 0xcb, 0x1b, 0x6f, 0xd7, 0x4f, 0xde, 0x3b, 0xea, 0x23, 0x45, 0x02, + 0x6b, 0x5a, 0x43, 0xbf, 0x5a, 0xdb, 0x20, 0xa3, 0xd9, 0x47, 0x1a, 0x1f, 0x5d, 0xb0, 0x6b, 0xa7, + 0x29, 0x1d, 0xc5, 0x11, 0xce, 0x68, 0x0d, 0x19, 0xc3, 0xfa, 0xbd, 0x01, 0xca, 0x4d, 0x11, 0x6f, + 0x5d, 0x9b, 0xef, 0x80, 0x39, 0x69, 0xb2, 0xed, 0x22, 0x8e, 0x72, 0xe5, 0x69, 0x4a, 0xde, 0x4d, + 0xc4, 0x51, 0xbf, 0xe2, 0x36, 0xc1, 0xd2, 0x68, 0x7c, 0x86, 0xeb, 0x74, 0x02, 0x2e, 0xc4, 0x43, + 0x21, 0xea, 0xdf, 0xbd, 0x01, 0x16, 0x8e, 0x90, 0x1f, 0x60, 0x37, 0x83, 0x64, 0x38, 0x17, 0x26, + 0xe0, 0x25, 0xc5, 0x56, 0xb0, 0xf4, 0x53, 0xe2, 0xef, 0x05, 0x50, 0x51, 0x29, 0xd1, 0xe6, 0x88, + 0x27, 0xcc, 0xbc, 0x0c, 0x4a, 0xba, 0xb5, 0xea, 0xe6, 0x5c, 0x82, 0x53, 0x8a, 0x90, 0x1f, 0x5c, + 0xf9, 0xe2, 0xbd, 0x0d, 0x2a, 0x32, 0xb3, 0x59, 0xe2, 0x38, 0x59, 0xcf, 0x38, 0x6b, 0x1b, 0x94, + 0x33, 0xbf, 0xad, 0x2e, 0x9a, 0xef, 0x82, 0x39, 0x87, 0x44, 0x0c, 0x3b, 0x89, 0x68, 0x7e, 0xb6, + 0x30, 0x3e, 0xa1, 0x58, 0x61, 0x3f, 0x01, 0x2f, 0x0e, 0xf0, 0x6e, 0x69, 0x96, 0x79, 0x05, 0x00, + 0x5f, 0xd4, 0x36, 0x0a, 0x78, 0xa7, 0x2b, 0xf1, 0x9c, 0x82, 0x25, 0x9f, 0xdd, 0x51, 0x04, 0xf3, + 0x1e, 0x98, 0xe9, 0xa5, 0x90, 0x1d, 0xe0, 0x14, 0x07, 0xb2, 0xc1, 0x56, 0x37, 0xbe, 0xf6, 0xc2, + 0x44, 0xda, 0x15, 0xd2, 0xb0, 0xca, 0x86, 0xce, 0xe2, 0x3d, 0xe9, 0x2b, 0xa6, 0x94, 0x50, 0xb9, + 0xa4, 0x94, 0x60, 0x49, 0x50, 0x76, 0x04, 0xc1, 0xfa, 0x53, 0x01, 0x2c, 0x6c, 0x8b, 0x65, 0x53, + 0x8e, 0x2c, 0xbd, 0x87, 0xa8, 0x46, 0x28, 0xae, 0x86, 0xc8, 0x0f, 0x0e, 0xc9, 0x71, 0x16, 0xe5, + 0x0a, 0x2c, 0x69, 0xca, 0xd9, 0x26, 0xe0, 0x3c, 0x98, 0x64, 0x38, 0x72, 0x31, 0x95, 0x21, 0xae, + 0x40, 0x7d, 0x32, 0x97, 0xc1, 0x54, 0x88, 0x39, 0x12, 0x39, 0x27, 0x63, 0x55, 0x81, 0xbd, 0xb3, + 0xb9, 0x08, 0x2e, 0xc4, 0xaa, 0x51, 0xcb, 0xe8, 0x54, 0x60, 0x76, 0x14, 0x0b, 0x17, 0xc5, 0x0e, + 0xf6, 0x53, 0x35, 0xbc, 0x26, 0x5f, 0x66, 0xe1, 0xca, 0x2e, 0x36, 0xb9, 0x98, 0x82, 0x31, 0x25, + 0xa9, 0xef, 0x62, 0xaa, 0xfa, 0xff, 0x05, 0x19, 0xe0, 0xaf, 0x9e, 0x16, 0xe0, 0x7d, 0x2d, 0x2c, + 0x06, 0x03, 0xac, 0xc4, 0x03, 0x27, 0xeb, 0xc3, 0x22, 0x30, 0x55, 0xcc, 0x54, 0xc6, 0x42, 0xcc, + 0x92, 0x80, 0xbf, 0x78, 0x79, 0xf8, 0x11, 0x98, 0x89, 0xf0, 0x23, 0x7b, 0x70, 0x82, 0x14, 0x5e, + 0x69, 0x82, 0x4c, 0x47, 0xf8, 0x51, 0xbb, 0x3f, 0x44, 0xee, 0x01, 0xd0, 0xd3, 0x9f, 0x6d, 0x1d, + 0x2f, 0x3f, 0x43, 0x4a, 0x99, 0x52, 0x66, 0x3e, 0x00, 0xd5, 0x9e, 0x47, 0x29, 0x0a, 0x12, 0x7c, + 0xee, 0xc1, 0x34, 0x9d, 0xe9, 0xb9, 0x2f, 0xd4, 0x88, 0x71, 0xa7, 0x5a, 0x81, 0x6b, 0x47, 0x28, + 0x3d, 0xff, 0xc2, 0xaf, 0x95, 0xec, 0xa1, 0xd4, 0xfa, 0x6b, 0x11, 0xcc, 0xde, 0x65, 0x1e, 0xd4, + 0xeb, 0x8a, 0x5e, 0xe8, 0x6e, 0x80, 0x12, 0x4a, 0x78, 0x87, 0x50, 0x9f, 0x77, 0xf5, 0x3e, 0xbd, + 0xf8, 0xe9, 0xc7, 0xeb, 0x73, 0x5a, 0x93, 0xde, 0xa3, 0xda, 0x9c, 0xfa, 0x91, 0x07, 0xfb, 0xa2, + 0x2f, 0x6e, 0x26, 0x6f, 0x72, 0xcb, 0x1b, 0x2d, 0xb9, 0xf1, 0x7c, 0xc9, 0xe5, 0x16, 0xa2, 0x89, + 0x93, 0x17, 0xc1, 0xe1, 0x12, 0x98, 0x3c, 0x6f, 0x09, 0x88, 0xe5, 0x8e, 0x50, 0xdf, 0x93, 0x5f, + 0x10, 0x38, 0xe2, 0xfe, 0x91, 0x8f, 0xb3, 0x36, 0x53, 0x53, 0x8c, 0x56, 0x8f, 0xbe, 0xb9, 0xf9, + 0xfe, 0x47, 0xab, 0x63, 0xff, 0xf9, 0x68, 0x75, 0xec, 0xa7, 0xcf, 0x1f, 0x5f, 0xef, 0x07, 0xf9, + 0xe7, 0xcf, 0x1f, 0x5f, 0x5f, 0xcd, 0x7d, 0x03, 0x0f, 0x03, 0x68, 0xfd, 0xd6, 0x00, 0x4b, 0x39, + 0x58, 0x21, 0x66, 0xb1, 0x68, 0xb2, 0xaf, 0x38, 0x10, 0x72, 0x8b, 0x71, 0xf1, 0xbc, 0x8b, 0xb1, + 0xf5, 0x5f, 0x03, 0x5c, 0xba, 0xcb, 0x3c, 0xd5, 0x0f, 0x94, 0x91, 0x7a, 0xd4, 0x9e, 0x37, 0x03, + 0x87, 0x5c, 0x2b, 0x8c, 0xb8, 0x76, 0x96, 0xfd, 0x77, 0x60, 0x59, 0x1f, 0x1f, 0x5c, 0xd6, 0x37, + 0xbf, 0x73, 0x3a, 0x1c, 0xd7, 0x72, 0x70, 0xe4, 0x3d, 0xb2, 0x7e, 0x61, 0x80, 0x2b, 0x27, 0xfa, + 0x7a, 0x36, 0x58, 0xee, 0x82, 0x6a, 0x56, 0xfb, 0x8e, 0xbc, 0x26, 0xbd, 0x2b, 0x9f, 0x3e, 0xea, + 0x46, 0x3e, 0x36, 0xa7, 0xf5, 0x6d, 0x6d, 0xcd, 0x1f, 0x0d, 0x30, 0x23, 0x13, 0x24, 0x24, 0x29, + 0x7e, 0xc5, 0xaa, 0xff, 0xc2, 0x98, 0xcf, 0x83, 0x49, 0x8a, 0x11, 0x23, 0x91, 0xaa, 0x74, 0xa8, + 0x4f, 0x9b, 0xdf, 0x3c, 0x3d, 0x9c, 0x57, 0x4e, 0xc8, 0xee, 0xbe, 0x99, 0xd6, 0xaf, 0x0d, 0xb0, + 0x30, 0x62, 0xfa, 0x6b, 0xca, 0xec, 0x6d, 0x00, 0xa8, 0xd4, 0xfa, 0xd2, 0x69, 0x5d, 0xd2, 0xf7, + 0x9a, 0xdc, 0xfa, 0x67, 0x3e, 0xa7, 0xf5, 0x42, 0x7e, 0xde, 0xf8, 0xee, 0x82, 0xc9, 0x58, 0x6a, + 0xd0, 0x90, 0xd7, 0x4f, 0x83, 0xfc, 0xe4, 0x0f, 0x81, 0xad, 0x71, 0x61, 0x26, 0xd4, 0x3a, 0xce, + 0x9f, 0xc7, 0x4a, 0x9b, 0xf5, 0x97, 0x7c, 0x1e, 0x2b, 0x4e, 0x0f, 0x84, 0x1f, 0x82, 0x99, 0x98, + 0xe2, 0xd4, 0x27, 0x09, 0xb3, 0xb5, 0xe1, 0xc6, 0x2b, 0x18, 0x5e, 0xcd, 0x94, 0xe9, 0x30, 0xb6, + 0xd5, 0xbc, 0x7e, 0x0d, 0x21, 0x11, 0x33, 0x5b, 0x11, 0xae, 0xff, 0xcc, 0x00, 0xd5, 0xe1, 0xe5, + 0xd0, 0x5c, 0x02, 0x97, 0xda, 0x07, 0xcd, 0xdd, 0x9d, 0xbd, 0x9d, 0x76, 0xdb, 0xde, 0xdd, 0xb9, + 0xbf, 0xb3, 0x6b, 0xdf, 0x82, 0x3b, 0xed, 0x3b, 0xb5, 0xb1, 0x93, 0x58, 0xf2, 0x5c, 0x33, 0xcc, + 0xcb, 0x60, 0x61, 0x94, 0xf5, 0xa0, 0x09, 0xf7, 0x5a, 0x7b, 0xb7, 0x6b, 0x05, 0xf3, 0x2d, 0xb0, + 0x38, 0xca, 0xdc, 0x86, 0xad, 0x83, 0xd6, 0x76, 0x73, 0xb7, 0x56, 0x5c, 0x1e, 0x7f, 0xff, 0x37, + 0x2b, 0x63, 0x5b, 0xdf, 0x7e, 0xf2, 0x74, 0xc5, 0xf8, 0xe4, 0xe9, 0x8a, 0xf1, 0xef, 0xa7, 0x2b, + 0xc6, 0x07, 0xcf, 0x56, 0xc6, 0x3e, 0x79, 0xb6, 0x32, 0xf6, 0x8f, 0x67, 0x2b, 0x63, 0x3f, 0xd0, + 0xf0, 0x68, 0x57, 0x8f, 0xbb, 0x3f, 0x69, 0xa4, 0xef, 0x35, 0xc4, 0x44, 0x62, 0x7d, 0xc4, 0x0e, + 0x27, 0x65, 0x9e, 0xbe, 0xf7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0x6b, 0x38, 0x37, 0xe8, + 0x15, 0x00, 0x00, +} + +func (m *RemotePositionOracle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemotePositionOracle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemotePositionOracle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintOracle(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x3a + { + size := m.SharePrice.Size() + i -= size + if _, err := m.SharePrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.SharesHeld.Size() + i -= size + if _, err := m.SharesHeld.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.VaultAddress) > 0 { + i -= len(m.VaultAddress) + copy(dAtA[i:], m.VaultAddress) + i = encodeVarintOracle(dAtA, i, uint64(len(m.VaultAddress))) + i-- + dAtA[i] = 0x22 + } + { + size := m.OracleAddress.Size() + i -= size + if _, err := m.OracleAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.ChainId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x10 + } + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *OracleMapping) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OracleMapping) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OracleMapping) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x18 + } + if m.ChainId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x10 + } + { + size := m.OracleAddress.Size() + i -= size + if _, err := m.OracleAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *EnrolledOracleRouter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EnrolledOracleRouter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EnrolledOracleRouter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.OracleAddress.Size() + i -= size + if _, err := m.OracleAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintOracle(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x12 + } + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EnrolledOracle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EnrolledOracle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EnrolledOracle) 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] = 0x30 + } + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.RegisteredAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RegisteredAt):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintOracle(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x2a + if m.MaxStaleness != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxStaleness)) + i-- + dAtA[i] = 0x20 + } + { + size := m.OracleAddress.Size() + i -= size + if _, err := m.OracleAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintOracle(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x12 + } + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StalenessConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StalenessConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StalenessConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxStaleness != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxStaleness)) + i-- + dAtA[i] = 0x18 + } + if m.CriticalThreshold != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.CriticalThreshold)) + i-- + dAtA[i] = 0x10 + } + if m.WarningThreshold != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.WarningThreshold)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *NAVPayload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVPayload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x28 + } + { + size := m.SharesHeld.Size() + i -= size + if _, err := m.SharesHeld.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.SharePrice.Size() + i -= size + if _, err := m.SharePrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x10 + } + if m.MessageType != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MessageType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FallbackStrategy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FallbackStrategy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FallbackStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AlertThreshold != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.AlertThreshold)) + i-- + dAtA[i] = 0x18 + } + if m.MaxCacheAge != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxCacheAge)) + i-- + dAtA[i] = 0x10 + } + if m.UseLastKnownGood { + i-- + if m.UseLastKnownGood { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *OracleGovernanceParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OracleGovernanceParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OracleGovernanceParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DefaultFallback != nil { + { + size, err := m.DefaultFallback.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.DefaultStaleness != nil { + { + size, err := m.DefaultStaleness.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.MaxPriceDeviationBps != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxPriceDeviationBps)) + i-- + dAtA[i] = 0x18 + } + if m.MinUpdateInterval != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MinUpdateInterval)) + i-- + dAtA[i] = 0x10 + } + if m.MaxUpdateInterval != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxUpdateInterval)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AlertConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AlertConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AlertConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FailedUpdateThreshold != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.FailedUpdateThreshold)) + i-- + dAtA[i] = 0x18 + } + if m.PriceDeviationThreshold != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PriceDeviationThreshold)) + i-- + dAtA[i] = 0x10 + } + if m.StaleDataThreshold != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.StaleDataThreshold)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *OracleStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OracleStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OracleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LastError) > 0 { + i -= len(m.LastError) + copy(dAtA[i:], m.LastError) + i = encodeVarintOracle(dAtA, i, uint64(len(m.LastError))) + i-- + dAtA[i] = 0x3a + } + if m.StalenessLevel != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.StalenessLevel)) + i-- + dAtA[i] = 0x30 + } + if m.IsHealthy { + i-- + if m.IsHealthy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.ConsecutiveFailures != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.ConsecutiveFailures)) + i-- + dAtA[i] = 0x20 + } + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastSuccess, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastSuccess):]) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintOracle(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x1a + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(m.OracleId) > 0 { + i -= len(m.OracleId) + copy(dAtA[i:], m.OracleId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OracleId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossChainOracleMessage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossChainOracleMessage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossChainOracleMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProviderType != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.ProviderType)) + i-- + dAtA[i] = 0x38 + } + n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ReceivedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ReceivedAt):]) + if err6 != nil { + return 0, err6 + } + i -= n6 + i = encodeVarintOracle(dAtA, i, uint64(n6)) + i-- + dAtA[i] = 0x32 + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0x2a + } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x22 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x1a + } + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintOracle(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x12 + } + if len(m.MailboxId) > 0 { + i -= len(m.MailboxId) + copy(dAtA[i:], m.MailboxId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.MailboxId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OracleUpdateResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OracleUpdateResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OracleUpdateResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.UpdatedNav.Size() + i -= size + if _, err := m.UpdatedNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.PositionValue.Size() + i -= size + if _, err := m.PositionValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.NewShares.Size() + i -= size + if _, err := m.NewShares.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.NewSharePrice.Size() + i -= size + if _, err := m.NewSharePrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgRegisterOracle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRegisterOracle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRegisterOracle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OriginIdentifier) > 0 { + i -= len(m.OriginIdentifier) + copy(dAtA[i:], m.OriginIdentifier) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OriginIdentifier))) + i-- + dAtA[i] = 0x3a + } + if m.ProviderType != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.ProviderType)) + i-- + dAtA[i] = 0x30 + } + if m.MaxStaleness != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxStaleness)) + i-- + dAtA[i] = 0x28 + } + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintOracle(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x22 + } + { + size := m.OracleAddress.Size() + i -= size + if _, err := m.OracleAddress.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRegisterOracleResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRegisterOracleResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRegisterOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.RegisteredAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RegisteredAt):]) + if err7 != nil { + return 0, err7 + } + i -= n7 + i = encodeVarintOracle(dAtA, i, uint64(n7)) + i-- + dAtA[i] = 0x1a + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(m.OracleId) > 0 { + i -= len(m.OracleId) + copy(dAtA[i:], m.OracleId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OracleId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateOracleConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateOracleConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateOracleConfig) 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] = 0x20 + } + if m.MaxStaleness != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.MaxStaleness)) + i-- + dAtA[i] = 0x18 + } + if len(m.OracleId) > 0 { + i -= len(m.OracleId) + copy(dAtA[i:], m.OracleId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OracleId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateOracleConfigResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateOracleConfigResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateOracleConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UpdatedConfig != nil { + { + size, err := m.UpdatedConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.OracleId) > 0 { + i -= len(m.OracleId) + copy(dAtA[i:], m.OracleId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OracleId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoveOracle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoveOracle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveOracle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(m.OracleId) > 0 { + i -= len(m.OracleId) + copy(dAtA[i:], m.OracleId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OracleId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoveOracleResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoveOracleResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.RemovedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RemovedAt):]) + if err9 != nil { + return 0, err9 + } + i -= n9 + i = encodeVarintOracle(dAtA, i, uint64(n9)) + i-- + dAtA[i] = 0x1a + if m.PositionId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(m.OracleId) > 0 { + i -= len(m.OracleId) + copy(dAtA[i:], m.OracleId) + i = encodeVarintOracle(dAtA, i, uint64(len(m.OracleId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateOracleParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateOracleParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateOracleParams) 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 = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintOracle(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateOracleParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateOracleParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateOracleParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.NewParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.PreviousParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOracle(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintOracle(dAtA []byte, offset int, v uint64) int { + offset -= sovOracle(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *RemotePositionOracle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + if m.ChainId != 0 { + n += 1 + sovOracle(uint64(m.ChainId)) + } + l = m.OracleAddress.Size() + n += 1 + l + sovOracle(uint64(l)) + l = len(m.VaultAddress) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = m.SharesHeld.Size() + n += 1 + l + sovOracle(uint64(l)) + l = m.SharePrice.Size() + n += 1 + l + sovOracle(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate) + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *OracleMapping) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.OracleAddress.Size() + n += 1 + l + sovOracle(uint64(l)) + if m.ChainId != 0 { + n += 1 + sovOracle(uint64(m.ChainId)) + } + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + return n +} + +func (m *EnrolledOracleRouter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = m.OracleAddress.Size() + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *EnrolledOracle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = m.OracleAddress.Size() + n += 1 + l + sovOracle(uint64(l)) + if m.MaxStaleness != 0 { + n += 1 + sovOracle(uint64(m.MaxStaleness)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RegisteredAt) + n += 1 + l + sovOracle(uint64(l)) + if m.Active { + n += 2 + } + return n +} + +func (m *StalenessConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.WarningThreshold != 0 { + n += 1 + sovOracle(uint64(m.WarningThreshold)) + } + if m.CriticalThreshold != 0 { + n += 1 + sovOracle(uint64(m.CriticalThreshold)) + } + if m.MaxStaleness != 0 { + n += 1 + sovOracle(uint64(m.MaxStaleness)) + } + return n +} + +func (m *NAVPayload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MessageType != 0 { + n += 1 + sovOracle(uint64(m.MessageType)) + } + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = m.SharePrice.Size() + n += 1 + l + sovOracle(uint64(l)) + l = m.SharesHeld.Size() + n += 1 + l + sovOracle(uint64(l)) + if m.Timestamp != 0 { + n += 1 + sovOracle(uint64(m.Timestamp)) + } + return n +} + +func (m *FallbackStrategy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UseLastKnownGood { + n += 2 + } + if m.MaxCacheAge != 0 { + n += 1 + sovOracle(uint64(m.MaxCacheAge)) + } + if m.AlertThreshold != 0 { + n += 1 + sovOracle(uint64(m.AlertThreshold)) + } + return n +} + +func (m *OracleGovernanceParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxUpdateInterval != 0 { + n += 1 + sovOracle(uint64(m.MaxUpdateInterval)) + } + if m.MinUpdateInterval != 0 { + n += 1 + sovOracle(uint64(m.MinUpdateInterval)) + } + if m.MaxPriceDeviationBps != 0 { + n += 1 + sovOracle(uint64(m.MaxPriceDeviationBps)) + } + if m.DefaultStaleness != nil { + l = m.DefaultStaleness.Size() + n += 1 + l + sovOracle(uint64(l)) + } + if m.DefaultFallback != nil { + l = m.DefaultFallback.Size() + n += 1 + l + sovOracle(uint64(l)) + } + return n +} + +func (m *AlertConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StaleDataThreshold != 0 { + n += 1 + sovOracle(uint64(m.StaleDataThreshold)) + } + if m.PriceDeviationThreshold != 0 { + n += 1 + sovOracle(uint64(m.PriceDeviationThreshold)) + } + if m.FailedUpdateThreshold != 0 { + n += 1 + sovOracle(uint64(m.FailedUpdateThreshold)) + } + return n +} + +func (m *OracleStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OracleId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastSuccess) + n += 1 + l + sovOracle(uint64(l)) + if m.ConsecutiveFailures != 0 { + n += 1 + sovOracle(uint64(m.ConsecutiveFailures)) + } + if m.IsHealthy { + n += 2 + } + if m.StalenessLevel != 0 { + n += 1 + sovOracle(uint64(m.StalenessLevel)) + } + l = len(m.LastError) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + return n +} + +func (m *CrossChainOracleMessage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MailboxId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ReceivedAt) + n += 1 + l + sovOracle(uint64(l)) + if m.ProviderType != 0 { + n += 1 + sovOracle(uint64(m.ProviderType)) + } + return n +} + +func (m *OracleUpdateResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = m.NewSharePrice.Size() + n += 1 + l + sovOracle(uint64(l)) + l = m.NewShares.Size() + n += 1 + l + sovOracle(uint64(l)) + l = m.PositionValue.Size() + n += 1 + l + sovOracle(uint64(l)) + l = m.UpdatedNav.Size() + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *MsgRegisterOracle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = m.OracleAddress.Size() + n += 1 + l + sovOracle(uint64(l)) + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.MaxStaleness != 0 { + n += 1 + sovOracle(uint64(m.MaxStaleness)) + } + if m.ProviderType != 0 { + n += 1 + sovOracle(uint64(m.ProviderType)) + } + l = len(m.OriginIdentifier) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + return n +} + +func (m *MsgRegisterOracleResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OracleId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RegisteredAt) + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *MsgUpdateOracleConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.OracleId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.MaxStaleness != 0 { + n += 1 + sovOracle(uint64(m.MaxStaleness)) + } + if m.Active { + n += 2 + } + return n +} + +func (m *MsgUpdateOracleConfigResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OracleId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.UpdatedConfig != nil { + l = m.UpdatedConfig.Size() + n += 1 + l + sovOracle(uint64(l)) + } + return n +} + +func (m *MsgRemoveOracle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.OracleId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + return n +} + +func (m *MsgRemoveOracleResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OracleId) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.PositionId != 0 { + n += 1 + sovOracle(uint64(m.PositionId)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RemovedAt) + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *MsgUpdateOracleParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func (m *MsgUpdateOracleParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PreviousParams.Size() + n += 1 + l + sovOracle(uint64(l)) + l = m.NewParams.Size() + n += 1 + l + sovOracle(uint64(l)) + return n +} + +func sovOracle(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOracle(x uint64) (n int) { + return sovOracle(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *RemotePositionOracle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemotePositionOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemotePositionOracle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OracleAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VaultAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesHeld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharePrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastUpdate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OracleMapping) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OracleMapping: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OracleMapping: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OracleAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EnrolledOracleRouter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EnrolledOracleRouter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EnrolledOracleRouter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OracleAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EnrolledOracle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EnrolledOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EnrolledOracle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OracleAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + m.MaxStaleness = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegisteredAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.RegisteredAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + 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 ErrIntOverflowOracle + } + 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 := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StalenessConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StalenessConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StalenessConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WarningThreshold", wireType) + } + m.WarningThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WarningThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CriticalThreshold", wireType) + } + m.CriticalThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CriticalThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + m.MaxStaleness = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NAVPayload) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVPayload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVPayload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageType", wireType) + } + m.MessageType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MessageType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharePrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SharesHeld.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FallbackStrategy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FallbackStrategy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FallbackStrategy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseLastKnownGood", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UseLastKnownGood = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxCacheAge", wireType) + } + m.MaxCacheAge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxCacheAge |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AlertThreshold", wireType) + } + m.AlertThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AlertThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OracleGovernanceParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OracleGovernanceParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OracleGovernanceParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUpdateInterval", wireType) + } + m.MaxUpdateInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxUpdateInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinUpdateInterval", wireType) + } + m.MinUpdateInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinUpdateInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPriceDeviationBps", wireType) + } + m.MaxPriceDeviationBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxPriceDeviationBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultStaleness", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultStaleness == nil { + m.DefaultStaleness = &StalenessConfig{} + } + if err := m.DefaultStaleness.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultFallback", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultFallback == nil { + m.DefaultFallback = &FallbackStrategy{} + } + if err := m.DefaultFallback.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlertConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AlertConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlertConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StaleDataThreshold", wireType) + } + m.StaleDataThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StaleDataThreshold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceDeviationThreshold", wireType) + } + m.PriceDeviationThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PriceDeviationThreshold |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedUpdateThreshold", wireType) + } + m.FailedUpdateThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FailedUpdateThreshold |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OracleStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OracleStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OracleStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastSuccess", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastSuccess, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveFailures", wireType) + } + m.ConsecutiveFailures = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConsecutiveFailures |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsHealthy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsHealthy = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StalenessLevel", wireType) + } + m.StalenessLevel = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StalenessLevel |= StalenessLevel(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastError", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LastError = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossChainOracleMessage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossChainOracleMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossChainOracleMessage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MailboxId", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MailboxId = append(m.MailboxId[:0], dAtA[iNdEx:postIndex]...) + if m.MailboxId == nil { + m.MailboxId = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = append(m.Sender[:0], dAtA[iNdEx:postIndex]...) + if m.Sender == nil { + m.Sender = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) + if m.Metadata == nil { + m.Metadata = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ReceivedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderType", wireType) + } + m.ProviderType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProviderType |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OracleUpdateResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OracleUpdateResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OracleUpdateResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewSharePrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewSharePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewShares", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewShares.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PositionValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.UpdatedNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRegisterOracle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRegisterOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRegisterOracle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OracleAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + m.MaxStaleness = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderType", wireType) + } + m.ProviderType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProviderType |= ProviderType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRegisterOracleResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRegisterOracleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRegisterOracleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegisteredAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.RegisteredAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateOracleConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateOracleConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateOracleConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStaleness", wireType) + } + m.MaxStaleness = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStaleness |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + 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 ErrIntOverflowOracle + } + 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 := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateOracleConfigResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateOracleConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateOracleConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdatedConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdatedConfig == nil { + m.UpdatedConfig = &EnrolledOracle{} + } + if err := m.UpdatedConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRemoveOracle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRemoveOracle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveOracle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRemoveOracleResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRemoveOracleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveOracleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OracleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OracleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemovedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.RemovedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateOracleParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateOracleParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateOracleParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + 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 := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateOracleParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateOracleParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateOracleParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NewParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOracle(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOracle + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOracle(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, ErrIntOverflowOracle + } + 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, ErrIntOverflowOracle + } + 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, ErrIntOverflowOracle + } + 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, ErrInvalidLengthOracle + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOracle + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOracle + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOracle = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOracle = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group") +) diff --git a/types/vaults/v2/query.pb.go b/types/vaults/v2/query.pb.go new file mode 100644 index 00000000..51bd9a58 --- /dev/null +++ b/types/vaults/v2/query.pb.go @@ -0,0 +1,19167 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/query.proto + +package v2 + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// QueryVaultInfoRequest requests information about a specific vault +type QueryVaultInfoRequest struct { +} + +func (m *QueryVaultInfoRequest) Reset() { *m = QueryVaultInfoRequest{} } +func (m *QueryVaultInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultInfoRequest) ProtoMessage() {} +func (*QueryVaultInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{0} +} +func (m *QueryVaultInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultInfoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultInfoRequest.Merge(m, src) +} +func (m *QueryVaultInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultInfoRequest proto.InternalMessageInfo + +// QueryVaultInfoResponse returns vault information +type QueryVaultInfoResponse struct { + Config VaultConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config"` + TotalDeposits string `protobuf:"bytes,2,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + TotalAccruedYield string `protobuf:"bytes,3,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + TotalNav string `protobuf:"bytes,4,opt,name=total_nav,json=totalNav,proto3" json:"total_nav,omitempty"` + TotalDepositors uint64 `protobuf:"varint,5,opt,name=total_depositors,json=totalDepositors,proto3" json:"total_depositors,omitempty"` +} + +func (m *QueryVaultInfoResponse) Reset() { *m = QueryVaultInfoResponse{} } +func (m *QueryVaultInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultInfoResponse) ProtoMessage() {} +func (*QueryVaultInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{1} +} +func (m *QueryVaultInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultInfoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultInfoResponse.Merge(m, src) +} +func (m *QueryVaultInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultInfoResponse proto.InternalMessageInfo + +func (m *QueryVaultInfoResponse) GetConfig() VaultConfig { + if m != nil { + return m.Config + } + return VaultConfig{} +} + +func (m *QueryVaultInfoResponse) GetTotalDeposits() string { + if m != nil { + return m.TotalDeposits + } + return "" +} + +func (m *QueryVaultInfoResponse) GetTotalAccruedYield() string { + if m != nil { + return m.TotalAccruedYield + } + return "" +} + +func (m *QueryVaultInfoResponse) GetTotalNav() string { + if m != nil { + return m.TotalNav + } + return "" +} + +func (m *QueryVaultInfoResponse) GetTotalDepositors() uint64 { + if m != nil { + return m.TotalDepositors + } + return 0 +} + +// QueryAllVaultsRequest requests information about all vaults +type QueryAllVaultsRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllVaultsRequest) Reset() { *m = QueryAllVaultsRequest{} } +func (m *QueryAllVaultsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllVaultsRequest) ProtoMessage() {} +func (*QueryAllVaultsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{2} +} +func (m *QueryAllVaultsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllVaultsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllVaultsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllVaultsRequest.Merge(m, src) +} +func (m *QueryAllVaultsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllVaultsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllVaultsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllVaultsRequest proto.InternalMessageInfo + +func (m *QueryAllVaultsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAllVaultsResponse returns information about all vaults +type QueryAllVaultsResponse struct { + Vaults []QueryVaultInfoResponse `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllVaultsResponse) Reset() { *m = QueryAllVaultsResponse{} } +func (m *QueryAllVaultsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllVaultsResponse) ProtoMessage() {} +func (*QueryAllVaultsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{3} +} +func (m *QueryAllVaultsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllVaultsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllVaultsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllVaultsResponse.Merge(m, src) +} +func (m *QueryAllVaultsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllVaultsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllVaultsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllVaultsResponse proto.InternalMessageInfo + +func (m *QueryAllVaultsResponse) GetVaults() []QueryVaultInfoResponse { + if m != nil { + return m.Vaults + } + return nil +} + +func (m *QueryAllVaultsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryVaultRequest requests information about all vaults +type QueryVaultRequest struct { +} + +func (m *QueryVaultRequest) Reset() { *m = QueryVaultRequest{} } +func (m *QueryVaultRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultRequest) ProtoMessage() {} +func (*QueryVaultRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{4} +} +func (m *QueryVaultRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultRequest.Merge(m, src) +} +func (m *QueryVaultRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultRequest proto.InternalMessageInfo + +// QueryVaultResponse returns information about all vaults +type QueryVaultResponse struct { + Vaults []QueryVaultInfoResponse `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults"` +} + +func (m *QueryVaultResponse) Reset() { *m = QueryVaultResponse{} } +func (m *QueryVaultResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultResponse) ProtoMessage() {} +func (*QueryVaultResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{5} +} +func (m *QueryVaultResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultResponse.Merge(m, src) +} +func (m *QueryVaultResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultResponse proto.InternalMessageInfo + +func (m *QueryVaultResponse) GetVaults() []QueryVaultInfoResponse { + if m != nil { + return m.Vaults + } + return nil +} + +// QueryUserPositionRequest requests a user's position in a specific vault +type QueryUserPositionRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryUserPositionRequest) Reset() { *m = QueryUserPositionRequest{} } +func (m *QueryUserPositionRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUserPositionRequest) ProtoMessage() {} +func (*QueryUserPositionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{6} +} +func (m *QueryUserPositionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserPositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserPositionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserPositionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserPositionRequest.Merge(m, src) +} +func (m *QueryUserPositionRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryUserPositionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserPositionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserPositionRequest proto.InternalMessageInfo + +func (m *QueryUserPositionRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// QueryUserPositionResponse returns a user's position +type QueryUserPositionResponse struct { + Position *UserPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` + CurrentValue string `protobuf:"bytes,2,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + UnrealizedYield string `protobuf:"bytes,3,opt,name=unrealized_yield,json=unrealizedYield,proto3" json:"unrealized_yield,omitempty"` +} + +func (m *QueryUserPositionResponse) Reset() { *m = QueryUserPositionResponse{} } +func (m *QueryUserPositionResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUserPositionResponse) ProtoMessage() {} +func (*QueryUserPositionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{7} +} +func (m *QueryUserPositionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserPositionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserPositionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserPositionResponse.Merge(m, src) +} +func (m *QueryUserPositionResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryUserPositionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserPositionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserPositionResponse proto.InternalMessageInfo + +func (m *QueryUserPositionResponse) GetPosition() *UserPosition { + if m != nil { + return m.Position + } + return nil +} + +func (m *QueryUserPositionResponse) GetCurrentValue() string { + if m != nil { + return m.CurrentValue + } + return "" +} + +func (m *QueryUserPositionResponse) GetUnrealizedYield() string { + if m != nil { + return m.UnrealizedYield + } + return "" +} + +// QueryUserPositionsRequest requests all of a user's positions +type QueryUserPositionsRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryUserPositionsRequest) Reset() { *m = QueryUserPositionsRequest{} } +func (m *QueryUserPositionsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUserPositionsRequest) ProtoMessage() {} +func (*QueryUserPositionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{8} +} +func (m *QueryUserPositionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserPositionsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserPositionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserPositionsRequest.Merge(m, src) +} +func (m *QueryUserPositionsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryUserPositionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserPositionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserPositionsRequest proto.InternalMessageInfo + +func (m *QueryUserPositionsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryUserPositionsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryUserPositionsResponse returns all of a user's positions +type QueryUserPositionsResponse struct { + Positions []UserPositionWithVault `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryUserPositionsResponse) Reset() { *m = QueryUserPositionsResponse{} } +func (m *QueryUserPositionsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUserPositionsResponse) ProtoMessage() {} +func (*QueryUserPositionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{9} +} +func (m *QueryUserPositionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserPositionsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserPositionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserPositionsResponse.Merge(m, src) +} +func (m *QueryUserPositionsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryUserPositionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserPositionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserPositionsResponse proto.InternalMessageInfo + +func (m *QueryUserPositionsResponse) GetPositions() []UserPositionWithVault { + if m != nil { + return m.Positions + } + return nil +} + +func (m *QueryUserPositionsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// UserPositionWithVault includes the vault type with the position +type UserPositionWithVault struct { + Position UserPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position"` + CurrentValue string `protobuf:"bytes,2,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` +} + +func (m *UserPositionWithVault) Reset() { *m = UserPositionWithVault{} } +func (m *UserPositionWithVault) String() string { return proto.CompactTextString(m) } +func (*UserPositionWithVault) ProtoMessage() {} +func (*UserPositionWithVault) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{10} +} +func (m *UserPositionWithVault) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserPositionWithVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserPositionWithVault.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserPositionWithVault) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserPositionWithVault.Merge(m, src) +} +func (m *UserPositionWithVault) XXX_Size() int { + return m.Size() +} +func (m *UserPositionWithVault) XXX_DiscardUnknown() { + xxx_messageInfo_UserPositionWithVault.DiscardUnknown(m) +} + +var xxx_messageInfo_UserPositionWithVault proto.InternalMessageInfo + +func (m *UserPositionWithVault) GetPosition() UserPosition { + if m != nil { + return m.Position + } + return UserPosition{} +} + +func (m *UserPositionWithVault) GetCurrentValue() string { + if m != nil { + return m.CurrentValue + } + return "" +} + +// QueryYieldInfoRequest requests the yield information for a vault +type QueryYieldInfoRequest struct { +} + +func (m *QueryYieldInfoRequest) Reset() { *m = QueryYieldInfoRequest{} } +func (m *QueryYieldInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryYieldInfoRequest) ProtoMessage() {} +func (*QueryYieldInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{11} +} +func (m *QueryYieldInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryYieldInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryYieldInfoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryYieldInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryYieldInfoRequest.Merge(m, src) +} +func (m *QueryYieldInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryYieldInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryYieldInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryYieldInfoRequest proto.InternalMessageInfo + +// QueryYieldInfoResponse returns the yield information +type QueryYieldInfoResponse struct { + YieldRate string `protobuf:"bytes,1,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` + TotalDeposits string `protobuf:"bytes,2,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + TotalAccruedYield string `protobuf:"bytes,3,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + TotalNav string `protobuf:"bytes,4,opt,name=total_nav,json=totalNav,proto3" json:"total_nav,omitempty"` +} + +func (m *QueryYieldInfoResponse) Reset() { *m = QueryYieldInfoResponse{} } +func (m *QueryYieldInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryYieldInfoResponse) ProtoMessage() {} +func (*QueryYieldInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{12} +} +func (m *QueryYieldInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryYieldInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryYieldInfoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryYieldInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryYieldInfoResponse.Merge(m, src) +} +func (m *QueryYieldInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryYieldInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryYieldInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryYieldInfoResponse proto.InternalMessageInfo + +func (m *QueryYieldInfoResponse) GetYieldRate() string { + if m != nil { + return m.YieldRate + } + return "" +} + +func (m *QueryYieldInfoResponse) GetTotalDeposits() string { + if m != nil { + return m.TotalDeposits + } + return "" +} + +func (m *QueryYieldInfoResponse) GetTotalAccruedYield() string { + if m != nil { + return m.TotalAccruedYield + } + return "" +} + +func (m *QueryYieldInfoResponse) GetTotalNav() string { + if m != nil { + return m.TotalNav + } + return "" +} + +// QueryVaultStatsRequest requests statistics for the primary V2 vault +type QueryVaultStatsRequest struct { +} + +func (m *QueryVaultStatsRequest) Reset() { *m = QueryVaultStatsRequest{} } +func (m *QueryVaultStatsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultStatsRequest) ProtoMessage() {} +func (*QueryVaultStatsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{13} +} +func (m *QueryVaultStatsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultStatsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultStatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultStatsRequest.Merge(m, src) +} +func (m *QueryVaultStatsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultStatsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultStatsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultStatsRequest proto.InternalMessageInfo + +// QueryVaultStatsResponse returns statistics for the primary V2 vault +type QueryVaultStatsResponse struct { + Stats VaultStatsEntry `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats"` +} + +func (m *QueryVaultStatsResponse) Reset() { *m = QueryVaultStatsResponse{} } +func (m *QueryVaultStatsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultStatsResponse) ProtoMessage() {} +func (*QueryVaultStatsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{14} +} +func (m *QueryVaultStatsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultStatsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultStatsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultStatsResponse.Merge(m, src) +} +func (m *QueryVaultStatsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultStatsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultStatsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultStatsResponse proto.InternalMessageInfo + +func (m *QueryVaultStatsResponse) GetStats() VaultStatsEntry { + if m != nil { + return m.Stats + } + return VaultStatsEntry{} +} + +// QueryStatsRequest requests statistics for a vault +type QueryStatsRequest struct { +} + +func (m *QueryStatsRequest) Reset() { *m = QueryStatsRequest{} } +func (m *QueryStatsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStatsRequest) ProtoMessage() {} +func (*QueryStatsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{15} +} +func (m *QueryStatsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStatsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStatsRequest.Merge(m, src) +} +func (m *QueryStatsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryStatsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStatsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStatsRequest proto.InternalMessageInfo + +// QueryStatsResponse returns vault statistics +type QueryStatsResponse struct { + Stats VaultStatsEntry `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats"` +} + +func (m *QueryStatsResponse) Reset() { *m = QueryStatsResponse{} } +func (m *QueryStatsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStatsResponse) ProtoMessage() {} +func (*QueryStatsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{16} +} +func (m *QueryStatsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStatsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStatsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStatsResponse.Merge(m, src) +} +func (m *QueryStatsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryStatsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStatsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStatsResponse proto.InternalMessageInfo + +func (m *QueryStatsResponse) GetStats() VaultStatsEntry { + if m != nil { + return m.Stats + } + return VaultStatsEntry{} +} + +// QueryAllStatsRequest requests statistics for all vaults +type QueryAllStatsRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllStatsRequest) Reset() { *m = QueryAllStatsRequest{} } +func (m *QueryAllStatsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllStatsRequest) ProtoMessage() {} +func (*QueryAllStatsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{17} +} +func (m *QueryAllStatsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllStatsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllStatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllStatsRequest.Merge(m, src) +} +func (m *QueryAllStatsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllStatsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllStatsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllStatsRequest proto.InternalMessageInfo + +func (m *QueryAllStatsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryAllStatsResponse returns statistics for the vault +type QueryAllStatsResponse struct { + Stats VaultStatsEntry `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats"` +} + +func (m *QueryAllStatsResponse) Reset() { *m = QueryAllStatsResponse{} } +func (m *QueryAllStatsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllStatsResponse) ProtoMessage() {} +func (*QueryAllStatsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{18} +} +func (m *QueryAllStatsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllStatsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllStatsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllStatsResponse.Merge(m, src) +} +func (m *QueryAllStatsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllStatsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllStatsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllStatsResponse proto.InternalMessageInfo + +func (m *QueryAllStatsResponse) GetStats() VaultStatsEntry { + if m != nil { + return m.Stats + } + return VaultStatsEntry{} +} + +// QueryParamsRequest requests module parameters +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_9037e95a7381a4ea, []int{19} +} +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 returns module parameters +type QueryParamsResponse struct { + 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_9037e95a7381a4ea, []int{20} +} +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{} +} + +// QueryCrossChainRoutesRequest requests all cross-chain routes +type QueryCrossChainRoutesRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryCrossChainRoutesRequest) Reset() { *m = QueryCrossChainRoutesRequest{} } +func (m *QueryCrossChainRoutesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCrossChainRoutesRequest) ProtoMessage() {} +func (*QueryCrossChainRoutesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{21} +} +func (m *QueryCrossChainRoutesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCrossChainRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCrossChainRoutesRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCrossChainRoutesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCrossChainRoutesRequest.Merge(m, src) +} +func (m *QueryCrossChainRoutesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCrossChainRoutesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCrossChainRoutesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCrossChainRoutesRequest proto.InternalMessageInfo + +func (m *QueryCrossChainRoutesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryCrossChainRoutesResponse returns all cross-chain routes +type QueryCrossChainRoutesResponse struct { + Routes []CrossChainRoute `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryCrossChainRoutesResponse) Reset() { *m = QueryCrossChainRoutesResponse{} } +func (m *QueryCrossChainRoutesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCrossChainRoutesResponse) ProtoMessage() {} +func (*QueryCrossChainRoutesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{22} +} +func (m *QueryCrossChainRoutesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCrossChainRoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCrossChainRoutesResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCrossChainRoutesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCrossChainRoutesResponse.Merge(m, src) +} +func (m *QueryCrossChainRoutesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCrossChainRoutesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCrossChainRoutesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCrossChainRoutesResponse proto.InternalMessageInfo + +func (m *QueryCrossChainRoutesResponse) GetRoutes() []CrossChainRoute { + if m != nil { + return m.Routes + } + return nil +} + +func (m *QueryCrossChainRoutesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryCrossChainRouteRequest requests a specific cross-chain route +type QueryCrossChainRouteRequest struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` +} + +func (m *QueryCrossChainRouteRequest) Reset() { *m = QueryCrossChainRouteRequest{} } +func (m *QueryCrossChainRouteRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCrossChainRouteRequest) ProtoMessage() {} +func (*QueryCrossChainRouteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{23} +} +func (m *QueryCrossChainRouteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCrossChainRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCrossChainRouteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCrossChainRouteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCrossChainRouteRequest.Merge(m, src) +} +func (m *QueryCrossChainRouteRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCrossChainRouteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCrossChainRouteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCrossChainRouteRequest proto.InternalMessageInfo + +func (m *QueryCrossChainRouteRequest) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +// QueryCrossChainRouteResponse returns a specific cross-chain route +type QueryCrossChainRouteResponse struct { + Route CrossChainRoute `protobuf:"bytes,1,opt,name=route,proto3" json:"route"` +} + +func (m *QueryCrossChainRouteResponse) Reset() { *m = QueryCrossChainRouteResponse{} } +func (m *QueryCrossChainRouteResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCrossChainRouteResponse) ProtoMessage() {} +func (*QueryCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{24} +} +func (m *QueryCrossChainRouteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCrossChainRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCrossChainRouteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCrossChainRouteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCrossChainRouteResponse.Merge(m, src) +} +func (m *QueryCrossChainRouteResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCrossChainRouteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCrossChainRouteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCrossChainRouteResponse proto.InternalMessageInfo + +func (m *QueryCrossChainRouteResponse) GetRoute() CrossChainRoute { + if m != nil { + return m.Route + } + return CrossChainRoute{} +} + +// QueryRemotePositionRequest requests a user's remote position on a route +type QueryRemotePositionRequest struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryRemotePositionRequest) Reset() { *m = QueryRemotePositionRequest{} } +func (m *QueryRemotePositionRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRemotePositionRequest) ProtoMessage() {} +func (*QueryRemotePositionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{25} +} +func (m *QueryRemotePositionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRemotePositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRemotePositionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRemotePositionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRemotePositionRequest.Merge(m, src) +} +func (m *QueryRemotePositionRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRemotePositionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRemotePositionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRemotePositionRequest proto.InternalMessageInfo + +func (m *QueryRemotePositionRequest) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *QueryRemotePositionRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// QueryRemotePositionResponse returns a user's remote position +type QueryRemotePositionResponse struct { + Position RemotePosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position"` +} + +func (m *QueryRemotePositionResponse) Reset() { *m = QueryRemotePositionResponse{} } +func (m *QueryRemotePositionResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRemotePositionResponse) ProtoMessage() {} +func (*QueryRemotePositionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{26} +} +func (m *QueryRemotePositionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRemotePositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRemotePositionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRemotePositionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRemotePositionResponse.Merge(m, src) +} +func (m *QueryRemotePositionResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRemotePositionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRemotePositionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRemotePositionResponse proto.InternalMessageInfo + +func (m *QueryRemotePositionResponse) GetPosition() RemotePosition { + if m != nil { + return m.Position + } + return RemotePosition{} +} + +// QueryRemotePositionsRequest requests all remote positions for a user +type QueryRemotePositionsRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryRemotePositionsRequest) Reset() { *m = QueryRemotePositionsRequest{} } +func (m *QueryRemotePositionsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRemotePositionsRequest) ProtoMessage() {} +func (*QueryRemotePositionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{27} +} +func (m *QueryRemotePositionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRemotePositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRemotePositionsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRemotePositionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRemotePositionsRequest.Merge(m, src) +} +func (m *QueryRemotePositionsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRemotePositionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRemotePositionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRemotePositionsRequest proto.InternalMessageInfo + +func (m *QueryRemotePositionsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryRemotePositionsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryRemotePositionsResponse returns all remote positions for a user +type QueryRemotePositionsResponse struct { + Positions []RemotePositionWithRoute `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryRemotePositionsResponse) Reset() { *m = QueryRemotePositionsResponse{} } +func (m *QueryRemotePositionsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRemotePositionsResponse) ProtoMessage() {} +func (*QueryRemotePositionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{28} +} +func (m *QueryRemotePositionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRemotePositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRemotePositionsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryRemotePositionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRemotePositionsResponse.Merge(m, src) +} +func (m *QueryRemotePositionsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRemotePositionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRemotePositionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRemotePositionsResponse proto.InternalMessageInfo + +func (m *QueryRemotePositionsResponse) GetPositions() []RemotePositionWithRoute { + if m != nil { + return m.Positions + } + return nil +} + +func (m *QueryRemotePositionsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// RemotePositionWithRoute includes the route ID with the position +type RemotePositionWithRoute struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + Position RemotePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position"` +} + +func (m *RemotePositionWithRoute) Reset() { *m = RemotePositionWithRoute{} } +func (m *RemotePositionWithRoute) String() string { return proto.CompactTextString(m) } +func (*RemotePositionWithRoute) ProtoMessage() {} +func (*RemotePositionWithRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{29} +} +func (m *RemotePositionWithRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemotePositionWithRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemotePositionWithRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemotePositionWithRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemotePositionWithRoute.Merge(m, src) +} +func (m *RemotePositionWithRoute) XXX_Size() int { + return m.Size() +} +func (m *RemotePositionWithRoute) XXX_DiscardUnknown() { + xxx_messageInfo_RemotePositionWithRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_RemotePositionWithRoute proto.InternalMessageInfo + +func (m *RemotePositionWithRoute) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *RemotePositionWithRoute) GetPosition() RemotePosition { + if m != nil { + return m.Position + } + return RemotePosition{} +} + +// QueryInflightFundRequest requests an in-flight operation +type QueryInflightFundRequest struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` +} + +func (m *QueryInflightFundRequest) Reset() { *m = QueryInflightFundRequest{} } +func (m *QueryInflightFundRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInflightFundRequest) ProtoMessage() {} +func (*QueryInflightFundRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{30} +} +func (m *QueryInflightFundRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInflightFundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInflightFundRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInflightFundRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInflightFundRequest.Merge(m, src) +} +func (m *QueryInflightFundRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInflightFundRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInflightFundRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInflightFundRequest proto.InternalMessageInfo + +func (m *QueryInflightFundRequest) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +// QueryInflightFundResponse returns an in-flight operation +type QueryInflightFundResponse struct { + Fund InflightFund `protobuf:"bytes,1,opt,name=fund,proto3" json:"fund"` +} + +func (m *QueryInflightFundResponse) Reset() { *m = QueryInflightFundResponse{} } +func (m *QueryInflightFundResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInflightFundResponse) ProtoMessage() {} +func (*QueryInflightFundResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{31} +} +func (m *QueryInflightFundResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInflightFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInflightFundResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInflightFundResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInflightFundResponse.Merge(m, src) +} +func (m *QueryInflightFundResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInflightFundResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInflightFundResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInflightFundResponse proto.InternalMessageInfo + +func (m *QueryInflightFundResponse) GetFund() InflightFund { + if m != nil { + return m.Fund + } + return InflightFund{} +} + +// QueryInflightFundsUserRequest requests all in-flight operations for a user +type QueryInflightFundsUserRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryInflightFundsUserRequest) Reset() { *m = QueryInflightFundsUserRequest{} } +func (m *QueryInflightFundsUserRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInflightFundsUserRequest) ProtoMessage() {} +func (*QueryInflightFundsUserRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{32} +} +func (m *QueryInflightFundsUserRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInflightFundsUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInflightFundsUserRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInflightFundsUserRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInflightFundsUserRequest.Merge(m, src) +} +func (m *QueryInflightFundsUserRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInflightFundsUserRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInflightFundsUserRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInflightFundsUserRequest proto.InternalMessageInfo + +func (m *QueryInflightFundsUserRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryInflightFundsUserRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryInflightFundsUserResponse returns all in-flight operations for a user +type QueryInflightFundsUserResponse struct { + Funds []InflightFund `protobuf:"bytes,1,rep,name=funds,proto3" json:"funds"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryInflightFundsUserResponse) Reset() { *m = QueryInflightFundsUserResponse{} } +func (m *QueryInflightFundsUserResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInflightFundsUserResponse) ProtoMessage() {} +func (*QueryInflightFundsUserResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{33} +} +func (m *QueryInflightFundsUserResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInflightFundsUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInflightFundsUserResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInflightFundsUserResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInflightFundsUserResponse.Merge(m, src) +} +func (m *QueryInflightFundsUserResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInflightFundsUserResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInflightFundsUserResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInflightFundsUserResponse proto.InternalMessageInfo + +func (m *QueryInflightFundsUserResponse) GetFunds() []InflightFund { + if m != nil { + return m.Funds + } + return nil +} + +func (m *QueryInflightFundsUserResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryCrossChainSnapshotRequest requests cross-chain snapshot for a vault +type QueryCrossChainSnapshotRequest struct { + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *QueryCrossChainSnapshotRequest) Reset() { *m = QueryCrossChainSnapshotRequest{} } +func (m *QueryCrossChainSnapshotRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCrossChainSnapshotRequest) ProtoMessage() {} +func (*QueryCrossChainSnapshotRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{34} +} +func (m *QueryCrossChainSnapshotRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCrossChainSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCrossChainSnapshotRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCrossChainSnapshotRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCrossChainSnapshotRequest.Merge(m, src) +} +func (m *QueryCrossChainSnapshotRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCrossChainSnapshotRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCrossChainSnapshotRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCrossChainSnapshotRequest proto.InternalMessageInfo + +func (m *QueryCrossChainSnapshotRequest) GetTimestamp() int64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +// QueryCrossChainSnapshotResponse returns cross-chain snapshot +type QueryCrossChainSnapshotResponse struct { + Snapshot CrossChainPositionSnapshot `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot"` +} + +func (m *QueryCrossChainSnapshotResponse) Reset() { *m = QueryCrossChainSnapshotResponse{} } +func (m *QueryCrossChainSnapshotResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCrossChainSnapshotResponse) ProtoMessage() {} +func (*QueryCrossChainSnapshotResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{35} +} +func (m *QueryCrossChainSnapshotResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCrossChainSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCrossChainSnapshotResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryCrossChainSnapshotResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCrossChainSnapshotResponse.Merge(m, src) +} +func (m *QueryCrossChainSnapshotResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCrossChainSnapshotResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCrossChainSnapshotResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCrossChainSnapshotResponse proto.InternalMessageInfo + +func (m *QueryCrossChainSnapshotResponse) GetSnapshot() CrossChainPositionSnapshot { + if m != nil { + return m.Snapshot + } + return CrossChainPositionSnapshot{} +} + +// QueryStaleInflightAlertsRequest requests stale inflight alerts +type QueryStaleInflightAlertsRequest struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryStaleInflightAlertsRequest) Reset() { *m = QueryStaleInflightAlertsRequest{} } +func (m *QueryStaleInflightAlertsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStaleInflightAlertsRequest) ProtoMessage() {} +func (*QueryStaleInflightAlertsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{36} +} +func (m *QueryStaleInflightAlertsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStaleInflightAlertsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStaleInflightAlertsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStaleInflightAlertsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStaleInflightAlertsRequest.Merge(m, src) +} +func (m *QueryStaleInflightAlertsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryStaleInflightAlertsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStaleInflightAlertsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStaleInflightAlertsRequest proto.InternalMessageInfo + +func (m *QueryStaleInflightAlertsRequest) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *QueryStaleInflightAlertsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryStaleInflightAlertsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +// QueryStaleInflightAlertsResponse returns stale inflight alerts +type QueryStaleInflightAlertsResponse struct { + Alerts []StaleInflightAlertWithDetails `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryStaleInflightAlertsResponse) Reset() { *m = QueryStaleInflightAlertsResponse{} } +func (m *QueryStaleInflightAlertsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStaleInflightAlertsResponse) ProtoMessage() {} +func (*QueryStaleInflightAlertsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{37} +} +func (m *QueryStaleInflightAlertsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStaleInflightAlertsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStaleInflightAlertsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStaleInflightAlertsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStaleInflightAlertsResponse.Merge(m, src) +} +func (m *QueryStaleInflightAlertsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryStaleInflightAlertsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStaleInflightAlertsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStaleInflightAlertsResponse proto.InternalMessageInfo + +func (m *QueryStaleInflightAlertsResponse) GetAlerts() []StaleInflightAlertWithDetails { + if m != nil { + return m.Alerts + } + return nil +} + +func (m *QueryStaleInflightAlertsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// StaleInflightAlertWithDetails includes additional context with the alert +type StaleInflightAlertWithDetails struct { + Alert StaleInflightAlert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert"` + Route CrossChainRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route"` + Fund InflightFund `protobuf:"bytes,3,opt,name=fund,proto3" json:"fund"` +} + +func (m *StaleInflightAlertWithDetails) Reset() { *m = StaleInflightAlertWithDetails{} } +func (m *StaleInflightAlertWithDetails) String() string { return proto.CompactTextString(m) } +func (*StaleInflightAlertWithDetails) ProtoMessage() {} +func (*StaleInflightAlertWithDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{38} +} +func (m *StaleInflightAlertWithDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StaleInflightAlertWithDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StaleInflightAlertWithDetails.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StaleInflightAlertWithDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_StaleInflightAlertWithDetails.Merge(m, src) +} +func (m *StaleInflightAlertWithDetails) XXX_Size() int { + return m.Size() +} +func (m *StaleInflightAlertWithDetails) XXX_DiscardUnknown() { + xxx_messageInfo_StaleInflightAlertWithDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_StaleInflightAlertWithDetails proto.InternalMessageInfo + +func (m *StaleInflightAlertWithDetails) GetAlert() StaleInflightAlert { + if m != nil { + return m.Alert + } + return StaleInflightAlert{} +} + +func (m *StaleInflightAlertWithDetails) GetRoute() CrossChainRoute { + if m != nil { + return m.Route + } + return CrossChainRoute{} +} + +func (m *StaleInflightAlertWithDetails) GetFund() InflightFund { + if m != nil { + return m.Fund + } + return InflightFund{} +} + +// NAV (spec-aligned) +type QueryNAVRequest struct { +} + +func (m *QueryNAVRequest) Reset() { *m = QueryNAVRequest{} } +func (m *QueryNAVRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNAVRequest) ProtoMessage() {} +func (*QueryNAVRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{39} +} +func (m *QueryNAVRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNAVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNAVRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNAVRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNAVRequest.Merge(m, src) +} +func (m *QueryNAVRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryNAVRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNAVRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNAVRequest proto.InternalMessageInfo + +type NAVBreakdownView struct { + Local string `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"` + RemotePositions string `protobuf:"bytes,2,opt,name=remote_positions,json=remotePositions,proto3" json:"remote_positions,omitempty"` + Inflight string `protobuf:"bytes,3,opt,name=inflight,proto3" json:"inflight,omitempty"` + Liabilities string `protobuf:"bytes,4,opt,name=liabilities,proto3" json:"liabilities,omitempty"` + Total string `protobuf:"bytes,5,opt,name=total,proto3" json:"total,omitempty"` +} + +func (m *NAVBreakdownView) Reset() { *m = NAVBreakdownView{} } +func (m *NAVBreakdownView) String() string { return proto.CompactTextString(m) } +func (*NAVBreakdownView) ProtoMessage() {} +func (*NAVBreakdownView) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{40} +} +func (m *NAVBreakdownView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVBreakdownView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVBreakdownView.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVBreakdownView) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVBreakdownView.Merge(m, src) +} +func (m *NAVBreakdownView) XXX_Size() int { + return m.Size() +} +func (m *NAVBreakdownView) XXX_DiscardUnknown() { + xxx_messageInfo_NAVBreakdownView.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVBreakdownView proto.InternalMessageInfo + +func (m *NAVBreakdownView) GetLocal() string { + if m != nil { + return m.Local + } + return "" +} + +func (m *NAVBreakdownView) GetRemotePositions() string { + if m != nil { + return m.RemotePositions + } + return "" +} + +func (m *NAVBreakdownView) GetInflight() string { + if m != nil { + return m.Inflight + } + return "" +} + +func (m *NAVBreakdownView) GetLiabilities() string { + if m != nil { + return m.Liabilities + } + return "" +} + +func (m *NAVBreakdownView) GetTotal() string { + if m != nil { + return m.Total + } + return "" +} + +type QueryNAVResponse struct { + Nav string `protobuf:"bytes,1,opt,name=nav,proto3" json:"nav,omitempty"` + YieldRate string `protobuf:"bytes,2,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` + LastUpdate time.Time `protobuf:"bytes,3,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"` + TotalDeposits string `protobuf:"bytes,4,opt,name=total_deposits,json=totalDeposits,proto3" json:"total_deposits,omitempty"` + TotalAccruedYield string `protobuf:"bytes,5,opt,name=total_accrued_yield,json=totalAccruedYield,proto3" json:"total_accrued_yield,omitempty"` + LocalAssets string `protobuf:"bytes,6,opt,name=local_assets,json=localAssets,proto3" json:"local_assets,omitempty"` + RemotePositionsValue string `protobuf:"bytes,7,opt,name=remote_positions_value,json=remotePositionsValue,proto3" json:"remote_positions_value,omitempty"` + InflightFundsValue string `protobuf:"bytes,8,opt,name=inflight_funds_value,json=inflightFundsValue,proto3" json:"inflight_funds_value,omitempty"` + PendingWithdrawals string `protobuf:"bytes,9,opt,name=pending_withdrawals,json=pendingWithdrawals,proto3" json:"pending_withdrawals,omitempty"` + NavBreakdown *NAVBreakdownView `protobuf:"bytes,10,opt,name=nav_breakdown,json=navBreakdown,proto3" json:"nav_breakdown,omitempty"` +} + +func (m *QueryNAVResponse) Reset() { *m = QueryNAVResponse{} } +func (m *QueryNAVResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNAVResponse) ProtoMessage() {} +func (*QueryNAVResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{41} +} +func (m *QueryNAVResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryNAVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryNAVResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryNAVResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNAVResponse.Merge(m, src) +} +func (m *QueryNAVResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryNAVResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNAVResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryNAVResponse proto.InternalMessageInfo + +func (m *QueryNAVResponse) GetNav() string { + if m != nil { + return m.Nav + } + return "" +} + +func (m *QueryNAVResponse) GetYieldRate() string { + if m != nil { + return m.YieldRate + } + return "" +} + +func (m *QueryNAVResponse) GetLastUpdate() time.Time { + if m != nil { + return m.LastUpdate + } + return time.Time{} +} + +func (m *QueryNAVResponse) GetTotalDeposits() string { + if m != nil { + return m.TotalDeposits + } + return "" +} + +func (m *QueryNAVResponse) GetTotalAccruedYield() string { + if m != nil { + return m.TotalAccruedYield + } + return "" +} + +func (m *QueryNAVResponse) GetLocalAssets() string { + if m != nil { + return m.LocalAssets + } + return "" +} + +func (m *QueryNAVResponse) GetRemotePositionsValue() string { + if m != nil { + return m.RemotePositionsValue + } + return "" +} + +func (m *QueryNAVResponse) GetInflightFundsValue() string { + if m != nil { + return m.InflightFundsValue + } + return "" +} + +func (m *QueryNAVResponse) GetPendingWithdrawals() string { + if m != nil { + return m.PendingWithdrawals + } + return "" +} + +func (m *QueryNAVResponse) GetNavBreakdown() *NAVBreakdownView { + if m != nil { + return m.NavBreakdown + } + return nil +} + +// Withdrawal queue views +type QueryWithdrawalQueueRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryWithdrawalQueueRequest) Reset() { *m = QueryWithdrawalQueueRequest{} } +func (m *QueryWithdrawalQueueRequest) String() string { return proto.CompactTextString(m) } +func (*QueryWithdrawalQueueRequest) ProtoMessage() {} +func (*QueryWithdrawalQueueRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{42} +} +func (m *QueryWithdrawalQueueRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryWithdrawalQueueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryWithdrawalQueueRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryWithdrawalQueueRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWithdrawalQueueRequest.Merge(m, src) +} +func (m *QueryWithdrawalQueueRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryWithdrawalQueueRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWithdrawalQueueRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryWithdrawalQueueRequest proto.InternalMessageInfo + +func (m *QueryWithdrawalQueueRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type WithdrawalQueueItem struct { + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + PrincipalAmount string `protobuf:"bytes,4,opt,name=principal_amount,json=principalAmount,proto3" json:"principal_amount,omitempty"` + YieldAmount string `protobuf:"bytes,5,opt,name=yield_amount,json=yieldAmount,proto3" json:"yield_amount,omitempty"` + Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` + Position uint64 `protobuf:"varint,8,opt,name=position,proto3" json:"position,omitempty"` +} + +func (m *WithdrawalQueueItem) Reset() { *m = WithdrawalQueueItem{} } +func (m *WithdrawalQueueItem) String() string { return proto.CompactTextString(m) } +func (*WithdrawalQueueItem) ProtoMessage() {} +func (*WithdrawalQueueItem) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{43} +} +func (m *WithdrawalQueueItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithdrawalQueueItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithdrawalQueueItem.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithdrawalQueueItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithdrawalQueueItem.Merge(m, src) +} +func (m *WithdrawalQueueItem) XXX_Size() int { + return m.Size() +} +func (m *WithdrawalQueueItem) XXX_DiscardUnknown() { + xxx_messageInfo_WithdrawalQueueItem.DiscardUnknown(m) +} + +var xxx_messageInfo_WithdrawalQueueItem proto.InternalMessageInfo + +func (m *WithdrawalQueueItem) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *WithdrawalQueueItem) GetUser() string { + if m != nil { + return m.User + } + return "" +} + +func (m *WithdrawalQueueItem) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *WithdrawalQueueItem) GetPrincipalAmount() string { + if m != nil { + return m.PrincipalAmount + } + return "" +} + +func (m *WithdrawalQueueItem) GetYieldAmount() string { + if m != nil { + return m.YieldAmount + } + return "" +} + +func (m *WithdrawalQueueItem) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *WithdrawalQueueItem) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *WithdrawalQueueItem) GetPosition() uint64 { + if m != nil { + return m.Position + } + return 0 +} + +type QueryWithdrawalQueueResponse struct { + PendingRequests []WithdrawalQueueItem `protobuf:"bytes,1,rep,name=pending_requests,json=pendingRequests,proto3" json:"pending_requests"` + TotalPending string `protobuf:"bytes,2,opt,name=total_pending,json=totalPending,proto3" json:"total_pending,omitempty"` + AvailableLiquidity string `protobuf:"bytes,3,opt,name=available_liquidity,json=availableLiquidity,proto3" json:"available_liquidity,omitempty"` + QueueLength uint64 `protobuf:"varint,4,opt,name=queue_length,json=queueLength,proto3" json:"queue_length,omitempty"` + EstimatedProcessingTime string `protobuf:"bytes,5,opt,name=estimated_processing_time,json=estimatedProcessingTime,proto3" json:"estimated_processing_time,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,6,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryWithdrawalQueueResponse) Reset() { *m = QueryWithdrawalQueueResponse{} } +func (m *QueryWithdrawalQueueResponse) String() string { return proto.CompactTextString(m) } +func (*QueryWithdrawalQueueResponse) ProtoMessage() {} +func (*QueryWithdrawalQueueResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{44} +} +func (m *QueryWithdrawalQueueResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryWithdrawalQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryWithdrawalQueueResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryWithdrawalQueueResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWithdrawalQueueResponse.Merge(m, src) +} +func (m *QueryWithdrawalQueueResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryWithdrawalQueueResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWithdrawalQueueResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryWithdrawalQueueResponse proto.InternalMessageInfo + +func (m *QueryWithdrawalQueueResponse) GetPendingRequests() []WithdrawalQueueItem { + if m != nil { + return m.PendingRequests + } + return nil +} + +func (m *QueryWithdrawalQueueResponse) GetTotalPending() string { + if m != nil { + return m.TotalPending + } + return "" +} + +func (m *QueryWithdrawalQueueResponse) GetAvailableLiquidity() string { + if m != nil { + return m.AvailableLiquidity + } + return "" +} + +func (m *QueryWithdrawalQueueResponse) GetQueueLength() uint64 { + if m != nil { + return m.QueueLength + } + return 0 +} + +func (m *QueryWithdrawalQueueResponse) GetEstimatedProcessingTime() string { + if m != nil { + return m.EstimatedProcessingTime + } + return "" +} + +func (m *QueryWithdrawalQueueResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// User withdrawals +type QueryUserWithdrawalsRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryUserWithdrawalsRequest) Reset() { *m = QueryUserWithdrawalsRequest{} } +func (m *QueryUserWithdrawalsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUserWithdrawalsRequest) ProtoMessage() {} +func (*QueryUserWithdrawalsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{45} +} +func (m *QueryUserWithdrawalsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserWithdrawalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserWithdrawalsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserWithdrawalsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserWithdrawalsRequest.Merge(m, src) +} +func (m *QueryUserWithdrawalsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryUserWithdrawalsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserWithdrawalsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserWithdrawalsRequest proto.InternalMessageInfo + +func (m *QueryUserWithdrawalsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryUserWithdrawalsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type WithdrawalStatusItem struct { + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + PrincipalAmount string `protobuf:"bytes,3,opt,name=principal_amount,json=principalAmount,proto3" json:"principal_amount,omitempty"` + YieldAmount string `protobuf:"bytes,4,opt,name=yield_amount,json=yieldAmount,proto3" json:"yield_amount,omitempty"` + FulfilledAmount string `protobuf:"bytes,5,opt,name=fulfilled_amount,json=fulfilledAmount,proto3" json:"fulfilled_amount,omitempty"` + Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` + Timestamp time.Time `protobuf:"bytes,7,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + ClaimableAt *time.Time `protobuf:"bytes,8,opt,name=claimable_at,json=claimableAt,proto3,stdtime" json:"claimable_at,omitempty"` + ClaimedAt *time.Time `protobuf:"bytes,9,opt,name=claimed_at,json=claimedAt,proto3,stdtime" json:"claimed_at,omitempty"` +} + +func (m *WithdrawalStatusItem) Reset() { *m = WithdrawalStatusItem{} } +func (m *WithdrawalStatusItem) String() string { return proto.CompactTextString(m) } +func (*WithdrawalStatusItem) ProtoMessage() {} +func (*WithdrawalStatusItem) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{46} +} +func (m *WithdrawalStatusItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithdrawalStatusItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithdrawalStatusItem.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithdrawalStatusItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithdrawalStatusItem.Merge(m, src) +} +func (m *WithdrawalStatusItem) XXX_Size() int { + return m.Size() +} +func (m *WithdrawalStatusItem) XXX_DiscardUnknown() { + xxx_messageInfo_WithdrawalStatusItem.DiscardUnknown(m) +} + +var xxx_messageInfo_WithdrawalStatusItem proto.InternalMessageInfo + +func (m *WithdrawalStatusItem) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *WithdrawalStatusItem) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *WithdrawalStatusItem) GetPrincipalAmount() string { + if m != nil { + return m.PrincipalAmount + } + return "" +} + +func (m *WithdrawalStatusItem) GetYieldAmount() string { + if m != nil { + return m.YieldAmount + } + return "" +} + +func (m *WithdrawalStatusItem) GetFulfilledAmount() string { + if m != nil { + return m.FulfilledAmount + } + return "" +} + +func (m *WithdrawalStatusItem) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *WithdrawalStatusItem) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *WithdrawalStatusItem) GetClaimableAt() *time.Time { + if m != nil { + return m.ClaimableAt + } + return nil +} + +func (m *WithdrawalStatusItem) GetClaimedAt() *time.Time { + if m != nil { + return m.ClaimedAt + } + return nil +} + +type QueryUserWithdrawalsResponse struct { + Withdrawals []WithdrawalStatusItem `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals"` + TotalPending string `protobuf:"bytes,2,opt,name=total_pending,json=totalPending,proto3" json:"total_pending,omitempty"` + TotalClaimable string `protobuf:"bytes,3,opt,name=total_claimable,json=totalClaimable,proto3" json:"total_claimable,omitempty"` + TotalClaimed string `protobuf:"bytes,4,opt,name=total_claimed,json=totalClaimed,proto3" json:"total_claimed,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryUserWithdrawalsResponse) Reset() { *m = QueryUserWithdrawalsResponse{} } +func (m *QueryUserWithdrawalsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUserWithdrawalsResponse) ProtoMessage() {} +func (*QueryUserWithdrawalsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{47} +} +func (m *QueryUserWithdrawalsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserWithdrawalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserWithdrawalsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserWithdrawalsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserWithdrawalsResponse.Merge(m, src) +} +func (m *QueryUserWithdrawalsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryUserWithdrawalsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserWithdrawalsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserWithdrawalsResponse proto.InternalMessageInfo + +func (m *QueryUserWithdrawalsResponse) GetWithdrawals() []WithdrawalStatusItem { + if m != nil { + return m.Withdrawals + } + return nil +} + +func (m *QueryUserWithdrawalsResponse) GetTotalPending() string { + if m != nil { + return m.TotalPending + } + return "" +} + +func (m *QueryUserWithdrawalsResponse) GetTotalClaimable() string { + if m != nil { + return m.TotalClaimable + } + return "" +} + +func (m *QueryUserWithdrawalsResponse) GetTotalClaimed() string { + if m != nil { + return m.TotalClaimed + } + return "" +} + +func (m *QueryUserWithdrawalsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// User balance +type QueryUserBalanceRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryUserBalanceRequest) Reset() { *m = QueryUserBalanceRequest{} } +func (m *QueryUserBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUserBalanceRequest) ProtoMessage() {} +func (*QueryUserBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{48} +} +func (m *QueryUserBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserBalanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserBalanceRequest.Merge(m, src) +} +func (m *QueryUserBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryUserBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserBalanceRequest proto.InternalMessageInfo + +func (m *QueryUserBalanceRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryUserBalanceResponse struct { + DepositAmount string `protobuf:"bytes,1,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` + AccruedYield string `protobuf:"bytes,2,opt,name=accrued_yield,json=accruedYield,proto3" json:"accrued_yield,omitempty"` + TotalValue string `protobuf:"bytes,3,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` + UnrealizedGain string `protobuf:"bytes,4,opt,name=unrealized_gain,json=unrealizedGain,proto3" json:"unrealized_gain,omitempty"` + LockedAmount string `protobuf:"bytes,5,opt,name=locked_amount,json=lockedAmount,proto3" json:"locked_amount,omitempty"` +} + +func (m *QueryUserBalanceResponse) Reset() { *m = QueryUserBalanceResponse{} } +func (m *QueryUserBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUserBalanceResponse) ProtoMessage() {} +func (*QueryUserBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{49} +} +func (m *QueryUserBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserBalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryUserBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserBalanceResponse.Merge(m, src) +} +func (m *QueryUserBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryUserBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserBalanceResponse proto.InternalMessageInfo + +func (m *QueryUserBalanceResponse) GetDepositAmount() string { + if m != nil { + return m.DepositAmount + } + return "" +} + +func (m *QueryUserBalanceResponse) GetAccruedYield() string { + if m != nil { + return m.AccruedYield + } + return "" +} + +func (m *QueryUserBalanceResponse) GetTotalValue() string { + if m != nil { + return m.TotalValue + } + return "" +} + +func (m *QueryUserBalanceResponse) GetUnrealizedGain() string { + if m != nil { + return m.UnrealizedGain + } + return "" +} + +func (m *QueryUserBalanceResponse) GetLockedAmount() string { + if m != nil { + return m.LockedAmount + } + return "" +} + +// Deposit velocity +type QueryDepositVelocityRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryDepositVelocityRequest) Reset() { *m = QueryDepositVelocityRequest{} } +func (m *QueryDepositVelocityRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDepositVelocityRequest) ProtoMessage() {} +func (*QueryDepositVelocityRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{50} +} +func (m *QueryDepositVelocityRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositVelocityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositVelocityRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDepositVelocityRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositVelocityRequest.Merge(m, src) +} +func (m *QueryDepositVelocityRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositVelocityRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositVelocityRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositVelocityRequest proto.InternalMessageInfo + +func (m *QueryDepositVelocityRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryDepositVelocityResponse struct { + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + LastDepositBlock string `protobuf:"bytes,2,opt,name=last_deposit_block,json=lastDepositBlock,proto3" json:"last_deposit_block,omitempty"` + RecentDepositCount uint32 `protobuf:"varint,3,opt,name=recent_deposit_count,json=recentDepositCount,proto3" json:"recent_deposit_count,omitempty"` + RecentDepositVolume string `protobuf:"bytes,4,opt,name=recent_deposit_volume,json=recentDepositVolume,proto3" json:"recent_deposit_volume,omitempty"` + TimeWindowBlocks int64 `protobuf:"varint,5,opt,name=time_window_blocks,json=timeWindowBlocks,proto3" json:"time_window_blocks,omitempty"` + SuspiciousActivityFlag bool `protobuf:"varint,6,opt,name=suspicious_activity_flag,json=suspiciousActivityFlag,proto3" json:"suspicious_activity_flag,omitempty"` + CooldownRemainingBlocks int64 `protobuf:"varint,7,opt,name=cooldown_remaining_blocks,json=cooldownRemainingBlocks,proto3" json:"cooldown_remaining_blocks,omitempty"` + VelocityScore string `protobuf:"bytes,8,opt,name=velocity_score,json=velocityScore,proto3" json:"velocity_score,omitempty"` +} + +func (m *QueryDepositVelocityResponse) Reset() { *m = QueryDepositVelocityResponse{} } +func (m *QueryDepositVelocityResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDepositVelocityResponse) ProtoMessage() {} +func (*QueryDepositVelocityResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{51} +} +func (m *QueryDepositVelocityResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositVelocityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositVelocityResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDepositVelocityResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositVelocityResponse.Merge(m, src) +} +func (m *QueryDepositVelocityResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositVelocityResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositVelocityResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositVelocityResponse proto.InternalMessageInfo + +func (m *QueryDepositVelocityResponse) GetUser() string { + if m != nil { + return m.User + } + return "" +} + +func (m *QueryDepositVelocityResponse) GetLastDepositBlock() string { + if m != nil { + return m.LastDepositBlock + } + return "" +} + +func (m *QueryDepositVelocityResponse) GetRecentDepositCount() uint32 { + if m != nil { + return m.RecentDepositCount + } + return 0 +} + +func (m *QueryDepositVelocityResponse) GetRecentDepositVolume() string { + if m != nil { + return m.RecentDepositVolume + } + return "" +} + +func (m *QueryDepositVelocityResponse) GetTimeWindowBlocks() int64 { + if m != nil { + return m.TimeWindowBlocks + } + return 0 +} + +func (m *QueryDepositVelocityResponse) GetSuspiciousActivityFlag() bool { + if m != nil { + return m.SuspiciousActivityFlag + } + return false +} + +func (m *QueryDepositVelocityResponse) GetCooldownRemainingBlocks() int64 { + if m != nil { + return m.CooldownRemainingBlocks + } + return 0 +} + +func (m *QueryDepositVelocityResponse) GetVelocityScore() string { + if m != nil { + return m.VelocityScore + } + return "" +} + +// Simulations +type QuerySimulateDepositRequest struct { + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QuerySimulateDepositRequest) Reset() { *m = QuerySimulateDepositRequest{} } +func (m *QuerySimulateDepositRequest) String() string { return proto.CompactTextString(m) } +func (*QuerySimulateDepositRequest) ProtoMessage() {} +func (*QuerySimulateDepositRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{52} +} +func (m *QuerySimulateDepositRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySimulateDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySimulateDepositRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySimulateDepositRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySimulateDepositRequest.Merge(m, src) +} +func (m *QuerySimulateDepositRequest) XXX_Size() int { + return m.Size() +} +func (m *QuerySimulateDepositRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySimulateDepositRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySimulateDepositRequest proto.InternalMessageInfo + +func (m *QuerySimulateDepositRequest) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *QuerySimulateDepositRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type CheckResultsView struct { + WithinUserLimit bool `protobuf:"varint,1,opt,name=within_user_limit,json=withinUserLimit,proto3" json:"within_user_limit,omitempty"` + WithinBlockLimit bool `protobuf:"varint,2,opt,name=within_block_limit,json=withinBlockLimit,proto3" json:"within_block_limit,omitempty"` + WithinTotalLimit bool `protobuf:"varint,3,opt,name=within_total_limit,json=withinTotalLimit,proto3" json:"within_total_limit,omitempty"` + CooldownPassed bool `protobuf:"varint,4,opt,name=cooldown_passed,json=cooldownPassed,proto3" json:"cooldown_passed,omitempty"` + VelocityCheckPassed bool `protobuf:"varint,5,opt,name=velocity_check_passed,json=velocityCheckPassed,proto3" json:"velocity_check_passed,omitempty"` +} + +func (m *CheckResultsView) Reset() { *m = CheckResultsView{} } +func (m *CheckResultsView) String() string { return proto.CompactTextString(m) } +func (*CheckResultsView) ProtoMessage() {} +func (*CheckResultsView) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{53} +} +func (m *CheckResultsView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CheckResultsView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CheckResultsView.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CheckResultsView) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckResultsView.Merge(m, src) +} +func (m *CheckResultsView) XXX_Size() int { + return m.Size() +} +func (m *CheckResultsView) XXX_DiscardUnknown() { + xxx_messageInfo_CheckResultsView.DiscardUnknown(m) +} + +var xxx_messageInfo_CheckResultsView proto.InternalMessageInfo + +func (m *CheckResultsView) GetWithinUserLimit() bool { + if m != nil { + return m.WithinUserLimit + } + return false +} + +func (m *CheckResultsView) GetWithinBlockLimit() bool { + if m != nil { + return m.WithinBlockLimit + } + return false +} + +func (m *CheckResultsView) GetWithinTotalLimit() bool { + if m != nil { + return m.WithinTotalLimit + } + return false +} + +func (m *CheckResultsView) GetCooldownPassed() bool { + if m != nil { + return m.CooldownPassed + } + return false +} + +func (m *CheckResultsView) GetVelocityCheckPassed() bool { + if m != nil { + return m.VelocityCheckPassed + } + return false +} + +type QuerySimulateDepositResponse struct { + ExpectedDeposit string `protobuf:"bytes,1,opt,name=expected_deposit,json=expectedDeposit,proto3" json:"expected_deposit,omitempty"` + YieldRate string `protobuf:"bytes,2,opt,name=yield_rate,json=yieldRate,proto3" json:"yield_rate,omitempty"` + Checks *CheckResultsView `protobuf:"bytes,3,opt,name=checks,proto3" json:"checks,omitempty"` + Warnings []string `protobuf:"bytes,4,rep,name=warnings,proto3" json:"warnings,omitempty"` +} + +func (m *QuerySimulateDepositResponse) Reset() { *m = QuerySimulateDepositResponse{} } +func (m *QuerySimulateDepositResponse) String() string { return proto.CompactTextString(m) } +func (*QuerySimulateDepositResponse) ProtoMessage() {} +func (*QuerySimulateDepositResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{54} +} +func (m *QuerySimulateDepositResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySimulateDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySimulateDepositResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySimulateDepositResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySimulateDepositResponse.Merge(m, src) +} +func (m *QuerySimulateDepositResponse) XXX_Size() int { + return m.Size() +} +func (m *QuerySimulateDepositResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySimulateDepositResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySimulateDepositResponse proto.InternalMessageInfo + +func (m *QuerySimulateDepositResponse) GetExpectedDeposit() string { + if m != nil { + return m.ExpectedDeposit + } + return "" +} + +func (m *QuerySimulateDepositResponse) GetYieldRate() string { + if m != nil { + return m.YieldRate + } + return "" +} + +func (m *QuerySimulateDepositResponse) GetChecks() *CheckResultsView { + if m != nil { + return m.Checks + } + return nil +} + +func (m *QuerySimulateDepositResponse) GetWarnings() []string { + if m != nil { + return m.Warnings + } + return nil +} + +type QuerySimulateWithdrawalRequest struct { + Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QuerySimulateWithdrawalRequest) Reset() { *m = QuerySimulateWithdrawalRequest{} } +func (m *QuerySimulateWithdrawalRequest) String() string { return proto.CompactTextString(m) } +func (*QuerySimulateWithdrawalRequest) ProtoMessage() {} +func (*QuerySimulateWithdrawalRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{55} +} +func (m *QuerySimulateWithdrawalRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySimulateWithdrawalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySimulateWithdrawalRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySimulateWithdrawalRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySimulateWithdrawalRequest.Merge(m, src) +} +func (m *QuerySimulateWithdrawalRequest) XXX_Size() int { + return m.Size() +} +func (m *QuerySimulateWithdrawalRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySimulateWithdrawalRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySimulateWithdrawalRequest proto.InternalMessageInfo + +func (m *QuerySimulateWithdrawalRequest) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *QuerySimulateWithdrawalRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QuerySimulateWithdrawalResponse struct { + ExpectedAmount string `protobuf:"bytes,1,opt,name=expected_amount,json=expectedAmount,proto3" json:"expected_amount,omitempty"` + PrincipalPortion string `protobuf:"bytes,2,opt,name=principal_portion,json=principalPortion,proto3" json:"principal_portion,omitempty"` + YieldPortion string `protobuf:"bytes,3,opt,name=yield_portion,json=yieldPortion,proto3" json:"yield_portion,omitempty"` + QueuePosition uint64 `protobuf:"varint,4,opt,name=queue_position,json=queuePosition,proto3" json:"queue_position,omitempty"` + EstimatedFulfillmentTime string `protobuf:"bytes,5,opt,name=estimated_fulfillment_time,json=estimatedFulfillmentTime,proto3" json:"estimated_fulfillment_time,omitempty"` + AvailableLiquidity string `protobuf:"bytes,6,opt,name=available_liquidity,json=availableLiquidity,proto3" json:"available_liquidity,omitempty"` + AheadInQueue string `protobuf:"bytes,7,opt,name=ahead_in_queue,json=aheadInQueue,proto3" json:"ahead_in_queue,omitempty"` +} + +func (m *QuerySimulateWithdrawalResponse) Reset() { *m = QuerySimulateWithdrawalResponse{} } +func (m *QuerySimulateWithdrawalResponse) String() string { return proto.CompactTextString(m) } +func (*QuerySimulateWithdrawalResponse) ProtoMessage() {} +func (*QuerySimulateWithdrawalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{56} +} +func (m *QuerySimulateWithdrawalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QuerySimulateWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QuerySimulateWithdrawalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QuerySimulateWithdrawalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuerySimulateWithdrawalResponse.Merge(m, src) +} +func (m *QuerySimulateWithdrawalResponse) XXX_Size() int { + return m.Size() +} +func (m *QuerySimulateWithdrawalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QuerySimulateWithdrawalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QuerySimulateWithdrawalResponse proto.InternalMessageInfo + +func (m *QuerySimulateWithdrawalResponse) GetExpectedAmount() string { + if m != nil { + return m.ExpectedAmount + } + return "" +} + +func (m *QuerySimulateWithdrawalResponse) GetPrincipalPortion() string { + if m != nil { + return m.PrincipalPortion + } + return "" +} + +func (m *QuerySimulateWithdrawalResponse) GetYieldPortion() string { + if m != nil { + return m.YieldPortion + } + return "" +} + +func (m *QuerySimulateWithdrawalResponse) GetQueuePosition() uint64 { + if m != nil { + return m.QueuePosition + } + return 0 +} + +func (m *QuerySimulateWithdrawalResponse) GetEstimatedFulfillmentTime() string { + if m != nil { + return m.EstimatedFulfillmentTime + } + return "" +} + +func (m *QuerySimulateWithdrawalResponse) GetAvailableLiquidity() string { + if m != nil { + return m.AvailableLiquidity + } + return "" +} + +func (m *QuerySimulateWithdrawalResponse) GetAheadInQueue() string { + if m != nil { + return m.AheadInQueue + } + return "" +} + +// Inflight funds aggregates +type QueryInflightFundsRequest struct { +} + +func (m *QueryInflightFundsRequest) Reset() { *m = QueryInflightFundsRequest{} } +func (m *QueryInflightFundsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInflightFundsRequest) ProtoMessage() {} +func (*QueryInflightFundsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{57} +} +func (m *QueryInflightFundsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInflightFundsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInflightFundsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInflightFundsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInflightFundsRequest.Merge(m, src) +} +func (m *QueryInflightFundsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInflightFundsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInflightFundsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInflightFundsRequest proto.InternalMessageInfo + +type InflightFundView struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + CurrentValue string `protobuf:"bytes,5,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + SourceChain string `protobuf:"bytes,6,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + DestinationChain string `protobuf:"bytes,7,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"` + SourcePositionId uint64 `protobuf:"varint,8,opt,name=source_position_id,json=sourcePositionId,proto3" json:"source_position_id,omitempty"` + DestinationPositionId uint64 `protobuf:"varint,9,opt,name=destination_position_id,json=destinationPositionId,proto3" json:"destination_position_id,omitempty"` + InitiatedAt time.Time `protobuf:"bytes,10,opt,name=initiated_at,json=initiatedAt,proto3,stdtime" json:"initiated_at"` + ExpectedAt time.Time `protobuf:"bytes,11,opt,name=expected_at,json=expectedAt,proto3,stdtime" json:"expected_at"` + Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` + TimeRemaining string `protobuf:"bytes,13,opt,name=time_remaining,json=timeRemaining,proto3" json:"time_remaining,omitempty"` +} + +func (m *InflightFundView) Reset() { *m = InflightFundView{} } +func (m *InflightFundView) String() string { return proto.CompactTextString(m) } +func (*InflightFundView) ProtoMessage() {} +func (*InflightFundView) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{58} +} +func (m *InflightFundView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InflightFundView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InflightFundView.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InflightFundView) XXX_Merge(src proto.Message) { + xxx_messageInfo_InflightFundView.Merge(m, src) +} +func (m *InflightFundView) XXX_Size() int { + return m.Size() +} +func (m *InflightFundView) XXX_DiscardUnknown() { + xxx_messageInfo_InflightFundView.DiscardUnknown(m) +} + +var xxx_messageInfo_InflightFundView proto.InternalMessageInfo + +func (m *InflightFundView) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *InflightFundView) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *InflightFundView) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *InflightFundView) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *InflightFundView) GetCurrentValue() string { + if m != nil { + return m.CurrentValue + } + return "" +} + +func (m *InflightFundView) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *InflightFundView) GetDestinationChain() string { + if m != nil { + return m.DestinationChain + } + return "" +} + +func (m *InflightFundView) GetSourcePositionId() uint64 { + if m != nil { + return m.SourcePositionId + } + return 0 +} + +func (m *InflightFundView) GetDestinationPositionId() uint64 { + if m != nil { + return m.DestinationPositionId + } + return 0 +} + +func (m *InflightFundView) GetInitiatedAt() time.Time { + if m != nil { + return m.InitiatedAt + } + return time.Time{} +} + +func (m *InflightFundView) GetExpectedAt() time.Time { + if m != nil { + return m.ExpectedAt + } + return time.Time{} +} + +func (m *InflightFundView) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *InflightFundView) GetTimeRemaining() string { + if m != nil { + return m.TimeRemaining + } + return "" +} + +type QueryInflightFundsResponse struct { + InflightFunds []InflightFundView `protobuf:"bytes,1,rep,name=inflight_funds,json=inflightFunds,proto3" json:"inflight_funds"` + TotalInflight string `protobuf:"bytes,2,opt,name=total_inflight,json=totalInflight,proto3" json:"total_inflight,omitempty"` + PendingDeployment string `protobuf:"bytes,3,opt,name=pending_deployment,json=pendingDeployment,proto3" json:"pending_deployment,omitempty"` + PendingWithdrawalDistribution string `protobuf:"bytes,4,opt,name=pending_withdrawal_distribution,json=pendingWithdrawalDistribution,proto3" json:"pending_withdrawal_distribution,omitempty"` + ByRoute map[string]string `protobuf:"bytes,5,rep,name=by_route,json=byRoute,proto3" json:"by_route,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ByType map[string]string `protobuf:"bytes,6,rep,name=by_type,json=byType,proto3" json:"by_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ByStatus map[string]string `protobuf:"bytes,7,rep,name=by_status,json=byStatus,proto3" json:"by_status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *QueryInflightFundsResponse) Reset() { *m = QueryInflightFundsResponse{} } +func (m *QueryInflightFundsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInflightFundsResponse) ProtoMessage() {} +func (*QueryInflightFundsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{59} +} +func (m *QueryInflightFundsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInflightFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInflightFundsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryInflightFundsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInflightFundsResponse.Merge(m, src) +} +func (m *QueryInflightFundsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInflightFundsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInflightFundsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInflightFundsResponse proto.InternalMessageInfo + +func (m *QueryInflightFundsResponse) GetInflightFunds() []InflightFundView { + if m != nil { + return m.InflightFunds + } + return nil +} + +func (m *QueryInflightFundsResponse) GetTotalInflight() string { + if m != nil { + return m.TotalInflight + } + return "" +} + +func (m *QueryInflightFundsResponse) GetPendingDeployment() string { + if m != nil { + return m.PendingDeployment + } + return "" +} + +func (m *QueryInflightFundsResponse) GetPendingWithdrawalDistribution() string { + if m != nil { + return m.PendingWithdrawalDistribution + } + return "" +} + +func (m *QueryInflightFundsResponse) GetByRoute() map[string]string { + if m != nil { + return m.ByRoute + } + return nil +} + +func (m *QueryInflightFundsResponse) GetByType() map[string]string { + if m != nil { + return m.ByType + } + return nil +} + +func (m *QueryInflightFundsResponse) GetByStatus() map[string]string { + if m != nil { + return m.ByStatus + } + return nil +} + +type QueryStaleInflightFundsRequest struct { +} + +func (m *QueryStaleInflightFundsRequest) Reset() { *m = QueryStaleInflightFundsRequest{} } +func (m *QueryStaleInflightFundsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStaleInflightFundsRequest) ProtoMessage() {} +func (*QueryStaleInflightFundsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{60} +} +func (m *QueryStaleInflightFundsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStaleInflightFundsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStaleInflightFundsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStaleInflightFundsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStaleInflightFundsRequest.Merge(m, src) +} +func (m *QueryStaleInflightFundsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryStaleInflightFundsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStaleInflightFundsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStaleInflightFundsRequest proto.InternalMessageInfo + +type StaleInflightFundView struct { + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + SourceChain string `protobuf:"bytes,5,opt,name=source_chain,json=sourceChain,proto3" json:"source_chain,omitempty"` + DestinationChain string `protobuf:"bytes,6,opt,name=destination_chain,json=destinationChain,proto3" json:"destination_chain,omitempty"` + InitiatedAt time.Time `protobuf:"bytes,7,opt,name=initiated_at,json=initiatedAt,proto3,stdtime" json:"initiated_at"` + ExpectedAt time.Time `protobuf:"bytes,8,opt,name=expected_at,json=expectedAt,proto3,stdtime" json:"expected_at"` + HoursOverdue string `protobuf:"bytes,9,opt,name=hours_overdue,json=hoursOverdue,proto3" json:"hours_overdue,omitempty"` + LastKnownStatus string `protobuf:"bytes,10,opt,name=last_known_status,json=lastKnownStatus,proto3" json:"last_known_status,omitempty"` + RecommendedAction string `protobuf:"bytes,11,opt,name=recommended_action,json=recommendedAction,proto3" json:"recommended_action,omitempty"` +} + +func (m *StaleInflightFundView) Reset() { *m = StaleInflightFundView{} } +func (m *StaleInflightFundView) String() string { return proto.CompactTextString(m) } +func (*StaleInflightFundView) ProtoMessage() {} +func (*StaleInflightFundView) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{61} +} +func (m *StaleInflightFundView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StaleInflightFundView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StaleInflightFundView.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StaleInflightFundView) XXX_Merge(src proto.Message) { + xxx_messageInfo_StaleInflightFundView.Merge(m, src) +} +func (m *StaleInflightFundView) XXX_Size() int { + return m.Size() +} +func (m *StaleInflightFundView) XXX_DiscardUnknown() { + xxx_messageInfo_StaleInflightFundView.DiscardUnknown(m) +} + +var xxx_messageInfo_StaleInflightFundView proto.InternalMessageInfo + +func (m *StaleInflightFundView) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *StaleInflightFundView) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *StaleInflightFundView) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *StaleInflightFundView) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *StaleInflightFundView) GetSourceChain() string { + if m != nil { + return m.SourceChain + } + return "" +} + +func (m *StaleInflightFundView) GetDestinationChain() string { + if m != nil { + return m.DestinationChain + } + return "" +} + +func (m *StaleInflightFundView) GetInitiatedAt() time.Time { + if m != nil { + return m.InitiatedAt + } + return time.Time{} +} + +func (m *StaleInflightFundView) GetExpectedAt() time.Time { + if m != nil { + return m.ExpectedAt + } + return time.Time{} +} + +func (m *StaleInflightFundView) GetHoursOverdue() string { + if m != nil { + return m.HoursOverdue + } + return "" +} + +func (m *StaleInflightFundView) GetLastKnownStatus() string { + if m != nil { + return m.LastKnownStatus + } + return "" +} + +func (m *StaleInflightFundView) GetRecommendedAction() string { + if m != nil { + return m.RecommendedAction + } + return "" +} + +type QueryStaleInflightFundsResponse struct { + StaleFunds []StaleInflightFundView `protobuf:"bytes,1,rep,name=stale_funds,json=staleFunds,proto3" json:"stale_funds"` + TotalStaleValue string `protobuf:"bytes,2,opt,name=total_stale_value,json=totalStaleValue,proto3" json:"total_stale_value,omitempty"` + TotalStaleCount uint64 `protobuf:"varint,3,opt,name=total_stale_count,json=totalStaleCount,proto3" json:"total_stale_count,omitempty"` + OldestStaleHours string `protobuf:"bytes,4,opt,name=oldest_stale_hours,json=oldestStaleHours,proto3" json:"oldest_stale_hours,omitempty"` +} + +func (m *QueryStaleInflightFundsResponse) Reset() { *m = QueryStaleInflightFundsResponse{} } +func (m *QueryStaleInflightFundsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStaleInflightFundsResponse) ProtoMessage() {} +func (*QueryStaleInflightFundsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{62} +} +func (m *QueryStaleInflightFundsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStaleInflightFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStaleInflightFundsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStaleInflightFundsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStaleInflightFundsResponse.Merge(m, src) +} +func (m *QueryStaleInflightFundsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryStaleInflightFundsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStaleInflightFundsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStaleInflightFundsResponse proto.InternalMessageInfo + +func (m *QueryStaleInflightFundsResponse) GetStaleFunds() []StaleInflightFundView { + if m != nil { + return m.StaleFunds + } + return nil +} + +func (m *QueryStaleInflightFundsResponse) GetTotalStaleValue() string { + if m != nil { + return m.TotalStaleValue + } + return "" +} + +func (m *QueryStaleInflightFundsResponse) GetTotalStaleCount() uint64 { + if m != nil { + return m.TotalStaleCount + } + return 0 +} + +func (m *QueryStaleInflightFundsResponse) GetOldestStaleHours() string { + if m != nil { + return m.OldestStaleHours + } + return "" +} + +// Vault-wide remote positions +type QueryVaultRemotePositionsRequest struct { +} + +func (m *QueryVaultRemotePositionsRequest) Reset() { *m = QueryVaultRemotePositionsRequest{} } +func (m *QueryVaultRemotePositionsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVaultRemotePositionsRequest) ProtoMessage() {} +func (*QueryVaultRemotePositionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{63} +} +func (m *QueryVaultRemotePositionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultRemotePositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultRemotePositionsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultRemotePositionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultRemotePositionsRequest.Merge(m, src) +} +func (m *QueryVaultRemotePositionsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultRemotePositionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultRemotePositionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultRemotePositionsRequest proto.InternalMessageInfo + +type VaultRemotePosition struct { + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + VaultAddress string `protobuf:"bytes,2,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + SharesHeld string `protobuf:"bytes,4,opt,name=shares_held,json=sharesHeld,proto3" json:"shares_held,omitempty"` + SharePrice string `protobuf:"bytes,5,opt,name=share_price,json=sharePrice,proto3" json:"share_price,omitempty"` + Principal string `protobuf:"bytes,6,opt,name=principal,proto3" json:"principal,omitempty"` + CurrentValue string `protobuf:"bytes,7,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + Apy string `protobuf:"bytes,8,opt,name=apy,proto3" json:"apy,omitempty"` + Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` + LastUpdate time.Time `protobuf:"bytes,10,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"` +} + +func (m *VaultRemotePosition) Reset() { *m = VaultRemotePosition{} } +func (m *VaultRemotePosition) String() string { return proto.CompactTextString(m) } +func (*VaultRemotePosition) ProtoMessage() {} +func (*VaultRemotePosition) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{64} +} +func (m *VaultRemotePosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VaultRemotePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VaultRemotePosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VaultRemotePosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_VaultRemotePosition.Merge(m, src) +} +func (m *VaultRemotePosition) XXX_Size() int { + return m.Size() +} +func (m *VaultRemotePosition) XXX_DiscardUnknown() { + xxx_messageInfo_VaultRemotePosition.DiscardUnknown(m) +} + +var xxx_messageInfo_VaultRemotePosition proto.InternalMessageInfo + +func (m *VaultRemotePosition) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *VaultRemotePosition) GetVaultAddress() string { + if m != nil { + return m.VaultAddress + } + return "" +} + +func (m *VaultRemotePosition) GetChainId() uint32 { + if m != nil { + return m.ChainId + } + return 0 +} + +func (m *VaultRemotePosition) GetSharesHeld() string { + if m != nil { + return m.SharesHeld + } + return "" +} + +func (m *VaultRemotePosition) GetSharePrice() string { + if m != nil { + return m.SharePrice + } + return "" +} + +func (m *VaultRemotePosition) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +func (m *VaultRemotePosition) GetCurrentValue() string { + if m != nil { + return m.CurrentValue + } + return "" +} + +func (m *VaultRemotePosition) GetApy() string { + if m != nil { + return m.Apy + } + return "" +} + +func (m *VaultRemotePosition) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *VaultRemotePosition) GetLastUpdate() time.Time { + if m != nil { + return m.LastUpdate + } + return time.Time{} +} + +type QueryVaultRemotePositionsResponse struct { + Positions []VaultRemotePosition `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions"` + TotalPositions uint64 `protobuf:"varint,2,opt,name=total_positions,json=totalPositions,proto3" json:"total_positions,omitempty"` + TotalValue string `protobuf:"bytes,3,opt,name=total_value,json=totalValue,proto3" json:"total_value,omitempty"` +} + +func (m *QueryVaultRemotePositionsResponse) Reset() { *m = QueryVaultRemotePositionsResponse{} } +func (m *QueryVaultRemotePositionsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryVaultRemotePositionsResponse) ProtoMessage() {} +func (*QueryVaultRemotePositionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9037e95a7381a4ea, []int{65} +} +func (m *QueryVaultRemotePositionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryVaultRemotePositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryVaultRemotePositionsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryVaultRemotePositionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVaultRemotePositionsResponse.Merge(m, src) +} +func (m *QueryVaultRemotePositionsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryVaultRemotePositionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVaultRemotePositionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryVaultRemotePositionsResponse proto.InternalMessageInfo + +func (m *QueryVaultRemotePositionsResponse) GetPositions() []VaultRemotePosition { + if m != nil { + return m.Positions + } + return nil +} + +func (m *QueryVaultRemotePositionsResponse) GetTotalPositions() uint64 { + if m != nil { + return m.TotalPositions + } + return 0 +} + +func (m *QueryVaultRemotePositionsResponse) GetTotalValue() string { + if m != nil { + return m.TotalValue + } + return "" +} + +func init() { + proto.RegisterType((*QueryVaultInfoRequest)(nil), "noble.dollar.vaults.v2.QueryVaultInfoRequest") + proto.RegisterType((*QueryVaultInfoResponse)(nil), "noble.dollar.vaults.v2.QueryVaultInfoResponse") + proto.RegisterType((*QueryAllVaultsRequest)(nil), "noble.dollar.vaults.v2.QueryAllVaultsRequest") + proto.RegisterType((*QueryAllVaultsResponse)(nil), "noble.dollar.vaults.v2.QueryAllVaultsResponse") + proto.RegisterType((*QueryVaultRequest)(nil), "noble.dollar.vaults.v2.QueryVaultRequest") + proto.RegisterType((*QueryVaultResponse)(nil), "noble.dollar.vaults.v2.QueryVaultResponse") + proto.RegisterType((*QueryUserPositionRequest)(nil), "noble.dollar.vaults.v2.QueryUserPositionRequest") + proto.RegisterType((*QueryUserPositionResponse)(nil), "noble.dollar.vaults.v2.QueryUserPositionResponse") + proto.RegisterType((*QueryUserPositionsRequest)(nil), "noble.dollar.vaults.v2.QueryUserPositionsRequest") + proto.RegisterType((*QueryUserPositionsResponse)(nil), "noble.dollar.vaults.v2.QueryUserPositionsResponse") + proto.RegisterType((*UserPositionWithVault)(nil), "noble.dollar.vaults.v2.UserPositionWithVault") + proto.RegisterType((*QueryYieldInfoRequest)(nil), "noble.dollar.vaults.v2.QueryYieldInfoRequest") + proto.RegisterType((*QueryYieldInfoResponse)(nil), "noble.dollar.vaults.v2.QueryYieldInfoResponse") + proto.RegisterType((*QueryVaultStatsRequest)(nil), "noble.dollar.vaults.v2.QueryVaultStatsRequest") + proto.RegisterType((*QueryVaultStatsResponse)(nil), "noble.dollar.vaults.v2.QueryVaultStatsResponse") + proto.RegisterType((*QueryStatsRequest)(nil), "noble.dollar.vaults.v2.QueryStatsRequest") + proto.RegisterType((*QueryStatsResponse)(nil), "noble.dollar.vaults.v2.QueryStatsResponse") + proto.RegisterType((*QueryAllStatsRequest)(nil), "noble.dollar.vaults.v2.QueryAllStatsRequest") + proto.RegisterType((*QueryAllStatsResponse)(nil), "noble.dollar.vaults.v2.QueryAllStatsResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "noble.dollar.vaults.v2.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "noble.dollar.vaults.v2.QueryParamsResponse") + proto.RegisterType((*QueryCrossChainRoutesRequest)(nil), "noble.dollar.vaults.v2.QueryCrossChainRoutesRequest") + proto.RegisterType((*QueryCrossChainRoutesResponse)(nil), "noble.dollar.vaults.v2.QueryCrossChainRoutesResponse") + proto.RegisterType((*QueryCrossChainRouteRequest)(nil), "noble.dollar.vaults.v2.QueryCrossChainRouteRequest") + proto.RegisterType((*QueryCrossChainRouteResponse)(nil), "noble.dollar.vaults.v2.QueryCrossChainRouteResponse") + proto.RegisterType((*QueryRemotePositionRequest)(nil), "noble.dollar.vaults.v2.QueryRemotePositionRequest") + proto.RegisterType((*QueryRemotePositionResponse)(nil), "noble.dollar.vaults.v2.QueryRemotePositionResponse") + proto.RegisterType((*QueryRemotePositionsRequest)(nil), "noble.dollar.vaults.v2.QueryRemotePositionsRequest") + proto.RegisterType((*QueryRemotePositionsResponse)(nil), "noble.dollar.vaults.v2.QueryRemotePositionsResponse") + proto.RegisterType((*RemotePositionWithRoute)(nil), "noble.dollar.vaults.v2.RemotePositionWithRoute") + proto.RegisterType((*QueryInflightFundRequest)(nil), "noble.dollar.vaults.v2.QueryInflightFundRequest") + proto.RegisterType((*QueryInflightFundResponse)(nil), "noble.dollar.vaults.v2.QueryInflightFundResponse") + proto.RegisterType((*QueryInflightFundsUserRequest)(nil), "noble.dollar.vaults.v2.QueryInflightFundsUserRequest") + proto.RegisterType((*QueryInflightFundsUserResponse)(nil), "noble.dollar.vaults.v2.QueryInflightFundsUserResponse") + proto.RegisterType((*QueryCrossChainSnapshotRequest)(nil), "noble.dollar.vaults.v2.QueryCrossChainSnapshotRequest") + proto.RegisterType((*QueryCrossChainSnapshotResponse)(nil), "noble.dollar.vaults.v2.QueryCrossChainSnapshotResponse") + proto.RegisterType((*QueryStaleInflightAlertsRequest)(nil), "noble.dollar.vaults.v2.QueryStaleInflightAlertsRequest") + proto.RegisterType((*QueryStaleInflightAlertsResponse)(nil), "noble.dollar.vaults.v2.QueryStaleInflightAlertsResponse") + proto.RegisterType((*StaleInflightAlertWithDetails)(nil), "noble.dollar.vaults.v2.StaleInflightAlertWithDetails") + proto.RegisterType((*QueryNAVRequest)(nil), "noble.dollar.vaults.v2.QueryNAVRequest") + proto.RegisterType((*NAVBreakdownView)(nil), "noble.dollar.vaults.v2.NAVBreakdownView") + proto.RegisterType((*QueryNAVResponse)(nil), "noble.dollar.vaults.v2.QueryNAVResponse") + proto.RegisterType((*QueryWithdrawalQueueRequest)(nil), "noble.dollar.vaults.v2.QueryWithdrawalQueueRequest") + proto.RegisterType((*WithdrawalQueueItem)(nil), "noble.dollar.vaults.v2.WithdrawalQueueItem") + proto.RegisterType((*QueryWithdrawalQueueResponse)(nil), "noble.dollar.vaults.v2.QueryWithdrawalQueueResponse") + proto.RegisterType((*QueryUserWithdrawalsRequest)(nil), "noble.dollar.vaults.v2.QueryUserWithdrawalsRequest") + proto.RegisterType((*WithdrawalStatusItem)(nil), "noble.dollar.vaults.v2.WithdrawalStatusItem") + proto.RegisterType((*QueryUserWithdrawalsResponse)(nil), "noble.dollar.vaults.v2.QueryUserWithdrawalsResponse") + proto.RegisterType((*QueryUserBalanceRequest)(nil), "noble.dollar.vaults.v2.QueryUserBalanceRequest") + proto.RegisterType((*QueryUserBalanceResponse)(nil), "noble.dollar.vaults.v2.QueryUserBalanceResponse") + proto.RegisterType((*QueryDepositVelocityRequest)(nil), "noble.dollar.vaults.v2.QueryDepositVelocityRequest") + proto.RegisterType((*QueryDepositVelocityResponse)(nil), "noble.dollar.vaults.v2.QueryDepositVelocityResponse") + proto.RegisterType((*QuerySimulateDepositRequest)(nil), "noble.dollar.vaults.v2.QuerySimulateDepositRequest") + proto.RegisterType((*CheckResultsView)(nil), "noble.dollar.vaults.v2.CheckResultsView") + proto.RegisterType((*QuerySimulateDepositResponse)(nil), "noble.dollar.vaults.v2.QuerySimulateDepositResponse") + proto.RegisterType((*QuerySimulateWithdrawalRequest)(nil), "noble.dollar.vaults.v2.QuerySimulateWithdrawalRequest") + proto.RegisterType((*QuerySimulateWithdrawalResponse)(nil), "noble.dollar.vaults.v2.QuerySimulateWithdrawalResponse") + proto.RegisterType((*QueryInflightFundsRequest)(nil), "noble.dollar.vaults.v2.QueryInflightFundsRequest") + proto.RegisterType((*InflightFundView)(nil), "noble.dollar.vaults.v2.InflightFundView") + proto.RegisterType((*QueryInflightFundsResponse)(nil), "noble.dollar.vaults.v2.QueryInflightFundsResponse") + proto.RegisterMapType((map[string]string)(nil), "noble.dollar.vaults.v2.QueryInflightFundsResponse.ByRouteEntry") + proto.RegisterMapType((map[string]string)(nil), "noble.dollar.vaults.v2.QueryInflightFundsResponse.ByStatusEntry") + proto.RegisterMapType((map[string]string)(nil), "noble.dollar.vaults.v2.QueryInflightFundsResponse.ByTypeEntry") + proto.RegisterType((*QueryStaleInflightFundsRequest)(nil), "noble.dollar.vaults.v2.QueryStaleInflightFundsRequest") + proto.RegisterType((*StaleInflightFundView)(nil), "noble.dollar.vaults.v2.StaleInflightFundView") + proto.RegisterType((*QueryStaleInflightFundsResponse)(nil), "noble.dollar.vaults.v2.QueryStaleInflightFundsResponse") + proto.RegisterType((*QueryVaultRemotePositionsRequest)(nil), "noble.dollar.vaults.v2.QueryVaultRemotePositionsRequest") + proto.RegisterType((*VaultRemotePosition)(nil), "noble.dollar.vaults.v2.VaultRemotePosition") + proto.RegisterType((*QueryVaultRemotePositionsResponse)(nil), "noble.dollar.vaults.v2.QueryVaultRemotePositionsResponse") +} + +func init() { + proto.RegisterFile("noble/dollar/vaults/v2/query.proto", fileDescriptor_9037e95a7381a4ea) +} + +var fileDescriptor_9037e95a7381a4ea = []byte{ + // 3981 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3b, 0x4b, 0x8c, 0x1c, 0xc7, + 0x75, 0xea, 0x9d, 0xdd, 0xd9, 0x9d, 0xb7, 0xbf, 0x61, 0xed, 0x92, 0x5c, 0x8d, 0xc4, 0x25, 0xd5, + 0x2b, 0x8a, 0xcb, 0xdf, 0x0c, 0xb9, 0xfc, 0x98, 0xa6, 0x15, 0x45, 0xbb, 0x94, 0x28, 0x2d, 0x22, + 0xd3, 0xd4, 0x90, 0xa2, 0x60, 0xc7, 0x71, 0xa3, 0x67, 0xa6, 0x76, 0xb7, 0xc1, 0x9e, 0xee, 0x51, + 0x77, 0xcf, 0xac, 0xc7, 0x86, 0x72, 0x08, 0x92, 0x43, 0x6e, 0x76, 0x72, 0x08, 0x92, 0xdc, 0x72, + 0x88, 0x83, 0x08, 0x49, 0x8c, 0x24, 0x07, 0x27, 0x71, 0x02, 0x03, 0x01, 0x0c, 0x1f, 0x8d, 0x04, + 0x01, 0x9c, 0x4b, 0x12, 0x48, 0xc9, 0x4d, 0xf7, 0x00, 0x02, 0x02, 0x04, 0xf5, 0xea, 0x55, 0x77, + 0x4f, 0x4f, 0xf7, 0xf4, 0xcc, 0x6a, 0x09, 0xeb, 0x36, 0xfd, 0xea, 0xbd, 0xaa, 0x57, 0xef, 0xbd, + 0x7a, 0xbf, 0xaa, 0x01, 0xdd, 0x71, 0x1b, 0x36, 0xaf, 0xb5, 0x5c, 0xdb, 0x36, 0xbd, 0x5a, 0xcf, + 0xec, 0xda, 0x81, 0x5f, 0xeb, 0x6d, 0xd5, 0x3e, 0xe8, 0x72, 0xaf, 0x5f, 0xed, 0x78, 0x6e, 0xe0, + 0xb2, 0x53, 0x88, 0x53, 0x95, 0x38, 0x55, 0x89, 0x53, 0xed, 0x6d, 0x55, 0x2e, 0x35, 0x5d, 0xbf, + 0xed, 0xfa, 0xb5, 0x86, 0xe9, 0x73, 0x49, 0x50, 0xeb, 0x5d, 0x6f, 0xf0, 0xc0, 0xbc, 0x5e, 0xeb, + 0x98, 0xfb, 0x96, 0x63, 0x06, 0x96, 0xeb, 0xc8, 0x39, 0x2a, 0xcf, 0x4b, 0x5c, 0x03, 0xbf, 0x6a, + 0xf2, 0x83, 0x86, 0x56, 0xf7, 0xdd, 0x7d, 0x57, 0xc2, 0xc5, 0x2f, 0x82, 0xbe, 0xb8, 0xef, 0xba, + 0xfb, 0x36, 0xaf, 0x99, 0x1d, 0xab, 0x66, 0x3a, 0x8e, 0x1b, 0xe0, 0x6c, 0x8a, 0xe6, 0x2c, 0x8d, + 0xe2, 0x57, 0xa3, 0xbb, 0x57, 0x0b, 0xac, 0x36, 0xf7, 0x03, 0xb3, 0xdd, 0x21, 0x84, 0xcd, 0x8c, + 0x7d, 0x35, 0x3d, 0xd7, 0xf7, 0x8d, 0xe6, 0x81, 0x69, 0x29, 0xce, 0x5e, 0xce, 0xc0, 0xdc, 0xe7, + 0x0e, 0xf7, 0x2d, 0xb5, 0xe0, 0x46, 0x06, 0x16, 0x49, 0x03, 0x91, 0xf4, 0xd3, 0x70, 0xf2, 0x5d, + 0x21, 0x86, 0x27, 0x02, 0xb8, 0xeb, 0xec, 0xb9, 0x75, 0xfe, 0x41, 0x97, 0xfb, 0x81, 0xfe, 0x99, + 0x06, 0xa7, 0x92, 0x23, 0x7e, 0xc7, 0x75, 0x7c, 0xce, 0xb6, 0xa1, 0xd8, 0x74, 0x9d, 0x3d, 0x6b, + 0x7f, 0x4d, 0x3b, 0xa7, 0x6d, 0xce, 0x6f, 0x6d, 0x54, 0xd3, 0xa5, 0x5d, 0x45, 0xd2, 0x7b, 0x88, + 0xba, 0x33, 0xfd, 0xb3, 0xff, 0x38, 0xfb, 0x5c, 0x9d, 0x08, 0xd9, 0x79, 0x58, 0x0a, 0xdc, 0xc0, + 0xb4, 0x8d, 0x16, 0xef, 0xb8, 0xbe, 0x15, 0xf8, 0x6b, 0x53, 0xe7, 0xb4, 0xcd, 0x52, 0x7d, 0x11, + 0xa1, 0x6f, 0x10, 0x90, 0x55, 0x61, 0x45, 0xa2, 0x99, 0xcd, 0xa6, 0xd7, 0xe5, 0x2d, 0xa3, 0x6f, + 0x71, 0xbb, 0xb5, 0x56, 0x40, 0xdc, 0x13, 0x38, 0xb4, 0x2d, 0x47, 0xbe, 0x2e, 0x06, 0xd8, 0x0b, + 0x50, 0x92, 0xf8, 0x8e, 0xd9, 0x5b, 0x9b, 0x46, 0xac, 0x39, 0x04, 0x3c, 0x30, 0x7b, 0xec, 0x22, + 0x94, 0x07, 0xd6, 0x74, 0x3d, 0x7f, 0x6d, 0xe6, 0x9c, 0xb6, 0x39, 0x5d, 0x5f, 0x8e, 0xaf, 0xea, + 0x7a, 0xbe, 0x6e, 0x90, 0x54, 0xb6, 0x6d, 0x1b, 0xf7, 0xe0, 0x93, 0x54, 0xd8, 0x7d, 0x80, 0xc8, + 0x4e, 0x68, 0xfb, 0xaf, 0x54, 0xc9, 0x36, 0x84, 0x51, 0x55, 0xa5, 0x15, 0x92, 0x51, 0x55, 0x1f, + 0x9a, 0xfb, 0x9c, 0x68, 0xeb, 0x31, 0x4a, 0xfd, 0xaf, 0x94, 0x74, 0x63, 0x2b, 0x90, 0x74, 0xdf, + 0x81, 0xa2, 0x94, 0xe0, 0x9a, 0x76, 0xae, 0xb0, 0x39, 0xbf, 0x55, 0xcd, 0x92, 0x6e, 0xba, 0x76, + 0x94, 0xa0, 0x25, 0x1e, 0x7b, 0x6b, 0x80, 0xe1, 0x29, 0x64, 0xf8, 0x42, 0x2e, 0xc3, 0x72, 0xaa, + 0x01, 0x8e, 0x57, 0xe0, 0x44, 0xb4, 0xa0, 0x32, 0x92, 0x06, 0xb0, 0x38, 0xf0, 0x59, 0xec, 0x40, + 0x7f, 0x00, 0x6b, 0x88, 0xf7, 0x9e, 0xcf, 0xbd, 0x87, 0x42, 0x41, 0x96, 0xeb, 0x28, 0x75, 0x6c, + 0xc1, 0xac, 0xd9, 0x6a, 0x79, 0xdc, 0xf7, 0x51, 0x17, 0xa5, 0x9d, 0xb5, 0x7f, 0xf9, 0xdb, 0xab, + 0xab, 0xb4, 0xbb, 0x6d, 0x39, 0xf2, 0x28, 0xf0, 0x2c, 0x67, 0xbf, 0xae, 0x10, 0xf5, 0xbf, 0xd0, + 0xe0, 0xf9, 0x94, 0x09, 0x89, 0xf7, 0xd7, 0x61, 0xae, 0x43, 0x30, 0x52, 0xef, 0xcb, 0x59, 0xdc, + 0x0f, 0xd0, 0x87, 0x54, 0x6c, 0x03, 0x16, 0x9b, 0x5d, 0xcf, 0xe3, 0x4e, 0x60, 0xf4, 0x4c, 0xbb, + 0xcb, 0xc9, 0xb2, 0x17, 0x08, 0xf8, 0x44, 0xc0, 0x84, 0x2d, 0x76, 0x1d, 0x8f, 0x9b, 0xb6, 0xf5, + 0x9d, 0x84, 0x55, 0x2f, 0x47, 0x70, 0xb4, 0x69, 0xfd, 0x0f, 0xd2, 0xf8, 0xf5, 0x3f, 0x87, 0x04, + 0x12, 0x46, 0x3c, 0x75, 0x64, 0x23, 0xfe, 0x91, 0x06, 0x95, 0x34, 0xce, 0x48, 0x94, 0xef, 0x42, + 0x49, 0x09, 0x45, 0x59, 0xc2, 0xd5, 0x71, 0x64, 0xf9, 0xbe, 0x15, 0x1c, 0xa0, 0x51, 0x90, 0x21, + 0x44, 0xb3, 0x1c, 0x9f, 0x35, 0xff, 0xb6, 0x06, 0x27, 0x53, 0xd7, 0x64, 0xf7, 0x8f, 0x66, 0x00, + 0xc4, 0xeb, 0x64, 0x66, 0x10, 0x7a, 0x5f, 0xd4, 0x74, 0xdc, 0xfb, 0x7e, 0xa4, 0xfc, 0x43, 0x6c, + 0x84, 0xc4, 0x7a, 0x06, 0x00, 0xed, 0xc5, 0xf0, 0xcc, 0x80, 0x4b, 0xa5, 0xd7, 0x4b, 0x08, 0xa9, + 0x9b, 0x01, 0xff, 0x65, 0x78, 0x56, 0x7d, 0x2d, 0x1e, 0x2a, 0x1e, 0x05, 0x66, 0xe8, 0x2f, 0xf5, + 0x6f, 0xc1, 0xe9, 0xa1, 0x11, 0xda, 0xc7, 0x3d, 0x98, 0xf1, 0x05, 0x80, 0xa4, 0x7c, 0x61, 0x64, + 0x10, 0x41, 0xd2, 0x37, 0x9d, 0xc0, 0xeb, 0x93, 0xa0, 0x25, 0x6d, 0xe8, 0x95, 0x06, 0x16, 0xfd, + 0x3a, 0x79, 0xa5, 0x67, 0xb0, 0xde, 0xb7, 0x60, 0x55, 0xb9, 0xed, 0xf8, 0x92, 0xc7, 0x16, 0x17, + 0xbe, 0x19, 0x05, 0x9e, 0x67, 0xc0, 0xfd, 0x2a, 0x09, 0xe6, 0xa1, 0xe9, 0x99, 0xed, 0x50, 0x5c, + 0x8f, 0x60, 0x65, 0x00, 0x4a, 0x2b, 0xbe, 0x0a, 0xc5, 0x0e, 0x42, 0x68, 0xc9, 0xf5, 0xac, 0x25, + 0x25, 0x9d, 0xf2, 0xda, 0x92, 0x46, 0xdf, 0x83, 0x17, 0x71, 0xd2, 0x7b, 0x22, 0x79, 0xb9, 0x27, + 0x72, 0x97, 0xba, 0xdb, 0x0d, 0xf8, 0xb3, 0x08, 0xa4, 0x67, 0x32, 0x16, 0xa2, 0x7d, 0xbc, 0x09, + 0x45, 0x0f, 0x21, 0xe4, 0x83, 0x32, 0x45, 0x97, 0x98, 0x41, 0x6d, 0x48, 0x12, 0x1f, 0x9f, 0xeb, + 0xb9, 0x03, 0x2f, 0xa4, 0x31, 0xac, 0x04, 0xf3, 0x3c, 0xcc, 0xe1, 0x8a, 0x86, 0xd5, 0x42, 0xb1, + 0x2c, 0xd6, 0x67, 0xf1, 0x7b, 0xb7, 0xa5, 0x37, 0xd3, 0x65, 0x1a, 0xb7, 0x11, 0x44, 0xcd, 0xb3, + 0x91, 0xf4, 0x8d, 0x4a, 0x5a, 0xfd, 0x29, 0xf9, 0xf4, 0x3a, 0x6f, 0xbb, 0x01, 0x4f, 0x06, 0xdc, + 0x6c, 0xee, 0xe2, 0x91, 0x68, 0x6a, 0xdc, 0x58, 0xbc, 0x4f, 0xb2, 0x48, 0x2e, 0x46, 0x1b, 0x7a, + 0x7b, 0xc8, 0x17, 0xbf, 0x92, 0xb5, 0xa7, 0xc1, 0x19, 0x92, 0xde, 0x58, 0xff, 0x43, 0x2d, 0x75, + 0xa5, 0x2f, 0x44, 0x18, 0xfd, 0xb1, 0x46, 0x7a, 0x1d, 0xe2, 0x8d, 0xc4, 0xf0, 0x68, 0x38, 0x90, + 0xd6, 0xc6, 0x93, 0x83, 0x08, 0x6b, 0x71, 0x1d, 0x3f, 0x8b, 0x50, 0xfa, 0x9b, 0x70, 0x3a, 0x63, + 0xd1, 0x51, 0xd6, 0x12, 0x57, 0xed, 0xd4, 0xe7, 0x52, 0xed, 0x2d, 0xca, 0x0f, 0x77, 0x9d, 0x3d, + 0xdb, 0xda, 0x3f, 0x08, 0xee, 0x77, 0x9d, 0xd6, 0x18, 0x87, 0xe9, 0xd7, 0x29, 0xab, 0x1a, 0x24, + 0x23, 0x89, 0xbf, 0x06, 0xd3, 0x7b, 0x5d, 0xa7, 0x95, 0x97, 0x00, 0xc4, 0x69, 0x89, 0x2f, 0xa4, + 0xd3, 0xff, 0x58, 0x79, 0xa5, 0x38, 0x86, 0x2f, 0xf2, 0x85, 0x2f, 0x82, 0xc1, 0x7d, 0xa4, 0xc1, + 0x7a, 0x16, 0x77, 0x61, 0x1a, 0x3c, 0x23, 0x36, 0xa2, 0xcc, 0x6d, 0x12, 0x09, 0x48, 0xc2, 0xe3, + 0xb3, 0xaf, 0xd7, 0x88, 0xd9, 0xc8, 0x6b, 0x3d, 0x72, 0xcc, 0x8e, 0x7f, 0xe0, 0xaa, 0x2a, 0x84, + 0xbd, 0x08, 0xa5, 0xb0, 0x96, 0x46, 0x69, 0x16, 0xea, 0x11, 0x40, 0x3f, 0x84, 0xb3, 0x99, 0xf4, + 0xb4, 0xdb, 0xc7, 0x30, 0xe7, 0x13, 0x8c, 0x54, 0xbe, 0x95, 0xef, 0x3b, 0x95, 0x41, 0xaa, 0xd9, + 0x94, 0x61, 0xaa, 0x99, 0x44, 0x7a, 0x7c, 0x56, 0xe5, 0x21, 0x36, 0x57, 0x92, 0xda, 0xb6, 0xb9, + 0x17, 0xe5, 0x0d, 0xc7, 0xeb, 0x4f, 0x13, 0x16, 0x52, 0x38, 0xb2, 0x85, 0xfc, 0x44, 0x83, 0x73, + 0xd9, 0xac, 0x87, 0x6e, 0xa9, 0x68, 0x22, 0x84, 0x8c, 0xe4, 0x56, 0x96, 0xcc, 0x86, 0x27, 0x11, + 0x2e, 0xe2, 0x0d, 0x1e, 0x98, 0x96, 0x1d, 0xe6, 0x0d, 0x72, 0xaa, 0xe3, 0x33, 0x9b, 0x4f, 0x35, + 0x38, 0x33, 0x72, 0x61, 0x76, 0x1f, 0x66, 0x70, 0x51, 0x52, 0xf9, 0xa5, 0xf1, 0xd9, 0x57, 0x96, + 0x8e, 0xe4, 0x51, 0xd8, 0x9d, 0x3a, 0x7a, 0xd8, 0x0d, 0x3d, 0x4e, 0xe1, 0x88, 0x1e, 0xe7, 0x04, + 0x2c, 0xa3, 0xc2, 0x1e, 0x6c, 0x3f, 0x51, 0x79, 0xdd, 0x0f, 0x34, 0x28, 0x3f, 0xd8, 0x7e, 0xb2, + 0xe3, 0x71, 0xf3, 0x69, 0xcb, 0x3d, 0x74, 0x9e, 0x58, 0xfc, 0x90, 0xad, 0xc2, 0x8c, 0xed, 0x36, + 0x4d, 0x9b, 0x0a, 0x07, 0xf9, 0x21, 0xca, 0x51, 0x0f, 0xbd, 0xac, 0x11, 0x05, 0x1a, 0x59, 0x36, + 0x2c, 0x7b, 0x83, 0x41, 0x89, 0x55, 0x60, 0xce, 0x22, 0x26, 0xa8, 0x5a, 0x08, 0xbf, 0xd9, 0x39, + 0x98, 0xb7, 0x2d, 0xb3, 0x61, 0xd9, 0x56, 0x60, 0x71, 0x9f, 0xca, 0x84, 0x38, 0x48, 0x2c, 0x8f, + 0x55, 0x03, 0x36, 0x5e, 0x4a, 0x75, 0xf9, 0xa1, 0x7f, 0x5a, 0x80, 0x72, 0xc4, 0x3d, 0x99, 0x57, + 0x19, 0x0a, 0xa2, 0xd6, 0x90, 0x7c, 0x8a, 0x9f, 0x89, 0xca, 0x67, 0x2a, 0x59, 0xf9, 0xbc, 0x09, + 0xf3, 0xb6, 0xe9, 0x07, 0x46, 0xb7, 0xd3, 0x12, 0xe3, 0x52, 0x92, 0x95, 0xaa, 0x6c, 0xbb, 0x55, + 0x55, 0xdb, 0xad, 0xfa, 0x58, 0x79, 0x86, 0x9d, 0x39, 0x21, 0xbf, 0xef, 0xfd, 0xe7, 0x59, 0xad, + 0x0e, 0x82, 0xf0, 0x3d, 0xa4, 0x4b, 0x29, 0xa0, 0xa6, 0x27, 0x28, 0xa0, 0x66, 0xb2, 0x0a, 0xa8, + 0x97, 0x60, 0x01, 0x65, 0x6d, 0x98, 0xbe, 0xcf, 0x03, 0x7f, 0xad, 0x48, 0xc2, 0x11, 0xb0, 0x6d, + 0x04, 0xb1, 0x9b, 0x70, 0x2a, 0xa9, 0x05, 0xaa, 0x1d, 0x67, 0x11, 0x79, 0x35, 0xa1, 0x0b, 0xd9, + 0x4a, 0xb8, 0x06, 0xab, 0x4a, 0x01, 0x06, 0xba, 0x5e, 0xa2, 0x99, 0x43, 0x1a, 0x66, 0xc5, 0x7d, + 0xbc, 0xa4, 0xa8, 0xc1, 0x4a, 0x87, 0x3b, 0x2d, 0xcb, 0xd9, 0x37, 0x0e, 0xad, 0xe0, 0xa0, 0xe5, + 0x99, 0x87, 0xa6, 0xed, 0xaf, 0x95, 0x24, 0x01, 0x0d, 0xbd, 0x1f, 0x8d, 0xb0, 0xaf, 0xc2, 0xa2, + 0x63, 0xf6, 0x8c, 0x86, 0xb2, 0xa4, 0x35, 0x40, 0xd9, 0x6e, 0x66, 0x59, 0x69, 0xd2, 0xea, 0xea, + 0x0b, 0x8e, 0xd9, 0x0b, 0x21, 0x3a, 0xa7, 0x5c, 0x2c, 0x5a, 0xe2, 0xdd, 0x2e, 0xef, 0xf2, 0xe3, + 0x2e, 0x0d, 0x7e, 0x32, 0x05, 0x2b, 0x89, 0x25, 0x76, 0x03, 0xde, 0x16, 0x66, 0xe4, 0x49, 0x74, + 0xe5, 0x75, 0x4b, 0xf5, 0x12, 0x41, 0x76, 0x5b, 0xec, 0x0a, 0x4c, 0x77, 0x7d, 0xee, 0xe5, 0x3a, + 0x5d, 0xc4, 0x62, 0xa7, 0xa0, 0x68, 0xb6, 0xdd, 0xae, 0xa3, 0x0e, 0x03, 0x7d, 0x89, 0x13, 0xd5, + 0xf1, 0x2c, 0xa7, 0x69, 0x75, 0x84, 0xca, 0x25, 0x86, 0xb4, 0xa3, 0xe5, 0x10, 0xbe, 0x2d, 0x51, + 0x5f, 0x82, 0x05, 0x69, 0xd6, 0x84, 0x26, 0x4d, 0x68, 0x1e, 0x61, 0x84, 0xb2, 0x13, 0x8f, 0x70, + 0xc5, 0x09, 0x0c, 0x3b, 0x22, 0x13, 0x9c, 0x8a, 0x2a, 0xb0, 0xeb, 0x93, 0x35, 0xd1, 0x97, 0x38, + 0xd0, 0x61, 0x26, 0x36, 0x87, 0xed, 0xd0, 0x28, 0xb7, 0xfa, 0x6c, 0x8a, 0x52, 0xd3, 0x21, 0x55, + 0xd1, 0x21, 0xfd, 0x26, 0x94, 0x95, 0x29, 0x91, 0x04, 0x55, 0x34, 0xb8, 0x9c, 0x65, 0x1c, 0x29, + 0x2a, 0x21, 0x4f, 0xb6, 0x4c, 0x53, 0x91, 0x32, 0x7d, 0xb6, 0x01, 0xf2, 0xd0, 0x19, 0x34, 0xa0, + 0x7a, 0x28, 0x08, 0x7c, 0x28, 0x61, 0xc2, 0x9a, 0xcd, 0x9e, 0x69, 0xd9, 0x66, 0xc3, 0xe6, 0x86, + 0x6d, 0x7d, 0xd0, 0xb5, 0x5a, 0x56, 0xd0, 0x27, 0x75, 0xb0, 0x70, 0xe8, 0x1d, 0x35, 0x22, 0xe4, + 0xfd, 0x81, 0x58, 0xd9, 0xb0, 0xb9, 0xb3, 0x1f, 0x1c, 0xa0, 0x5a, 0xa6, 0xeb, 0xf3, 0x08, 0x7b, + 0x07, 0x41, 0xec, 0x2e, 0x3c, 0xcf, 0xfd, 0xc0, 0x6a, 0x9b, 0x01, 0x6f, 0x19, 0x1d, 0xcf, 0x6d, + 0x72, 0xdf, 0x17, 0x7b, 0x14, 0xd2, 0x24, 0xfd, 0x9c, 0x0e, 0x11, 0x1e, 0x86, 0xe3, 0x42, 0x03, + 0x89, 0x08, 0x56, 0x3c, 0x7a, 0x04, 0x0b, 0x6b, 0x16, 0x91, 0x99, 0xc5, 0x8e, 0xe3, 0x17, 0x21, + 0x85, 0xfc, 0x61, 0x01, 0x56, 0x23, 0x96, 0x1e, 0xa1, 0x25, 0x8d, 0x73, 0xb8, 0xa2, 0xe3, 0x32, + 0x95, 0x7b, 0x5c, 0x0a, 0xe3, 0x1d, 0x97, 0xe9, 0xe1, 0xe3, 0x72, 0x11, 0xca, 0x7b, 0x5d, 0x7b, + 0xcf, 0xb2, 0x6d, 0x9e, 0x38, 0x55, 0xcb, 0x21, 0x9c, 0x50, 0xa3, 0x53, 0x51, 0x1c, 0x38, 0x15, + 0x03, 0x27, 0x6e, 0xf6, 0x68, 0x27, 0xee, 0x2d, 0x58, 0x68, 0xda, 0xa6, 0xd5, 0x46, 0xcb, 0x34, + 0x03, 0x3c, 0x5d, 0xf9, 0xd3, 0x68, 0x38, 0xcd, 0x7c, 0x48, 0xb9, 0x2d, 0x32, 0x0c, 0xc0, 0x4f, + 0xb1, 0x9b, 0x00, 0xfd, 0xf4, 0xb8, 0xd3, 0x94, 0x88, 0x6e, 0x3b, 0xd0, 0x7f, 0xa8, 0xce, 0xf2, + 0x90, 0x39, 0x85, 0x59, 0xf0, 0x7c, 0x3c, 0x1c, 0xc8, 0x63, 0x7c, 0x25, 0xff, 0x18, 0x47, 0xda, + 0xa7, 0x73, 0x1c, 0x9f, 0x66, 0xbc, 0x33, 0x7c, 0x01, 0xe4, 0x15, 0x8c, 0x11, 0xee, 0x9a, 0xb4, + 0x2f, 0x43, 0xf1, 0x3d, 0x05, 0x8d, 0x66, 0xa3, 0x7d, 0x91, 0xf6, 0x17, 0x22, 0x34, 0xde, 0x4a, + 0x9c, 0xc0, 0x99, 0xa3, 0x9f, 0xc0, 0xaf, 0x52, 0xf7, 0x52, 0x48, 0x6c, 0xc7, 0xb4, 0x4d, 0xa7, + 0xc9, 0x3f, 0xcf, 0xcd, 0xc3, 0xbf, 0x69, 0xb1, 0xab, 0x8c, 0x70, 0x3e, 0x92, 0xfe, 0x79, 0x58, + 0xa2, 0x84, 0x43, 0x59, 0xac, 0x3c, 0x3c, 0x8b, 0x04, 0x25, 0x7b, 0xdd, 0x80, 0xc5, 0xc1, 0x84, + 0x83, 0xc4, 0x69, 0xc6, 0x73, 0x8d, 0xb3, 0x30, 0x2f, 0xa5, 0x24, 0x33, 0x01, 0x29, 0x4a, 0x40, + 0x90, 0xcc, 0x00, 0x2e, 0x40, 0xec, 0x9a, 0xc1, 0xd8, 0x37, 0x2d, 0x87, 0x04, 0xb9, 0x14, 0x81, + 0xdf, 0x32, 0x2d, 0xec, 0x62, 0xdb, 0x6e, 0xf3, 0x69, 0xf2, 0x18, 0x2d, 0x48, 0xa0, 0xe4, 0x49, + 0x7f, 0x97, 0xfc, 0x14, 0xe5, 0x46, 0x4f, 0xb8, 0xed, 0x36, 0xad, 0xa0, 0xff, 0x79, 0x44, 0xf5, + 0xfd, 0x02, 0x19, 0xeb, 0xd0, 0x9c, 0x24, 0x2e, 0x46, 0x51, 0x5a, 0x0a, 0x49, 0xc6, 0xe2, 0x2b, + 0xc0, 0x30, 0x01, 0x54, 0x72, 0x6c, 0x08, 0x2e, 0x49, 0x40, 0x65, 0x31, 0x42, 0x93, 0xed, 0x08, + 0xb8, 0xc8, 0x9b, 0x3c, 0xde, 0xe4, 0x4e, 0x84, 0xdf, 0x0c, 0xdd, 0xce, 0x62, 0x9d, 0xc9, 0x31, + 0xa2, 0xb8, 0x87, 0xb2, 0xdf, 0x82, 0x93, 0x09, 0x8a, 0x9e, 0x6b, 0x77, 0xdb, 0x9c, 0x64, 0xb7, + 0x32, 0x40, 0xf2, 0x04, 0x87, 0x04, 0x4f, 0xc2, 0x21, 0x18, 0x87, 0x96, 0xd3, 0x72, 0x0f, 0x25, + 0x4b, 0xf2, 0xda, 0xb1, 0x50, 0x2f, 0x8b, 0x91, 0xf7, 0x71, 0x00, 0x59, 0xf2, 0xd9, 0x1d, 0x58, + 0xf3, 0xbb, 0x7e, 0xc7, 0x6a, 0x5a, 0x6e, 0xd7, 0x37, 0xcc, 0x66, 0x60, 0xf5, 0xac, 0xa0, 0x6f, + 0xec, 0xd9, 0xe6, 0x3e, 0xfa, 0xa7, 0xb9, 0xfa, 0xa9, 0x68, 0x7c, 0x9b, 0x86, 0xef, 0xdb, 0xe6, + 0xbe, 0x88, 0x58, 0x4d, 0xd7, 0xb5, 0x45, 0x7e, 0x65, 0x78, 0xbc, 0x6d, 0x5a, 0x8e, 0x88, 0x57, + 0xb4, 0xdc, 0x2c, 0x2e, 0x77, 0x5a, 0x21, 0xd4, 0xd5, 0x38, 0xad, 0x7a, 0x1e, 0x96, 0x7a, 0x24, + 0x5f, 0xc3, 0x6f, 0xba, 0x9e, 0xca, 0x1d, 0x17, 0x15, 0xf4, 0x91, 0x00, 0xea, 0x16, 0xa9, 0xf9, + 0x91, 0xd5, 0xee, 0xda, 0x66, 0xc0, 0x69, 0xa3, 0x4a, 0xcd, 0x91, 0x6b, 0xd7, 0x06, 0x5c, 0xfb, + 0x51, 0xfa, 0x82, 0xff, 0xab, 0x41, 0xf9, 0xde, 0x01, 0x6f, 0x3e, 0xad, 0x73, 0x5f, 0x38, 0x1c, + 0x2c, 0x5d, 0x2e, 0xc1, 0x09, 0xe1, 0x58, 0x2c, 0xc7, 0x10, 0xda, 0x36, 0x6c, 0xab, 0x6d, 0xc9, + 0xb5, 0xe6, 0xea, 0xcb, 0x72, 0x40, 0x9c, 0xab, 0x77, 0x04, 0x58, 0x88, 0x9d, 0x70, 0x51, 0x04, + 0x84, 0x3c, 0x85, 0xc8, 0x65, 0x39, 0x82, 0x9b, 0x4f, 0x62, 0xcb, 0x63, 0x23, 0xb1, 0x0b, 0x71, + 0xec, 0xc7, 0x62, 0x40, 0x62, 0x5f, 0x80, 0xe5, 0x50, 0xd4, 0x1d, 0x91, 0xcd, 0x4b, 0x2f, 0x34, + 0x57, 0x5f, 0x52, 0xe0, 0x87, 0x08, 0x15, 0xf6, 0x12, 0xca, 0xb5, 0x29, 0x76, 0xa3, 0xd0, 0x67, + 0x10, 0x7d, 0x45, 0x0d, 0xe2, 0x4e, 0x25, 0x8d, 0xfe, 0x53, 0xd5, 0x0c, 0x1c, 0x92, 0x32, 0x19, + 0xfe, 0x45, 0x28, 0xf3, 0x6f, 0x77, 0x78, 0x53, 0x64, 0x26, 0x64, 0x86, 0x24, 0xf0, 0x65, 0x05, + 0x27, 0x92, 0xbc, 0x7a, 0xe9, 0x75, 0x28, 0x22, 0x57, 0x3e, 0x95, 0x4a, 0x99, 0xe9, 0x7c, 0x52, + 0x13, 0x75, 0xa2, 0x13, 0xa9, 0xe3, 0xa1, 0xe9, 0x09, 0x4b, 0x12, 0x45, 0x52, 0x41, 0xd4, 0x82, + 0xea, 0x5b, 0xb7, 0xa9, 0x6d, 0xa3, 0xf6, 0x11, 0xc5, 0x8b, 0x67, 0x61, 0x30, 0xbf, 0x98, 0x52, + 0xbd, 0x96, 0x94, 0xe5, 0x48, 0x72, 0x17, 0x20, 0x94, 0xd0, 0xa0, 0x8b, 0x5d, 0x52, 0x60, 0xf2, + 0xb1, 0x97, 0xe1, 0x44, 0x94, 0x8c, 0x74, 0x5c, 0x2f, 0xcc, 0x95, 0x4a, 0xf5, 0x28, 0x4b, 0x79, + 0x28, 0xe1, 0xc2, 0x43, 0x4a, 0x21, 0x2b, 0x44, 0xe9, 0x6d, 0x65, 0x8e, 0xa2, 0x90, 0xce, 0xc3, + 0x92, 0x4c, 0x39, 0xc3, 0x4c, 0x5b, 0x26, 0x9d, 0x8b, 0x08, 0x55, 0x05, 0x1d, 0x7b, 0x15, 0x2a, + 0x51, 0xda, 0x49, 0x99, 0x4a, 0x5b, 0xf8, 0x9b, 0x58, 0xde, 0xb9, 0x16, 0x62, 0xdc, 0x8f, 0x10, + 0x30, 0xf1, 0xcc, 0x48, 0x84, 0x8b, 0x99, 0x89, 0xf0, 0xcb, 0xb0, 0x64, 0x1e, 0x70, 0xb3, 0x65, + 0x58, 0x8e, 0x81, 0x8c, 0x50, 0x65, 0xb0, 0x80, 0xd0, 0x5d, 0x07, 0xf3, 0x73, 0xfd, 0x85, 0x94, + 0x46, 0x69, 0x78, 0x77, 0xf4, 0xe7, 0xd3, 0x50, 0x8e, 0x0f, 0xe0, 0x41, 0x1d, 0xd1, 0xd4, 0x12, + 0xc5, 0xb5, 0x67, 0x3a, 0xbe, 0x70, 0x6d, 0xae, 0x23, 0x10, 0xd4, 0xed, 0x64, 0x04, 0xdd, 0x6d, + 0x09, 0xef, 0x1e, 0xf4, 0x3b, 0x2a, 0x72, 0xe1, 0xef, 0x98, 0xb9, 0x4c, 0x0f, 0x98, 0xcb, 0xd0, + 0x45, 0xeb, 0x4c, 0xca, 0x7d, 0xfb, 0x4b, 0xb0, 0xe0, 0xbb, 0x5d, 0xaf, 0xc9, 0xe5, 0x3b, 0x1a, + 0x55, 0x7d, 0x4b, 0x18, 0xf6, 0x64, 0x84, 0xd6, 0x5b, 0x42, 0xb6, 0x32, 0xf6, 0x13, 0x9e, 0x14, + 0x48, 0x39, 0x36, 0x20, 0x91, 0xaf, 0x00, 0xa3, 0xf9, 0x94, 0x46, 0xc5, 0x5e, 0x64, 0xf9, 0x54, + 0x96, 0x23, 0x4a, 0xab, 0xbb, 0x2d, 0x76, 0x1b, 0x4e, 0xc7, 0xa7, 0x8e, 0x93, 0x94, 0x90, 0xe4, + 0x64, 0x6c, 0x38, 0x46, 0xf7, 0x16, 0x2c, 0x58, 0x8e, 0x15, 0x58, 0x68, 0x0f, 0x66, 0x40, 0x65, + 0xf7, 0x78, 0x79, 0xe8, 0x7c, 0x48, 0xb9, 0x1d, 0xb0, 0x37, 0x61, 0x3e, 0x32, 0xfd, 0x60, 0x6d, + 0x7e, 0x92, 0xd6, 0x48, 0x78, 0x38, 0xe2, 0xc9, 0xf2, 0xc2, 0x40, 0xb2, 0x2c, 0xb4, 0x2a, 0x82, + 0x5c, 0x18, 0x78, 0xd6, 0x16, 0x49, 0xab, 0x56, 0x9b, 0x87, 0xd1, 0x46, 0xff, 0xf7, 0x19, 0xba, + 0x5b, 0x4a, 0x98, 0x12, 0x9d, 0xcf, 0xf7, 0x60, 0x69, 0xb0, 0x91, 0x41, 0x29, 0xe8, 0xe6, 0x38, + 0xcd, 0x30, 0x61, 0x78, 0x94, 0x7e, 0x2e, 0x0e, 0xb4, 0x3c, 0xa2, 0x7e, 0x4e, 0xd8, 0xb6, 0x8a, + 0x5f, 0x88, 0xab, 0x39, 0xd8, 0x55, 0x50, 0x9d, 0x0f, 0xe1, 0x56, 0x6d, 0xb7, 0x2f, 0xce, 0x95, + 0xba, 0x0f, 0xa7, 0x91, 0x37, 0xc2, 0x01, 0x76, 0x1f, 0xce, 0x0e, 0xf7, 0x50, 0x8c, 0x96, 0xe5, + 0x07, 0x9e, 0xd5, 0xe8, 0x86, 0x47, 0xbc, 0x54, 0x3f, 0x33, 0xd4, 0x4f, 0x79, 0x23, 0x86, 0xc4, + 0xbe, 0x01, 0x73, 0x8d, 0xbe, 0x21, 0xfb, 0x87, 0x33, 0xb8, 0xdd, 0x5f, 0x1d, 0xf9, 0x5a, 0x26, + 0x55, 0x74, 0xd5, 0x9d, 0x3e, 0xb6, 0x14, 0xf1, 0xca, 0xb7, 0x3e, 0xdb, 0x90, 0x5f, 0xec, 0x7d, + 0x98, 0x6d, 0xf4, 0x0d, 0x3c, 0x48, 0x45, 0x9c, 0xfa, 0xb5, 0x23, 0x4d, 0xfd, 0xb8, 0xdf, 0xa1, + 0x99, 0x8b, 0x0d, 0xfc, 0x60, 0xbf, 0x01, 0xa5, 0x46, 0xdf, 0x08, 0xbb, 0x09, 0x62, 0xea, 0xd7, + 0x8f, 0x34, 0xb5, 0x2c, 0x1d, 0xe4, 0xe4, 0x73, 0x0d, 0xfa, 0xac, 0xdc, 0x85, 0x85, 0xf8, 0x86, + 0x58, 0x19, 0x0a, 0x4f, 0x79, 0x5f, 0x75, 0x02, 0x9f, 0xf2, 0x3e, 0x5b, 0x85, 0x99, 0xf8, 0xa3, + 0x0a, 0xf9, 0x71, 0x77, 0xea, 0x8e, 0x56, 0xf9, 0x32, 0xcc, 0xc7, 0x38, 0x9e, 0x88, 0xf4, 0x2b, + 0xb0, 0x38, 0xc0, 0xd1, 0x24, 0xc4, 0xfa, 0x39, 0x15, 0xee, 0xe2, 0xcd, 0xe2, 0x01, 0x57, 0xf9, + 0x3f, 0x05, 0x38, 0x39, 0x34, 0x7a, 0x4c, 0xfe, 0x32, 0xab, 0x0b, 0xa5, 0xfc, 0xe8, 0x74, 0xcc, + 0x8f, 0x26, 0x5d, 0xe1, 0xcc, 0x98, 0xae, 0xb0, 0x98, 0xe1, 0x0a, 0x93, 0x4e, 0x6a, 0xf6, 0x98, + 0x9c, 0xd4, 0xdc, 0x11, 0x9d, 0xd4, 0x06, 0x2c, 0x1e, 0xb8, 0x5d, 0xcf, 0x37, 0xdc, 0x1e, 0xf7, + 0x5a, 0x5d, 0x4e, 0x7d, 0xcd, 0x05, 0x04, 0x7e, 0x4d, 0xc2, 0x44, 0x2e, 0x89, 0xa5, 0xc2, 0x53, + 0x47, 0x64, 0x71, 0x64, 0xc9, 0x20, 0xd3, 0x28, 0x31, 0xf0, 0x6b, 0x02, 0x2e, 0x6d, 0x41, 0x78, + 0x06, 0x8f, 0x37, 0xdd, 0x76, 0x9b, 0x3b, 0x2d, 0xc1, 0x1a, 0x0a, 0x1d, 0x7d, 0x68, 0xa9, 0x7e, + 0x22, 0x36, 0xb2, 0x8d, 0x03, 0xfa, 0xff, 0xa5, 0x5e, 0xfb, 0x0c, 0xba, 0xba, 0xc7, 0x30, 0xef, + 0x8b, 0xd1, 0x01, 0x3f, 0x77, 0x75, 0xac, 0x0b, 0x88, 0x84, 0xb3, 0x03, 0x9c, 0x47, 0x7a, 0xba, + 0x4b, 0x20, 0xfb, 0xce, 0x86, 0x9c, 0x3b, 0x6e, 0xa9, 0xb2, 0xbc, 0xc6, 0x89, 0x64, 0x40, 0x4c, + 0xe0, 0x46, 0xa5, 0xcf, 0x74, 0x1c, 0x57, 0xd6, 0x3d, 0x57, 0x80, 0xb9, 0xb6, 0xd0, 0x3b, 0x21, + 0xa3, 0x24, 0xc9, 0xa6, 0xca, 0x72, 0x04, 0xb1, 0xdf, 0x16, 0x70, 0x5d, 0xa7, 0xab, 0x23, 0x7a, + 0x13, 0x98, 0x76, 0xdd, 0xae, 0x7f, 0x3a, 0x05, 0x2b, 0x29, 0xe3, 0xa2, 0x70, 0x8d, 0x07, 0x47, + 0x0d, 0xf9, 0x81, 0x4e, 0x14, 0x11, 0x37, 0x60, 0x11, 0xe5, 0x62, 0x0c, 0x64, 0x88, 0xf5, 0x05, + 0x04, 0x52, 0x6e, 0x28, 0xce, 0x13, 0x9a, 0xac, 0x98, 0x42, 0x56, 0x73, 0xb3, 0xf8, 0xbd, 0x8b, + 0x95, 0xb1, 0x7f, 0x60, 0x7a, 0xdc, 0x37, 0x0e, 0x44, 0xf1, 0x2c, 0xf7, 0x00, 0x12, 0xf4, 0x36, + 0x95, 0xce, 0xf8, 0x65, 0x74, 0x3c, 0xab, 0xa9, 0x72, 0x09, 0x89, 0xf0, 0x50, 0x40, 0xd8, 0x8b, + 0x50, 0x0a, 0x73, 0x40, 0x3a, 0x13, 0x11, 0x60, 0x38, 0x19, 0x99, 0x4d, 0x49, 0x46, 0xca, 0x50, + 0x30, 0x3b, 0x7d, 0x2a, 0xb2, 0xc4, 0xcf, 0x58, 0x60, 0x2d, 0x0d, 0x04, 0xd6, 0xc4, 0x95, 0x06, + 0x1c, 0xed, 0x4a, 0x43, 0xff, 0x27, 0x0d, 0x5e, 0x1a, 0xa1, 0x13, 0x32, 0xca, 0xaf, 0x0d, 0x3f, + 0x33, 0xb8, 0x3c, 0xf2, 0x99, 0x51, 0xea, 0xc5, 0x7c, 0xec, 0x89, 0x41, 0xd8, 0xd5, 0x19, 0xbc, + 0x54, 0x9a, 0xa6, 0xae, 0x4e, 0x74, 0xa7, 0x94, 0xd7, 0xaf, 0xd8, 0xfa, 0x93, 0x0d, 0x98, 0xc1, + 0x0d, 0xb0, 0x3f, 0xd2, 0x00, 0xa2, 0x37, 0x4e, 0x6c, 0x8c, 0xa7, 0xa5, 0xf1, 0x77, 0x5a, 0x95, + 0xda, 0xd8, 0xf8, 0x52, 0x28, 0xfa, 0xe5, 0xdf, 0xfa, 0xd7, 0xff, 0xfe, 0xfd, 0xa9, 0xf3, 0x6c, + 0xa3, 0x36, 0xea, 0x35, 0x35, 0x7a, 0x10, 0x9f, 0x7d, 0x5f, 0x83, 0x52, 0xf8, 0x9c, 0x95, 0x5d, + 0x1d, 0xf7, 0xd9, 0xab, 0x64, 0x6d, 0xc2, 0x57, 0xb2, 0xfa, 0x79, 0xe4, 0xec, 0x2c, 0x3b, 0x33, + 0x92, 0x33, 0xf6, 0x7b, 0x1a, 0x94, 0xc2, 0x47, 0xc6, 0x39, 0x3c, 0x25, 0x9f, 0x3b, 0xe7, 0xf0, + 0x34, 0xf4, 0x76, 0x59, 0x7f, 0x05, 0x79, 0x3a, 0xc7, 0xd6, 0x47, 0xf2, 0xe4, 0xb3, 0x1f, 0x68, + 0xb0, 0x10, 0x7f, 0x3d, 0xc9, 0xae, 0x8d, 0x5c, 0x28, 0xe5, 0xe9, 0x6f, 0xe5, 0xfa, 0x04, 0x14, + 0xc4, 0xdd, 0x16, 0x72, 0x77, 0x85, 0x5d, 0xca, 0xe2, 0x4e, 0xd9, 0x69, 0xed, 0xbb, 0xe4, 0x5e, + 0x3e, 0x64, 0x1f, 0x69, 0xb0, 0x38, 0xf0, 0xbc, 0x95, 0x8d, 0xbf, 0x70, 0x28, 0xc6, 0xad, 0x49, + 0x48, 0x88, 0xd9, 0x1b, 0xc8, 0xec, 0x55, 0x76, 0x39, 0x8f, 0x59, 0x3f, 0xc6, 0xad, 0x30, 0xc0, + 0xf0, 0xc5, 0x68, 0x8e, 0xb2, 0x93, 0x6f, 0x4e, 0x73, 0x94, 0x3d, 0xf4, 0x10, 0x35, 0xdf, 0x00, + 0xb1, 0x04, 0x66, 0x1f, 0x42, 0xe1, 0xc1, 0xf6, 0x13, 0x76, 0x61, 0xe4, 0xec, 0xd1, 0xb5, 0x75, + 0x65, 0x33, 0x1f, 0x91, 0x18, 0xd8, 0x40, 0x06, 0xce, 0xb0, 0x17, 0xb2, 0x18, 0x70, 0xcc, 0x1e, + 0xfb, 0x6b, 0x0d, 0xca, 0xc9, 0xb7, 0x81, 0xec, 0xe6, 0xc8, 0x35, 0x32, 0xde, 0x2c, 0x56, 0x6e, + 0x4d, 0x48, 0x45, 0x6c, 0x5e, 0x47, 0x36, 0x2f, 0xb3, 0x8b, 0xb5, 0x51, 0x7f, 0xf0, 0xc0, 0x08, + 0x55, 0xa3, 0xc7, 0x86, 0x7f, 0xa7, 0xc1, 0x72, 0x62, 0x3e, 0x76, 0x63, 0x92, 0xd5, 0x15, 0xcb, + 0x37, 0x27, 0x23, 0x22, 0x8e, 0xbf, 0x82, 0x1c, 0xdf, 0x62, 0x37, 0xc6, 0xe5, 0xb8, 0xf6, 0x5d, + 0x95, 0xc0, 0x7e, 0xc8, 0xfe, 0x59, 0x83, 0xa5, 0x44, 0x58, 0x1f, 0x6d, 0xff, 0xa9, 0x2f, 0x0d, + 0x2b, 0x37, 0x26, 0xa2, 0x21, 0xc6, 0xdf, 0x46, 0xc6, 0x77, 0xd8, 0xeb, 0x63, 0x30, 0x1e, 0x1d, + 0xf6, 0x90, 0xf7, 0xd8, 0x49, 0xfa, 0xb1, 0x06, 0xcb, 0x89, 0x40, 0xc9, 0x26, 0x61, 0xc9, 0x1f, + 0x4f, 0x03, 0x19, 0xb1, 0x58, 0x7f, 0x0d, 0x37, 0x72, 0x87, 0xdd, 0x9e, 0x60, 0x23, 0x71, 0x47, + 0xf0, 0x8f, 0x1a, 0xac, 0xa6, 0x05, 0x7b, 0x76, 0x27, 0x3f, 0xca, 0x64, 0x6c, 0xe4, 0xcb, 0x47, + 0xa0, 0xa4, 0xdd, 0x5c, 0xc3, 0xdd, 0x5c, 0x62, 0x9b, 0x59, 0xbb, 0x49, 0x3e, 0x7b, 0x60, 0x7f, + 0xa3, 0xc1, 0x42, 0x3c, 0xe3, 0xcd, 0x09, 0x10, 0x29, 0x6f, 0xff, 0x72, 0x02, 0x44, 0xda, 0xb3, + 0xbf, 0x89, 0xa4, 0xae, 0xba, 0x09, 0x71, 0xd3, 0xff, 0xa9, 0x06, 0x27, 0x86, 0xde, 0xd4, 0xb1, + 0x5b, 0xe3, 0x97, 0xc6, 0xb1, 0x17, 0x82, 0x95, 0xdb, 0x93, 0x92, 0xd1, 0x26, 0x76, 0x70, 0x13, + 0xaf, 0xb2, 0xbb, 0x93, 0x6c, 0xa2, 0xeb, 0x73, 0x2f, 0x66, 0x3e, 0x7f, 0xaf, 0x01, 0x1b, 0x7e, + 0x2f, 0xc7, 0x6e, 0x8f, 0xe9, 0x4d, 0x12, 0x0f, 0xf4, 0x2a, 0x5f, 0x9a, 0x98, 0x6e, 0xdc, 0x20, + 0x18, 0xdb, 0x8b, 0x7a, 0x77, 0x27, 0x98, 0x5f, 0x49, 0x79, 0xb7, 0xc6, 0x46, 0x73, 0x91, 0xfd, + 0x48, 0xaf, 0x72, 0x67, 0x72, 0xc2, 0x71, 0x0d, 0x3f, 0xce, 0xbf, 0x98, 0x87, 0xfd, 0xa5, 0x06, + 0xcb, 0x89, 0x17, 0x12, 0x39, 0x7e, 0x27, 0xfd, 0x15, 0x4d, 0x8e, 0xdf, 0xc9, 0x78, 0xcf, 0x91, + 0xcf, 0x70, 0xac, 0xd9, 0x85, 0x2d, 0x63, 0xf6, 0x23, 0x0d, 0x96, 0x13, 0x37, 0xca, 0x39, 0x0c, + 0xa7, 0x3f, 0x67, 0xc8, 0x61, 0x38, 0xe3, 0xd2, 0x5a, 0xbf, 0x8b, 0x0c, 0xdf, 0x64, 0x5b, 0x59, + 0x0c, 0xe3, 0x5d, 0x51, 0xec, 0x42, 0x3a, 0x66, 0xe5, 0x7f, 0xa6, 0xc1, 0x7c, 0xec, 0x2a, 0x96, + 0xd5, 0x72, 0x39, 0x18, 0xbc, 0x04, 0xae, 0x5c, 0x1b, 0x9f, 0x80, 0xd8, 0xbd, 0x8d, 0xec, 0x5e, + 0x63, 0xd5, 0x91, 0xec, 0x36, 0x24, 0x55, 0x8c, 0x55, 0x21, 0xe5, 0xc4, 0x55, 0x68, 0x8e, 0x94, + 0xd3, 0x2f, 0x63, 0x73, 0xa4, 0x9c, 0x71, 0xdb, 0x9a, 0x2f, 0xe5, 0xf0, 0x42, 0x94, 0x28, 0x63, + 0xac, 0x0b, 0x8b, 0x4e, 0x5c, 0x66, 0xe5, 0xb0, 0x9e, 0x7e, 0xc1, 0x98, 0xc3, 0x7a, 0xc6, 0x7d, + 0x59, 0xbe, 0x45, 0xfb, 0x44, 0xa8, 0x6e, 0xd3, 0xd0, 0xf9, 0x0d, 0x5f, 0x23, 0xe5, 0x38, 0xbf, + 0xcc, 0x6b, 0xae, 0x1c, 0xe7, 0x97, 0x7d, 0x5f, 0x95, 0xef, 0xfc, 0x42, 0xce, 0x23, 0xf3, 0x66, + 0x7f, 0xaa, 0xc1, 0xe2, 0x40, 0x6c, 0x60, 0xd7, 0x27, 0xe9, 0xcc, 0x8e, 0x53, 0xaf, 0xa4, 0xb6, + 0xb4, 0xf4, 0x2a, 0x72, 0xbb, 0xc9, 0x5e, 0xc9, 0xe2, 0x76, 0xb0, 0xb7, 0xcf, 0xfe, 0x41, 0x48, + 0x79, 0xa8, 0x43, 0x96, 0x27, 0xe5, 0xac, 0xee, 0x6a, 0xe5, 0x4b, 0x13, 0xd3, 0x11, 0xdf, 0x37, + 0x91, 0xef, 0x2a, 0xbb, 0x92, 0x29, 0x65, 0xec, 0x79, 0x25, 0xb8, 0xff, 0x1d, 0x0d, 0x66, 0x64, + 0x07, 0xe2, 0x62, 0xde, 0xc2, 0x51, 0x1c, 0xb9, 0x34, 0x0e, 0xea, 0xb8, 0xc5, 0x95, 0xec, 0x38, + 0xfc, 0xae, 0x06, 0x45, 0xf9, 0xff, 0x2b, 0x36, 0x7a, 0xf6, 0x81, 0xbf, 0x7c, 0x55, 0x2e, 0x8f, + 0x85, 0x3b, 0x6e, 0x51, 0x2f, 0xff, 0xf2, 0xb5, 0xf3, 0x2b, 0x3f, 0xfb, 0x78, 0x5d, 0xfb, 0xf9, + 0xc7, 0xeb, 0xda, 0x7f, 0x7d, 0xbc, 0xae, 0x7d, 0xef, 0x93, 0xf5, 0xe7, 0x7e, 0xfe, 0xc9, 0xfa, + 0x73, 0xbf, 0xf8, 0x64, 0xfd, 0xb9, 0x6f, 0x6c, 0xd0, 0x3a, 0x72, 0xd1, 0x6f, 0xf7, 0xbf, 0x53, + 0xeb, 0xdd, 0xa8, 0x05, 0xfd, 0x0e, 0xf7, 0xa3, 0x59, 0x1a, 0x45, 0x6c, 0x67, 0xdd, 0xf8, 0xff, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x5c, 0xf3, 0x42, 0x37, 0xdf, 0x3f, 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 { + // VaultStats returns statistics for the primary V2 vault + VaultStats(ctx context.Context, in *QueryVaultStatsRequest, opts ...grpc.CallOption) (*QueryVaultStatsResponse, error) + // VaultInfo returns configuration and state for a specific vault type + VaultInfo(ctx context.Context, in *QueryVaultInfoRequest, opts ...grpc.CallOption) (*QueryVaultInfoResponse, error) + // AllVaults returns information for all vault types + AllVaults(ctx context.Context, in *QueryAllVaultsRequest, opts ...grpc.CallOption) (*QueryAllVaultsResponse, error) + // UserPosition returns a user's position in a specific vault + UserPosition(ctx context.Context, in *QueryUserPositionRequest, opts ...grpc.CallOption) (*QueryUserPositionResponse, error) + // UserPositions returns all of a user's positions across vault types + UserPositions(ctx context.Context, in *QueryUserPositionsRequest, opts ...grpc.CallOption) (*QueryUserPositionsResponse, error) + // YieldInfo returns the current yield information for a vault type + YieldInfo(ctx context.Context, in *QueryYieldInfoRequest, opts ...grpc.CallOption) (*QueryYieldInfoResponse, error) + // NAV returns current NAV with breakdown (spec-aligned) + NAV(ctx context.Context, in *QueryNAVRequest, opts ...grpc.CallOption) (*QueryNAVResponse, error) + // CrossChainRoutes returns all available cross-chain routes + CrossChainRoutes(ctx context.Context, in *QueryCrossChainRoutesRequest, opts ...grpc.CallOption) (*QueryCrossChainRoutesResponse, error) + // CrossChainRoute returns information for a specific route + CrossChainRoute(ctx context.Context, in *QueryCrossChainRouteRequest, opts ...grpc.CallOption) (*QueryCrossChainRouteResponse, error) + // RemotePosition returns a user's remote position on a specific route + RemotePosition(ctx context.Context, in *QueryRemotePositionRequest, opts ...grpc.CallOption) (*QueryRemotePositionResponse, error) + // RemotePositions returns all remote positions for a user + RemotePositions(ctx context.Context, in *QueryRemotePositionsRequest, opts ...grpc.CallOption) (*QueryRemotePositionsResponse, error) + // VaultRemotePositions returns all remote positions for the vault (spec-aligned) + VaultRemotePositions(ctx context.Context, in *QueryVaultRemotePositionsRequest, opts ...grpc.CallOption) (*QueryVaultRemotePositionsResponse, error) + // InflightFund returns information about an in-flight operation + InflightFund(ctx context.Context, in *QueryInflightFundRequest, opts ...grpc.CallOption) (*QueryInflightFundResponse, error) + // InflightFundsUser returns all in-flight operations for a user + InflightFundsUser(ctx context.Context, in *QueryInflightFundsUserRequest, opts ...grpc.CallOption) (*QueryInflightFundsUserResponse, error) + // CrossChainSnapshot returns cross-chain position snapshot for a vault + CrossChainSnapshot(ctx context.Context, in *QueryCrossChainSnapshotRequest, opts ...grpc.CallOption) (*QueryCrossChainSnapshotResponse, error) + // StaleInflightAlerts returns stale inflight alerts for a user or route + StaleInflightAlerts(ctx context.Context, in *QueryStaleInflightAlertsRequest, opts ...grpc.CallOption) (*QueryStaleInflightAlertsResponse, error) + // WithdrawalQueue returns the current withdrawal queue (spec-aligned) + WithdrawalQueue(ctx context.Context, in *QueryWithdrawalQueueRequest, opts ...grpc.CallOption) (*QueryWithdrawalQueueResponse, error) + // UserWithdrawals returns all withdrawal requests for a user (spec-aligned) + UserWithdrawals(ctx context.Context, in *QueryUserWithdrawalsRequest, opts ...grpc.CallOption) (*QueryUserWithdrawalsResponse, error) + // UserBalance returns deposit balance and yield for a user (spec-aligned) + UserBalance(ctx context.Context, in *QueryUserBalanceRequest, opts ...grpc.CallOption) (*QueryUserBalanceResponse, error) + // DepositVelocity returns deposit velocity metrics (spec-aligned) + DepositVelocity(ctx context.Context, in *QueryDepositVelocityRequest, opts ...grpc.CallOption) (*QueryDepositVelocityResponse, error) + // SimulateDeposit (spec-aligned) + SimulateDeposit(ctx context.Context, in *QuerySimulateDepositRequest, opts ...grpc.CallOption) (*QuerySimulateDepositResponse, error) + // SimulateWithdrawal (spec-aligned) + SimulateWithdrawal(ctx context.Context, in *QuerySimulateWithdrawalRequest, opts ...grpc.CallOption) (*QuerySimulateWithdrawalResponse, error) + // InflightFunds (spec-aligned aggregate view) + InflightFunds(ctx context.Context, in *QueryInflightFundsRequest, opts ...grpc.CallOption) (*QueryInflightFundsResponse, error) + // StaleInflightFunds (spec-aligned aggregate view) + StaleInflightFunds(ctx context.Context, in *QueryStaleInflightFundsRequest, opts ...grpc.CallOption) (*QueryStaleInflightFundsResponse, error) + // Stats returns statistics for a vault type + Stats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) + // Params returns the module parameters + 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) VaultStats(ctx context.Context, in *QueryVaultStatsRequest, opts ...grpc.CallOption) (*QueryVaultStatsResponse, error) { + out := new(QueryVaultStatsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/VaultStats", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) VaultInfo(ctx context.Context, in *QueryVaultInfoRequest, opts ...grpc.CallOption) (*QueryVaultInfoResponse, error) { + out := new(QueryVaultInfoResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/VaultInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllVaults(ctx context.Context, in *QueryAllVaultsRequest, opts ...grpc.CallOption) (*QueryAllVaultsResponse, error) { + out := new(QueryAllVaultsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/AllVaults", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserPosition(ctx context.Context, in *QueryUserPositionRequest, opts ...grpc.CallOption) (*QueryUserPositionResponse, error) { + out := new(QueryUserPositionResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/UserPosition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserPositions(ctx context.Context, in *QueryUserPositionsRequest, opts ...grpc.CallOption) (*QueryUserPositionsResponse, error) { + out := new(QueryUserPositionsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/UserPositions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) YieldInfo(ctx context.Context, in *QueryYieldInfoRequest, opts ...grpc.CallOption) (*QueryYieldInfoResponse, error) { + out := new(QueryYieldInfoResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/YieldInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NAV(ctx context.Context, in *QueryNAVRequest, opts ...grpc.CallOption) (*QueryNAVResponse, error) { + out := new(QueryNAVResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/NAV", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CrossChainRoutes(ctx context.Context, in *QueryCrossChainRoutesRequest, opts ...grpc.CallOption) (*QueryCrossChainRoutesResponse, error) { + out := new(QueryCrossChainRoutesResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/CrossChainRoutes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CrossChainRoute(ctx context.Context, in *QueryCrossChainRouteRequest, opts ...grpc.CallOption) (*QueryCrossChainRouteResponse, error) { + out := new(QueryCrossChainRouteResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/CrossChainRoute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RemotePosition(ctx context.Context, in *QueryRemotePositionRequest, opts ...grpc.CallOption) (*QueryRemotePositionResponse, error) { + out := new(QueryRemotePositionResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/RemotePosition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RemotePositions(ctx context.Context, in *QueryRemotePositionsRequest, opts ...grpc.CallOption) (*QueryRemotePositionsResponse, error) { + out := new(QueryRemotePositionsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/RemotePositions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) VaultRemotePositions(ctx context.Context, in *QueryVaultRemotePositionsRequest, opts ...grpc.CallOption) (*QueryVaultRemotePositionsResponse, error) { + out := new(QueryVaultRemotePositionsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/VaultRemotePositions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InflightFund(ctx context.Context, in *QueryInflightFundRequest, opts ...grpc.CallOption) (*QueryInflightFundResponse, error) { + out := new(QueryInflightFundResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/InflightFund", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InflightFundsUser(ctx context.Context, in *QueryInflightFundsUserRequest, opts ...grpc.CallOption) (*QueryInflightFundsUserResponse, error) { + out := new(QueryInflightFundsUserResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/InflightFundsUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CrossChainSnapshot(ctx context.Context, in *QueryCrossChainSnapshotRequest, opts ...grpc.CallOption) (*QueryCrossChainSnapshotResponse, error) { + out := new(QueryCrossChainSnapshotResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/CrossChainSnapshot", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) StaleInflightAlerts(ctx context.Context, in *QueryStaleInflightAlertsRequest, opts ...grpc.CallOption) (*QueryStaleInflightAlertsResponse, error) { + out := new(QueryStaleInflightAlertsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/StaleInflightAlerts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) WithdrawalQueue(ctx context.Context, in *QueryWithdrawalQueueRequest, opts ...grpc.CallOption) (*QueryWithdrawalQueueResponse, error) { + out := new(QueryWithdrawalQueueResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/WithdrawalQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserWithdrawals(ctx context.Context, in *QueryUserWithdrawalsRequest, opts ...grpc.CallOption) (*QueryUserWithdrawalsResponse, error) { + out := new(QueryUserWithdrawalsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/UserWithdrawals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserBalance(ctx context.Context, in *QueryUserBalanceRequest, opts ...grpc.CallOption) (*QueryUserBalanceResponse, error) { + out := new(QueryUserBalanceResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/UserBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DepositVelocity(ctx context.Context, in *QueryDepositVelocityRequest, opts ...grpc.CallOption) (*QueryDepositVelocityResponse, error) { + out := new(QueryDepositVelocityResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/DepositVelocity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) SimulateDeposit(ctx context.Context, in *QuerySimulateDepositRequest, opts ...grpc.CallOption) (*QuerySimulateDepositResponse, error) { + out := new(QuerySimulateDepositResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/SimulateDeposit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) SimulateWithdrawal(ctx context.Context, in *QuerySimulateWithdrawalRequest, opts ...grpc.CallOption) (*QuerySimulateWithdrawalResponse, error) { + out := new(QuerySimulateWithdrawalResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/SimulateWithdrawal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InflightFunds(ctx context.Context, in *QueryInflightFundsRequest, opts ...grpc.CallOption) (*QueryInflightFundsResponse, error) { + out := new(QueryInflightFundsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/InflightFunds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) StaleInflightFunds(ctx context.Context, in *QueryStaleInflightFundsRequest, opts ...grpc.CallOption) (*QueryStaleInflightFundsResponse, error) { + out := new(QueryStaleInflightFundsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/StaleInflightFunds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Stats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) { + out := new(QueryStatsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Query/Stats", 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, "/noble.dollar.vaults.v2.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 { + // VaultStats returns statistics for the primary V2 vault + VaultStats(context.Context, *QueryVaultStatsRequest) (*QueryVaultStatsResponse, error) + // VaultInfo returns configuration and state for a specific vault type + VaultInfo(context.Context, *QueryVaultInfoRequest) (*QueryVaultInfoResponse, error) + // AllVaults returns information for all vault types + AllVaults(context.Context, *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) + // UserPosition returns a user's position in a specific vault + UserPosition(context.Context, *QueryUserPositionRequest) (*QueryUserPositionResponse, error) + // UserPositions returns all of a user's positions across vault types + UserPositions(context.Context, *QueryUserPositionsRequest) (*QueryUserPositionsResponse, error) + // YieldInfo returns the current yield information for a vault type + YieldInfo(context.Context, *QueryYieldInfoRequest) (*QueryYieldInfoResponse, error) + // NAV returns current NAV with breakdown (spec-aligned) + NAV(context.Context, *QueryNAVRequest) (*QueryNAVResponse, error) + // CrossChainRoutes returns all available cross-chain routes + CrossChainRoutes(context.Context, *QueryCrossChainRoutesRequest) (*QueryCrossChainRoutesResponse, error) + // CrossChainRoute returns information for a specific route + CrossChainRoute(context.Context, *QueryCrossChainRouteRequest) (*QueryCrossChainRouteResponse, error) + // RemotePosition returns a user's remote position on a specific route + RemotePosition(context.Context, *QueryRemotePositionRequest) (*QueryRemotePositionResponse, error) + // RemotePositions returns all remote positions for a user + RemotePositions(context.Context, *QueryRemotePositionsRequest) (*QueryRemotePositionsResponse, error) + // VaultRemotePositions returns all remote positions for the vault (spec-aligned) + VaultRemotePositions(context.Context, *QueryVaultRemotePositionsRequest) (*QueryVaultRemotePositionsResponse, error) + // InflightFund returns information about an in-flight operation + InflightFund(context.Context, *QueryInflightFundRequest) (*QueryInflightFundResponse, error) + // InflightFundsUser returns all in-flight operations for a user + InflightFundsUser(context.Context, *QueryInflightFundsUserRequest) (*QueryInflightFundsUserResponse, error) + // CrossChainSnapshot returns cross-chain position snapshot for a vault + CrossChainSnapshot(context.Context, *QueryCrossChainSnapshotRequest) (*QueryCrossChainSnapshotResponse, error) + // StaleInflightAlerts returns stale inflight alerts for a user or route + StaleInflightAlerts(context.Context, *QueryStaleInflightAlertsRequest) (*QueryStaleInflightAlertsResponse, error) + // WithdrawalQueue returns the current withdrawal queue (spec-aligned) + WithdrawalQueue(context.Context, *QueryWithdrawalQueueRequest) (*QueryWithdrawalQueueResponse, error) + // UserWithdrawals returns all withdrawal requests for a user (spec-aligned) + UserWithdrawals(context.Context, *QueryUserWithdrawalsRequest) (*QueryUserWithdrawalsResponse, error) + // UserBalance returns deposit balance and yield for a user (spec-aligned) + UserBalance(context.Context, *QueryUserBalanceRequest) (*QueryUserBalanceResponse, error) + // DepositVelocity returns deposit velocity metrics (spec-aligned) + DepositVelocity(context.Context, *QueryDepositVelocityRequest) (*QueryDepositVelocityResponse, error) + // SimulateDeposit (spec-aligned) + SimulateDeposit(context.Context, *QuerySimulateDepositRequest) (*QuerySimulateDepositResponse, error) + // SimulateWithdrawal (spec-aligned) + SimulateWithdrawal(context.Context, *QuerySimulateWithdrawalRequest) (*QuerySimulateWithdrawalResponse, error) + // InflightFunds (spec-aligned aggregate view) + InflightFunds(context.Context, *QueryInflightFundsRequest) (*QueryInflightFundsResponse, error) + // StaleInflightFunds (spec-aligned aggregate view) + StaleInflightFunds(context.Context, *QueryStaleInflightFundsRequest) (*QueryStaleInflightFundsResponse, error) + // Stats returns statistics for a vault type + Stats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error) + // Params returns the module parameters + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) VaultStats(ctx context.Context, req *QueryVaultStatsRequest) (*QueryVaultStatsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VaultStats not implemented") +} +func (*UnimplementedQueryServer) VaultInfo(ctx context.Context, req *QueryVaultInfoRequest) (*QueryVaultInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VaultInfo not implemented") +} +func (*UnimplementedQueryServer) AllVaults(ctx context.Context, req *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllVaults not implemented") +} +func (*UnimplementedQueryServer) UserPosition(ctx context.Context, req *QueryUserPositionRequest) (*QueryUserPositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserPosition not implemented") +} +func (*UnimplementedQueryServer) UserPositions(ctx context.Context, req *QueryUserPositionsRequest) (*QueryUserPositionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserPositions not implemented") +} +func (*UnimplementedQueryServer) YieldInfo(ctx context.Context, req *QueryYieldInfoRequest) (*QueryYieldInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method YieldInfo not implemented") +} +func (*UnimplementedQueryServer) NAV(ctx context.Context, req *QueryNAVRequest) (*QueryNAVResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NAV not implemented") +} +func (*UnimplementedQueryServer) CrossChainRoutes(ctx context.Context, req *QueryCrossChainRoutesRequest) (*QueryCrossChainRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CrossChainRoutes not implemented") +} +func (*UnimplementedQueryServer) CrossChainRoute(ctx context.Context, req *QueryCrossChainRouteRequest) (*QueryCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CrossChainRoute not implemented") +} +func (*UnimplementedQueryServer) RemotePosition(ctx context.Context, req *QueryRemotePositionRequest) (*QueryRemotePositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemotePosition not implemented") +} +func (*UnimplementedQueryServer) RemotePositions(ctx context.Context, req *QueryRemotePositionsRequest) (*QueryRemotePositionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemotePositions not implemented") +} +func (*UnimplementedQueryServer) VaultRemotePositions(ctx context.Context, req *QueryVaultRemotePositionsRequest) (*QueryVaultRemotePositionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VaultRemotePositions not implemented") +} +func (*UnimplementedQueryServer) InflightFund(ctx context.Context, req *QueryInflightFundRequest) (*QueryInflightFundResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InflightFund not implemented") +} +func (*UnimplementedQueryServer) InflightFundsUser(ctx context.Context, req *QueryInflightFundsUserRequest) (*QueryInflightFundsUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InflightFundsUser not implemented") +} +func (*UnimplementedQueryServer) CrossChainSnapshot(ctx context.Context, req *QueryCrossChainSnapshotRequest) (*QueryCrossChainSnapshotResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CrossChainSnapshot not implemented") +} +func (*UnimplementedQueryServer) StaleInflightAlerts(ctx context.Context, req *QueryStaleInflightAlertsRequest) (*QueryStaleInflightAlertsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StaleInflightAlerts not implemented") +} +func (*UnimplementedQueryServer) WithdrawalQueue(ctx context.Context, req *QueryWithdrawalQueueRequest) (*QueryWithdrawalQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WithdrawalQueue not implemented") +} +func (*UnimplementedQueryServer) UserWithdrawals(ctx context.Context, req *QueryUserWithdrawalsRequest) (*QueryUserWithdrawalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserWithdrawals not implemented") +} +func (*UnimplementedQueryServer) UserBalance(ctx context.Context, req *QueryUserBalanceRequest) (*QueryUserBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserBalance not implemented") +} +func (*UnimplementedQueryServer) DepositVelocity(ctx context.Context, req *QueryDepositVelocityRequest) (*QueryDepositVelocityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositVelocity not implemented") +} +func (*UnimplementedQueryServer) SimulateDeposit(ctx context.Context, req *QuerySimulateDepositRequest) (*QuerySimulateDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateDeposit not implemented") +} +func (*UnimplementedQueryServer) SimulateWithdrawal(ctx context.Context, req *QuerySimulateWithdrawalRequest) (*QuerySimulateWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateWithdrawal not implemented") +} +func (*UnimplementedQueryServer) InflightFunds(ctx context.Context, req *QueryInflightFundsRequest) (*QueryInflightFundsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InflightFunds not implemented") +} +func (*UnimplementedQueryServer) StaleInflightFunds(ctx context.Context, req *QueryStaleInflightFundsRequest) (*QueryStaleInflightFundsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StaleInflightFunds not implemented") +} +func (*UnimplementedQueryServer) Stats(ctx context.Context, req *QueryStatsRequest) (*QueryStatsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stats not implemented") +} +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_VaultStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).VaultStats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/VaultStats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).VaultStats(ctx, req.(*QueryVaultStatsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_VaultInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).VaultInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/VaultInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).VaultInfo(ctx, req.(*QueryVaultInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AllVaults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllVaultsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllVaults(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/AllVaults", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllVaults(ctx, req.(*QueryAllVaultsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserPositionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserPosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/UserPosition", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserPosition(ctx, req.(*QueryUserPositionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserPositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserPositionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserPositions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/UserPositions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserPositions(ctx, req.(*QueryUserPositionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_YieldInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryYieldInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).YieldInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/YieldInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).YieldInfo(ctx, req.(*QueryYieldInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NAV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNAVRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NAV(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/NAV", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NAV(ctx, req.(*QueryNAVRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CrossChainRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCrossChainRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CrossChainRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/CrossChainRoutes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CrossChainRoutes(ctx, req.(*QueryCrossChainRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCrossChainRouteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/CrossChainRoute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CrossChainRoute(ctx, req.(*QueryCrossChainRouteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RemotePosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRemotePositionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RemotePosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/RemotePosition", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RemotePosition(ctx, req.(*QueryRemotePositionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RemotePositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRemotePositionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RemotePositions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/RemotePositions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RemotePositions(ctx, req.(*QueryRemotePositionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_VaultRemotePositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryVaultRemotePositionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).VaultRemotePositions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/VaultRemotePositions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).VaultRemotePositions(ctx, req.(*QueryVaultRemotePositionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InflightFund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInflightFundRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InflightFund(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/InflightFund", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InflightFund(ctx, req.(*QueryInflightFundRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InflightFundsUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInflightFundsUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InflightFundsUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/InflightFundsUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InflightFundsUser(ctx, req.(*QueryInflightFundsUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CrossChainSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCrossChainSnapshotRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CrossChainSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/CrossChainSnapshot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CrossChainSnapshot(ctx, req.(*QueryCrossChainSnapshotRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_StaleInflightAlerts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStaleInflightAlertsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).StaleInflightAlerts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/StaleInflightAlerts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).StaleInflightAlerts(ctx, req.(*QueryStaleInflightAlertsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_WithdrawalQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryWithdrawalQueueRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).WithdrawalQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/WithdrawalQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).WithdrawalQueue(ctx, req.(*QueryWithdrawalQueueRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserWithdrawals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserWithdrawalsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserWithdrawals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/UserWithdrawals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserWithdrawals(ctx, req.(*QueryUserWithdrawalsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/UserBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserBalance(ctx, req.(*QueryUserBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DepositVelocity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDepositVelocityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DepositVelocity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/DepositVelocity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DepositVelocity(ctx, req.(*QueryDepositVelocityRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_SimulateDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySimulateDepositRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).SimulateDeposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/SimulateDeposit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SimulateDeposit(ctx, req.(*QuerySimulateDepositRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_SimulateWithdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySimulateWithdrawalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).SimulateWithdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/SimulateWithdrawal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).SimulateWithdrawal(ctx, req.(*QuerySimulateWithdrawalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InflightFunds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInflightFundsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InflightFunds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/InflightFunds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InflightFunds(ctx, req.(*QueryInflightFundsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_StaleInflightFunds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStaleInflightFundsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).StaleInflightFunds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/StaleInflightFunds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).StaleInflightFunds(ctx, req.(*QueryStaleInflightFundsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Stats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Query/Stats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Stats(ctx, req.(*QueryStatsRequest)) + } + 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: "/noble.dollar.vaults.v2.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 = _Query_serviceDesc +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "noble.dollar.vaults.v2.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "VaultStats", + Handler: _Query_VaultStats_Handler, + }, + { + MethodName: "VaultInfo", + Handler: _Query_VaultInfo_Handler, + }, + { + MethodName: "AllVaults", + Handler: _Query_AllVaults_Handler, + }, + { + MethodName: "UserPosition", + Handler: _Query_UserPosition_Handler, + }, + { + MethodName: "UserPositions", + Handler: _Query_UserPositions_Handler, + }, + { + MethodName: "YieldInfo", + Handler: _Query_YieldInfo_Handler, + }, + { + MethodName: "NAV", + Handler: _Query_NAV_Handler, + }, + { + MethodName: "CrossChainRoutes", + Handler: _Query_CrossChainRoutes_Handler, + }, + { + MethodName: "CrossChainRoute", + Handler: _Query_CrossChainRoute_Handler, + }, + { + MethodName: "RemotePosition", + Handler: _Query_RemotePosition_Handler, + }, + { + MethodName: "RemotePositions", + Handler: _Query_RemotePositions_Handler, + }, + { + MethodName: "VaultRemotePositions", + Handler: _Query_VaultRemotePositions_Handler, + }, + { + MethodName: "InflightFund", + Handler: _Query_InflightFund_Handler, + }, + { + MethodName: "InflightFundsUser", + Handler: _Query_InflightFundsUser_Handler, + }, + { + MethodName: "CrossChainSnapshot", + Handler: _Query_CrossChainSnapshot_Handler, + }, + { + MethodName: "StaleInflightAlerts", + Handler: _Query_StaleInflightAlerts_Handler, + }, + { + MethodName: "WithdrawalQueue", + Handler: _Query_WithdrawalQueue_Handler, + }, + { + MethodName: "UserWithdrawals", + Handler: _Query_UserWithdrawals_Handler, + }, + { + MethodName: "UserBalance", + Handler: _Query_UserBalance_Handler, + }, + { + MethodName: "DepositVelocity", + Handler: _Query_DepositVelocity_Handler, + }, + { + MethodName: "SimulateDeposit", + Handler: _Query_SimulateDeposit_Handler, + }, + { + MethodName: "SimulateWithdrawal", + Handler: _Query_SimulateWithdrawal_Handler, + }, + { + MethodName: "InflightFunds", + Handler: _Query_InflightFunds_Handler, + }, + { + MethodName: "StaleInflightFunds", + Handler: _Query_StaleInflightFunds_Handler, + }, + { + MethodName: "Stats", + Handler: _Query_Stats_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "noble/dollar/vaults/v2/query.proto", +} + +func (m *QueryVaultInfoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryVaultInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TotalDepositors != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TotalDepositors)) + i-- + dAtA[i] = 0x28 + } + if len(m.TotalNav) > 0 { + i -= len(m.TotalNav) + copy(dAtA[i:], m.TotalNav) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalNav))) + i-- + dAtA[i] = 0x22 + } + if len(m.TotalAccruedYield) > 0 { + i -= len(m.TotalAccruedYield) + copy(dAtA[i:], m.TotalAccruedYield) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalAccruedYield))) + i-- + dAtA[i] = 0x1a + } + if len(m.TotalDeposits) > 0 { + i -= len(m.TotalDeposits) + copy(dAtA[i:], m.TotalDeposits) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalDeposits))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Config.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 *QueryAllVaultsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllVaultsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllVaultsRequest) 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 *QueryAllVaultsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllVaultsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllVaultsResponse) 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.Vaults) > 0 { + for iNdEx := len(m.Vaults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Vaults[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 *QueryVaultRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryVaultResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Vaults) > 0 { + for iNdEx := len(m.Vaults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Vaults[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 *QueryUserPositionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserPositionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserPositionRequest) 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 *QueryUserPositionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserPositionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.UnrealizedYield) > 0 { + i -= len(m.UnrealizedYield) + copy(dAtA[i:], m.UnrealizedYield) + i = encodeVarintQuery(dAtA, i, uint64(len(m.UnrealizedYield))) + i-- + dAtA[i] = 0x1a + } + if len(m.CurrentValue) > 0 { + i -= len(m.CurrentValue) + copy(dAtA[i:], m.CurrentValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CurrentValue))) + i-- + dAtA[i] = 0x12 + } + if m.Position != nil { + { + size, err := m.Position.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 *QueryUserPositionsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserPositionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserPositionsRequest) 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.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 *QueryUserPositionsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserPositionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserPositionsResponse) 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.Positions) > 0 { + for iNdEx := len(m.Positions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Positions[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 *UserPositionWithVault) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserPositionWithVault) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserPositionWithVault) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CurrentValue) > 0 { + i -= len(m.CurrentValue) + copy(dAtA[i:], m.CurrentValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CurrentValue))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Position.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 *QueryYieldInfoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryYieldInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryYieldInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryYieldInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryYieldInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryYieldInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TotalNav) > 0 { + i -= len(m.TotalNav) + copy(dAtA[i:], m.TotalNav) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalNav))) + i-- + dAtA[i] = 0x22 + } + if len(m.TotalAccruedYield) > 0 { + i -= len(m.TotalAccruedYield) + copy(dAtA[i:], m.TotalAccruedYield) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalAccruedYield))) + i-- + dAtA[i] = 0x1a + } + if len(m.TotalDeposits) > 0 { + i -= len(m.TotalDeposits) + copy(dAtA[i:], m.TotalDeposits) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalDeposits))) + i-- + dAtA[i] = 0x12 + } + if len(m.YieldRate) > 0 { + i -= len(m.YieldRate) + copy(dAtA[i:], m.YieldRate) + i = encodeVarintQuery(dAtA, i, uint64(len(m.YieldRate))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryVaultStatsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultStatsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryVaultStatsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultStatsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Stats.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 *QueryStatsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStatsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryStatsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStatsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Stats.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 *QueryAllStatsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllStatsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllStatsRequest) 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 *QueryAllStatsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllStatsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Stats.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 *QueryCrossChainRoutesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCrossChainRoutesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCrossChainRoutesRequest) 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 *QueryCrossChainRoutesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCrossChainRoutesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCrossChainRoutesResponse) 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.Routes) > 0 { + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Routes[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 *QueryCrossChainRouteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCrossChainRouteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCrossChainRouteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryCrossChainRouteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCrossChainRouteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCrossChainRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Route.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 *QueryRemotePositionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRemotePositionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRemotePositionRequest) 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 m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryRemotePositionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRemotePositionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRemotePositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Position.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 *QueryRemotePositionsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRemotePositionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRemotePositionsRequest) 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.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 *QueryRemotePositionsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryRemotePositionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRemotePositionsResponse) 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.Positions) > 0 { + for iNdEx := len(m.Positions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Positions[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 *RemotePositionWithRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemotePositionWithRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemotePositionWithRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryInflightFundRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInflightFundRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInflightFundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryInflightFundResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInflightFundResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInflightFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Fund.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 *QueryInflightFundsUserRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInflightFundsUserRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInflightFundsUserRequest) 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.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 *QueryInflightFundsUserResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInflightFundsUserResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInflightFundsUserResponse) 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.Funds) > 0 { + for iNdEx := len(m.Funds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Funds[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 *QueryCrossChainSnapshotRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCrossChainSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCrossChainSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryCrossChainSnapshotResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryCrossChainSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCrossChainSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Snapshot.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 *QueryStaleInflightAlertsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStaleInflightAlertsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStaleInflightAlertsRequest) 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] = 0x1a + } + 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 m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryStaleInflightAlertsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStaleInflightAlertsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStaleInflightAlertsResponse) 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.Alerts) > 0 { + for iNdEx := len(m.Alerts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Alerts[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 *StaleInflightAlertWithDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StaleInflightAlertWithDetails) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StaleInflightAlertWithDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Fund.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Route.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Alert.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 *QueryNAVRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNAVRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNAVRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *NAVBreakdownView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVBreakdownView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVBreakdownView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Total) > 0 { + i -= len(m.Total) + copy(dAtA[i:], m.Total) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Total))) + i-- + dAtA[i] = 0x2a + } + if len(m.Liabilities) > 0 { + i -= len(m.Liabilities) + copy(dAtA[i:], m.Liabilities) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Liabilities))) + i-- + dAtA[i] = 0x22 + } + if len(m.Inflight) > 0 { + i -= len(m.Inflight) + copy(dAtA[i:], m.Inflight) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Inflight))) + i-- + dAtA[i] = 0x1a + } + if len(m.RemotePositions) > 0 { + i -= len(m.RemotePositions) + copy(dAtA[i:], m.RemotePositions) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RemotePositions))) + i-- + dAtA[i] = 0x12 + } + if len(m.Local) > 0 { + i -= len(m.Local) + copy(dAtA[i:], m.Local) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Local))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryNAVResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryNAVResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryNAVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NavBreakdown != nil { + { + size, err := m.NavBreakdown.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if len(m.PendingWithdrawals) > 0 { + i -= len(m.PendingWithdrawals) + copy(dAtA[i:], m.PendingWithdrawals) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PendingWithdrawals))) + i-- + dAtA[i] = 0x4a + } + if len(m.InflightFundsValue) > 0 { + i -= len(m.InflightFundsValue) + copy(dAtA[i:], m.InflightFundsValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.InflightFundsValue))) + i-- + dAtA[i] = 0x42 + } + if len(m.RemotePositionsValue) > 0 { + i -= len(m.RemotePositionsValue) + copy(dAtA[i:], m.RemotePositionsValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RemotePositionsValue))) + i-- + dAtA[i] = 0x3a + } + if len(m.LocalAssets) > 0 { + i -= len(m.LocalAssets) + copy(dAtA[i:], m.LocalAssets) + i = encodeVarintQuery(dAtA, i, uint64(len(m.LocalAssets))) + i-- + dAtA[i] = 0x32 + } + if len(m.TotalAccruedYield) > 0 { + i -= len(m.TotalAccruedYield) + copy(dAtA[i:], m.TotalAccruedYield) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalAccruedYield))) + i-- + dAtA[i] = 0x2a + } + if len(m.TotalDeposits) > 0 { + i -= len(m.TotalDeposits) + copy(dAtA[i:], m.TotalDeposits) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalDeposits))) + i-- + dAtA[i] = 0x22 + } + n30, err30 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate):]) + if err30 != nil { + return 0, err30 + } + i -= n30 + i = encodeVarintQuery(dAtA, i, uint64(n30)) + i-- + dAtA[i] = 0x1a + if len(m.YieldRate) > 0 { + i -= len(m.YieldRate) + copy(dAtA[i:], m.YieldRate) + i = encodeVarintQuery(dAtA, i, uint64(len(m.YieldRate))) + i-- + dAtA[i] = 0x12 + } + if len(m.Nav) > 0 { + i -= len(m.Nav) + copy(dAtA[i:], m.Nav) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Nav))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryWithdrawalQueueRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryWithdrawalQueueRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryWithdrawalQueueRequest) 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 *WithdrawalQueueItem) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithdrawalQueueItem) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithdrawalQueueItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x40 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x3a + } + n32, err32 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err32 != nil { + return 0, err32 + } + i -= n32 + i = encodeVarintQuery(dAtA, i, uint64(n32)) + i-- + dAtA[i] = 0x32 + if len(m.YieldAmount) > 0 { + i -= len(m.YieldAmount) + copy(dAtA[i:], m.YieldAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.YieldAmount))) + i-- + dAtA[i] = 0x2a + } + if len(m.PrincipalAmount) > 0 { + i -= len(m.PrincipalAmount) + copy(dAtA[i:], m.PrincipalAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PrincipalAmount))) + i-- + dAtA[i] = 0x22 + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintQuery(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0x12 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryWithdrawalQueueResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryWithdrawalQueueResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryWithdrawalQueueResponse) 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] = 0x32 + } + if len(m.EstimatedProcessingTime) > 0 { + i -= len(m.EstimatedProcessingTime) + copy(dAtA[i:], m.EstimatedProcessingTime) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EstimatedProcessingTime))) + i-- + dAtA[i] = 0x2a + } + if m.QueueLength != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.QueueLength)) + i-- + dAtA[i] = 0x20 + } + if len(m.AvailableLiquidity) > 0 { + i -= len(m.AvailableLiquidity) + copy(dAtA[i:], m.AvailableLiquidity) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AvailableLiquidity))) + i-- + dAtA[i] = 0x1a + } + if len(m.TotalPending) > 0 { + i -= len(m.TotalPending) + copy(dAtA[i:], m.TotalPending) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalPending))) + i-- + dAtA[i] = 0x12 + } + if len(m.PendingRequests) > 0 { + for iNdEx := len(m.PendingRequests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PendingRequests[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 *QueryUserWithdrawalsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserWithdrawalsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserWithdrawalsRequest) 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.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 *WithdrawalStatusItem) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithdrawalStatusItem) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithdrawalStatusItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClaimedAt != nil { + n35, err35 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ClaimedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ClaimedAt):]) + if err35 != nil { + return 0, err35 + } + i -= n35 + i = encodeVarintQuery(dAtA, i, uint64(n35)) + i-- + dAtA[i] = 0x4a + } + if m.ClaimableAt != nil { + n36, err36 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ClaimableAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ClaimableAt):]) + if err36 != nil { + return 0, err36 + } + i -= n36 + i = encodeVarintQuery(dAtA, i, uint64(n36)) + i-- + dAtA[i] = 0x42 + } + n37, err37 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err37 != nil { + return 0, err37 + } + i -= n37 + i = encodeVarintQuery(dAtA, i, uint64(n37)) + i-- + dAtA[i] = 0x3a + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x32 + } + if len(m.FulfilledAmount) > 0 { + i -= len(m.FulfilledAmount) + copy(dAtA[i:], m.FulfilledAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.FulfilledAmount))) + i-- + dAtA[i] = 0x2a + } + if len(m.YieldAmount) > 0 { + i -= len(m.YieldAmount) + copy(dAtA[i:], m.YieldAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.YieldAmount))) + i-- + dAtA[i] = 0x22 + } + if len(m.PrincipalAmount) > 0 { + i -= len(m.PrincipalAmount) + copy(dAtA[i:], m.PrincipalAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PrincipalAmount))) + i-- + dAtA[i] = 0x1a + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryUserWithdrawalsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserWithdrawalsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserWithdrawalsResponse) 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 len(m.TotalClaimed) > 0 { + i -= len(m.TotalClaimed) + copy(dAtA[i:], m.TotalClaimed) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalClaimed))) + i-- + dAtA[i] = 0x22 + } + if len(m.TotalClaimable) > 0 { + i -= len(m.TotalClaimable) + copy(dAtA[i:], m.TotalClaimable) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalClaimable))) + i-- + dAtA[i] = 0x1a + } + if len(m.TotalPending) > 0 { + i -= len(m.TotalPending) + copy(dAtA[i:], m.TotalPending) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalPending))) + i-- + dAtA[i] = 0x12 + } + if len(m.Withdrawals) > 0 { + for iNdEx := len(m.Withdrawals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Withdrawals[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 *QueryUserBalanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserBalanceRequest) 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 *QueryUserBalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUserBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LockedAmount) > 0 { + i -= len(m.LockedAmount) + copy(dAtA[i:], m.LockedAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.LockedAmount))) + i-- + dAtA[i] = 0x2a + } + if len(m.UnrealizedGain) > 0 { + i -= len(m.UnrealizedGain) + copy(dAtA[i:], m.UnrealizedGain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.UnrealizedGain))) + i-- + dAtA[i] = 0x22 + } + if len(m.TotalValue) > 0 { + i -= len(m.TotalValue) + copy(dAtA[i:], m.TotalValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalValue))) + i-- + dAtA[i] = 0x1a + } + if len(m.AccruedYield) > 0 { + i -= len(m.AccruedYield) + copy(dAtA[i:], m.AccruedYield) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AccruedYield))) + i-- + dAtA[i] = 0x12 + } + if len(m.DepositAmount) > 0 { + i -= len(m.DepositAmount) + copy(dAtA[i:], m.DepositAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DepositAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryDepositVelocityRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryDepositVelocityRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositVelocityRequest) 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 *QueryDepositVelocityResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryDepositVelocityResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositVelocityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.VelocityScore) > 0 { + i -= len(m.VelocityScore) + copy(dAtA[i:], m.VelocityScore) + i = encodeVarintQuery(dAtA, i, uint64(len(m.VelocityScore))) + i-- + dAtA[i] = 0x42 + } + if m.CooldownRemainingBlocks != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.CooldownRemainingBlocks)) + i-- + dAtA[i] = 0x38 + } + if m.SuspiciousActivityFlag { + i-- + if m.SuspiciousActivityFlag { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.TimeWindowBlocks != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TimeWindowBlocks)) + i-- + dAtA[i] = 0x28 + } + if len(m.RecentDepositVolume) > 0 { + i -= len(m.RecentDepositVolume) + copy(dAtA[i:], m.RecentDepositVolume) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RecentDepositVolume))) + i-- + dAtA[i] = 0x22 + } + if m.RecentDepositCount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RecentDepositCount)) + i-- + dAtA[i] = 0x18 + } + if len(m.LastDepositBlock) > 0 { + i -= len(m.LastDepositBlock) + copy(dAtA[i:], m.LastDepositBlock) + i = encodeVarintQuery(dAtA, i, uint64(len(m.LastDepositBlock))) + i-- + dAtA[i] = 0x12 + } + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintQuery(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QuerySimulateDepositRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySimulateDepositRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySimulateDepositRequest) 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.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CheckResultsView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CheckResultsView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckResultsView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.VelocityCheckPassed { + i-- + if m.VelocityCheckPassed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.CooldownPassed { + i-- + if m.CooldownPassed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.WithinTotalLimit { + i-- + if m.WithinTotalLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.WithinBlockLimit { + i-- + if m.WithinBlockLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.WithinUserLimit { + i-- + if m.WithinUserLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QuerySimulateDepositResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySimulateDepositResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySimulateDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Warnings) > 0 { + for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Warnings[iNdEx]) + copy(dAtA[i:], m.Warnings[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Warnings[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.Checks != nil { + { + size, err := m.Checks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.YieldRate) > 0 { + i -= len(m.YieldRate) + copy(dAtA[i:], m.YieldRate) + i = encodeVarintQuery(dAtA, i, uint64(len(m.YieldRate))) + i-- + dAtA[i] = 0x12 + } + if len(m.ExpectedDeposit) > 0 { + i -= len(m.ExpectedDeposit) + copy(dAtA[i:], m.ExpectedDeposit) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ExpectedDeposit))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QuerySimulateWithdrawalRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySimulateWithdrawalRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySimulateWithdrawalRequest) 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.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QuerySimulateWithdrawalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QuerySimulateWithdrawalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QuerySimulateWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AheadInQueue) > 0 { + i -= len(m.AheadInQueue) + copy(dAtA[i:], m.AheadInQueue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AheadInQueue))) + i-- + dAtA[i] = 0x3a + } + if len(m.AvailableLiquidity) > 0 { + i -= len(m.AvailableLiquidity) + copy(dAtA[i:], m.AvailableLiquidity) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AvailableLiquidity))) + i-- + dAtA[i] = 0x32 + } + if len(m.EstimatedFulfillmentTime) > 0 { + i -= len(m.EstimatedFulfillmentTime) + copy(dAtA[i:], m.EstimatedFulfillmentTime) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EstimatedFulfillmentTime))) + i-- + dAtA[i] = 0x2a + } + if m.QueuePosition != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.QueuePosition)) + i-- + dAtA[i] = 0x20 + } + if len(m.YieldPortion) > 0 { + i -= len(m.YieldPortion) + copy(dAtA[i:], m.YieldPortion) + i = encodeVarintQuery(dAtA, i, uint64(len(m.YieldPortion))) + i-- + dAtA[i] = 0x1a + } + if len(m.PrincipalPortion) > 0 { + i -= len(m.PrincipalPortion) + copy(dAtA[i:], m.PrincipalPortion) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PrincipalPortion))) + i-- + dAtA[i] = 0x12 + } + if len(m.ExpectedAmount) > 0 { + i -= len(m.ExpectedAmount) + copy(dAtA[i:], m.ExpectedAmount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ExpectedAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryInflightFundsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInflightFundsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInflightFundsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *InflightFundView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InflightFundView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InflightFundView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimeRemaining) > 0 { + i -= len(m.TimeRemaining) + copy(dAtA[i:], m.TimeRemaining) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TimeRemaining))) + i-- + dAtA[i] = 0x6a + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x62 + } + n40, err40 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt):]) + if err40 != nil { + return 0, err40 + } + i -= n40 + i = encodeVarintQuery(dAtA, i, uint64(n40)) + i-- + dAtA[i] = 0x5a + n41, err41 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.InitiatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.InitiatedAt):]) + if err41 != nil { + return 0, err41 + } + i -= n41 + i = encodeVarintQuery(dAtA, i, uint64(n41)) + i-- + dAtA[i] = 0x52 + if m.DestinationPositionId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.DestinationPositionId)) + i-- + dAtA[i] = 0x48 + } + if m.SourcePositionId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.SourcePositionId)) + i-- + dAtA[i] = 0x40 + } + if len(m.DestinationChain) > 0 { + i -= len(m.DestinationChain) + copy(dAtA[i:], m.DestinationChain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DestinationChain))) + i-- + dAtA[i] = 0x3a + } + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x32 + } + if len(m.CurrentValue) > 0 { + i -= len(m.CurrentValue) + copy(dAtA[i:], m.CurrentValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CurrentValue))) + i-- + dAtA[i] = 0x2a + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x22 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x1a + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryInflightFundsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInflightFundsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInflightFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ByStatus) > 0 { + for k := range m.ByStatus { + v := m.ByStatus[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintQuery(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a + } + } + if len(m.ByType) > 0 { + for k := range m.ByType { + v := m.ByType[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintQuery(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.ByRoute) > 0 { + for k := range m.ByRoute { + v := m.ByRoute[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintQuery(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintQuery(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.PendingWithdrawalDistribution) > 0 { + i -= len(m.PendingWithdrawalDistribution) + copy(dAtA[i:], m.PendingWithdrawalDistribution) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PendingWithdrawalDistribution))) + i-- + dAtA[i] = 0x22 + } + if len(m.PendingDeployment) > 0 { + i -= len(m.PendingDeployment) + copy(dAtA[i:], m.PendingDeployment) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PendingDeployment))) + i-- + dAtA[i] = 0x1a + } + if len(m.TotalInflight) > 0 { + i -= len(m.TotalInflight) + copy(dAtA[i:], m.TotalInflight) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalInflight))) + i-- + dAtA[i] = 0x12 + } + if len(m.InflightFunds) > 0 { + for iNdEx := len(m.InflightFunds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InflightFunds[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 *QueryStaleInflightFundsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStaleInflightFundsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStaleInflightFundsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *StaleInflightFundView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StaleInflightFundView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StaleInflightFundView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RecommendedAction) > 0 { + i -= len(m.RecommendedAction) + copy(dAtA[i:], m.RecommendedAction) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RecommendedAction))) + i-- + dAtA[i] = 0x5a + } + if len(m.LastKnownStatus) > 0 { + i -= len(m.LastKnownStatus) + copy(dAtA[i:], m.LastKnownStatus) + i = encodeVarintQuery(dAtA, i, uint64(len(m.LastKnownStatus))) + i-- + dAtA[i] = 0x52 + } + if len(m.HoursOverdue) > 0 { + i -= len(m.HoursOverdue) + copy(dAtA[i:], m.HoursOverdue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.HoursOverdue))) + i-- + dAtA[i] = 0x4a + } + n42, err42 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt):]) + if err42 != nil { + return 0, err42 + } + i -= n42 + i = encodeVarintQuery(dAtA, i, uint64(n42)) + i-- + dAtA[i] = 0x42 + n43, err43 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.InitiatedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.InitiatedAt):]) + if err43 != nil { + return 0, err43 + } + i -= n43 + i = encodeVarintQuery(dAtA, i, uint64(n43)) + i-- + dAtA[i] = 0x3a + if len(m.DestinationChain) > 0 { + i -= len(m.DestinationChain) + copy(dAtA[i:], m.DestinationChain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DestinationChain))) + i-- + dAtA[i] = 0x32 + } + if len(m.SourceChain) > 0 { + i -= len(m.SourceChain) + copy(dAtA[i:], m.SourceChain) + i = encodeVarintQuery(dAtA, i, uint64(len(m.SourceChain))) + i-- + dAtA[i] = 0x2a + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if m.RouteId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryStaleInflightFundsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStaleInflightFundsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStaleInflightFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OldestStaleHours) > 0 { + i -= len(m.OldestStaleHours) + copy(dAtA[i:], m.OldestStaleHours) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OldestStaleHours))) + i-- + dAtA[i] = 0x22 + } + if m.TotalStaleCount != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TotalStaleCount)) + i-- + dAtA[i] = 0x18 + } + if len(m.TotalStaleValue) > 0 { + i -= len(m.TotalStaleValue) + copy(dAtA[i:], m.TotalStaleValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalStaleValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.StaleFunds) > 0 { + for iNdEx := len(m.StaleFunds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StaleFunds[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 *QueryVaultRemotePositionsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultRemotePositionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultRemotePositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *VaultRemotePosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VaultRemotePosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VaultRemotePosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n44, err44 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate):]) + if err44 != nil { + return 0, err44 + } + i -= n44 + i = encodeVarintQuery(dAtA, i, uint64(n44)) + i-- + dAtA[i] = 0x52 + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x4a + } + if len(m.Apy) > 0 { + i -= len(m.Apy) + copy(dAtA[i:], m.Apy) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Apy))) + i-- + dAtA[i] = 0x42 + } + if len(m.CurrentValue) > 0 { + i -= len(m.CurrentValue) + copy(dAtA[i:], m.CurrentValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CurrentValue))) + i-- + dAtA[i] = 0x3a + } + if len(m.Principal) > 0 { + i -= len(m.Principal) + copy(dAtA[i:], m.Principal) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Principal))) + i-- + dAtA[i] = 0x32 + } + if len(m.SharePrice) > 0 { + i -= len(m.SharePrice) + copy(dAtA[i:], m.SharePrice) + i = encodeVarintQuery(dAtA, i, uint64(len(m.SharePrice))) + i-- + dAtA[i] = 0x2a + } + if len(m.SharesHeld) > 0 { + i -= len(m.SharesHeld) + copy(dAtA[i:], m.SharesHeld) + i = encodeVarintQuery(dAtA, i, uint64(len(m.SharesHeld))) + i-- + dAtA[i] = 0x22 + } + if m.ChainId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x18 + } + if len(m.VaultAddress) > 0 { + i -= len(m.VaultAddress) + copy(dAtA[i:], m.VaultAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.VaultAddress))) + i-- + dAtA[i] = 0x12 + } + if m.PositionId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryVaultRemotePositionsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryVaultRemotePositionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryVaultRemotePositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TotalValue) > 0 { + i -= len(m.TotalValue) + copy(dAtA[i:], m.TotalValue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.TotalValue))) + i-- + dAtA[i] = 0x1a + } + if m.TotalPositions != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TotalPositions)) + i-- + dAtA[i] = 0x10 + } + if len(m.Positions) > 0 { + for iNdEx := len(m.Positions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Positions[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 *QueryVaultInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryVaultInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Config.Size() + n += 1 + l + sovQuery(uint64(l)) + l = len(m.TotalDeposits) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalAccruedYield) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalNav) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TotalDepositors != 0 { + n += 1 + sovQuery(uint64(m.TotalDepositors)) + } + return n +} + +func (m *QueryAllVaultsRequest) 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 *QueryAllVaultsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Vaults) > 0 { + for _, e := range m.Vaults { + 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 *QueryVaultRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryVaultResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Vaults) > 0 { + for _, e := range m.Vaults { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryUserPositionRequest) 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 *QueryUserPositionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Position != nil { + l = m.Position.Size() + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.CurrentValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.UnrealizedYield) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryUserPositionsRequest) 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)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryUserPositionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Positions) > 0 { + for _, e := range m.Positions { + 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 *UserPositionWithVault) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Position.Size() + n += 1 + l + sovQuery(uint64(l)) + l = len(m.CurrentValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryYieldInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryYieldInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.YieldRate) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalDeposits) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalAccruedYield) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalNav) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryVaultStatsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryVaultStatsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Stats.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryStatsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryStatsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Stats.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllStatsRequest) 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 *QueryAllStatsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Stats.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 *QueryCrossChainRoutesRequest) 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 *QueryCrossChainRoutesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Routes) > 0 { + for _, e := range m.Routes { + 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 *QueryCrossChainRouteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + return n +} + +func (m *QueryCrossChainRouteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Route.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryRemotePositionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRemotePositionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Position.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryRemotePositionsRequest) 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)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRemotePositionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Positions) > 0 { + for _, e := range m.Positions { + 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 *RemotePositionWithRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + l = m.Position.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryInflightFundRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + return n +} + +func (m *QueryInflightFundResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Fund.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryInflightFundsUserRequest) 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)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryInflightFundsUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Funds) > 0 { + for _, e := range m.Funds { + 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 *QueryCrossChainSnapshotRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Timestamp != 0 { + n += 1 + sovQuery(uint64(m.Timestamp)) + } + return n +} + +func (m *QueryCrossChainSnapshotResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Snapshot.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryStaleInflightAlertsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryStaleInflightAlertsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Alerts) > 0 { + for _, e := range m.Alerts { + 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 *StaleInflightAlertWithDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Alert.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.Route.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.Fund.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryNAVRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *NAVBreakdownView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Local) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.RemotePositions) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Inflight) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Liabilities) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Total) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryNAVResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Nav) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.YieldRate) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate) + n += 1 + l + sovQuery(uint64(l)) + l = len(m.TotalDeposits) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalAccruedYield) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.LocalAssets) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.RemotePositionsValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.InflightFundsValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PendingWithdrawals) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.NavBreakdown != nil { + l = m.NavBreakdown.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryWithdrawalQueueRequest) 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 *WithdrawalQueueItem) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PrincipalAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.YieldAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovQuery(uint64(l)) + l = len(m.Status) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovQuery(uint64(m.Position)) + } + return n +} + +func (m *QueryWithdrawalQueueResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PendingRequests) > 0 { + for _, e := range m.PendingRequests { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.TotalPending) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.AvailableLiquidity) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.QueueLength != 0 { + n += 1 + sovQuery(uint64(m.QueueLength)) + } + l = len(m.EstimatedProcessingTime) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryUserWithdrawalsRequest) 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)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *WithdrawalStatusItem) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PrincipalAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.YieldAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.FulfilledAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovQuery(uint64(l)) + if m.ClaimableAt != nil { + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ClaimableAt) + n += 1 + l + sovQuery(uint64(l)) + } + if m.ClaimedAt != nil { + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ClaimedAt) + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryUserWithdrawalsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Withdrawals) > 0 { + for _, e := range m.Withdrawals { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.TotalPending) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalClaimable) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalClaimed) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryUserBalanceRequest) 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 *QueryUserBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DepositAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.AccruedYield) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TotalValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.UnrealizedGain) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.LockedAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDepositVelocityRequest) 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 *QueryDepositVelocityResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.User) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.LastDepositBlock) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.RecentDepositCount != 0 { + n += 1 + sovQuery(uint64(m.RecentDepositCount)) + } + l = len(m.RecentDepositVolume) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TimeWindowBlocks != 0 { + n += 1 + sovQuery(uint64(m.TimeWindowBlocks)) + } + if m.SuspiciousActivityFlag { + n += 2 + } + if m.CooldownRemainingBlocks != 0 { + n += 1 + sovQuery(uint64(m.CooldownRemainingBlocks)) + } + l = len(m.VelocityScore) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QuerySimulateDepositRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Amount) + 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 *CheckResultsView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.WithinUserLimit { + n += 2 + } + if m.WithinBlockLimit { + n += 2 + } + if m.WithinTotalLimit { + n += 2 + } + if m.CooldownPassed { + n += 2 + } + if m.VelocityCheckPassed { + n += 2 + } + return n +} + +func (m *QuerySimulateDepositResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ExpectedDeposit) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.YieldRate) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Checks != nil { + l = m.Checks.Size() + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.Warnings) > 0 { + for _, s := range m.Warnings { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QuerySimulateWithdrawalRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Amount) + 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 *QuerySimulateWithdrawalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ExpectedAmount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PrincipalPortion) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.YieldPortion) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.QueuePosition != 0 { + n += 1 + sovQuery(uint64(m.QueuePosition)) + } + l = len(m.EstimatedFulfillmentTime) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.AvailableLiquidity) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.AheadInQueue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryInflightFundsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *InflightFundView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.CurrentValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DestinationChain) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.SourcePositionId != 0 { + n += 1 + sovQuery(uint64(m.SourcePositionId)) + } + if m.DestinationPositionId != 0 { + n += 1 + sovQuery(uint64(m.DestinationPositionId)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.InitiatedAt) + n += 1 + l + sovQuery(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt) + n += 1 + l + sovQuery(uint64(l)) + l = len(m.Status) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.TimeRemaining) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryInflightFundsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InflightFunds) > 0 { + for _, e := range m.InflightFunds { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.TotalInflight) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PendingDeployment) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PendingWithdrawalDistribution) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if len(m.ByRoute) > 0 { + for k, v := range m.ByRoute { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } + } + if len(m.ByType) > 0 { + for k, v := range m.ByType { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } + } + if len(m.ByStatus) > 0 { + for k, v := range m.ByStatus { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) + n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) + } + } + return n +} + +func (m *QueryStaleInflightFundsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StaleInflightFundView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovQuery(uint64(m.RouteId)) + } + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.SourceChain) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.DestinationChain) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.InitiatedAt) + n += 1 + l + sovQuery(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedAt) + n += 1 + l + sovQuery(uint64(l)) + l = len(m.HoursOverdue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.LastKnownStatus) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.RecommendedAction) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryStaleInflightFundsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StaleFunds) > 0 { + for _, e := range m.StaleFunds { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + l = len(m.TotalStaleValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.TotalStaleCount != 0 { + n += 1 + sovQuery(uint64(m.TotalStaleCount)) + } + l = len(m.OldestStaleHours) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryVaultRemotePositionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *VaultRemotePosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovQuery(uint64(m.PositionId)) + } + l = len(m.VaultAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.ChainId != 0 { + n += 1 + sovQuery(uint64(m.ChainId)) + } + l = len(m.SharesHeld) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.SharePrice) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Principal) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.CurrentValue) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Apy) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastUpdate) + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryVaultRemotePositionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Positions) > 0 { + for _, e := range m.Positions { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.TotalPositions != 0 { + n += 1 + sovQuery(uint64(m.TotalPositions)) + } + l = len(m.TotalValue) + if l > 0 { + 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 *QueryVaultInfoRequest) Unmarshal(dAtA []byte) 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: QueryVaultInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultInfoRequest: 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 *QueryVaultInfoResponse) Unmarshal(dAtA []byte) 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: QueryVaultInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", 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.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAccruedYield", 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.TotalAccruedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalNav", 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.TotalNav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDepositors", wireType) + } + m.TotalDepositors = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalDepositors |= 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 *QueryAllVaultsRequest) Unmarshal(dAtA []byte) 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: QueryAllVaultsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllVaultsRequest: 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 *QueryAllVaultsResponse) Unmarshal(dAtA []byte) 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: QueryAllVaultsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllVaultsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vaults", 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.Vaults = append(m.Vaults, QueryVaultInfoResponse{}) + if err := m.Vaults[len(m.Vaults)-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 *QueryVaultRequest) Unmarshal(dAtA []byte) 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: QueryVaultRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultRequest: 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 *QueryVaultResponse) Unmarshal(dAtA []byte) 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: QueryVaultResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vaults", 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.Vaults = append(m.Vaults, QueryVaultInfoResponse{}) + if err := m.Vaults[len(m.Vaults)-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 *QueryUserPositionRequest) Unmarshal(dAtA []byte) 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: QueryUserPositionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserPositionRequest: 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 *QueryUserPositionResponse) Unmarshal(dAtA []byte) 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: QueryUserPositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserPositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", 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.Position == nil { + m.Position = &UserPosition{} + } + if err := m.Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnrealizedYield", 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.UnrealizedYield = 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 *QueryUserPositionsRequest) Unmarshal(dAtA []byte) 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: QueryUserPositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserPositionsRequest: 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 + 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.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 *QueryUserPositionsResponse) Unmarshal(dAtA []byte) 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: QueryUserPositionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Positions", 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.Positions = append(m.Positions, UserPositionWithVault{}) + if err := m.Positions[len(m.Positions)-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 *UserPositionWithVault) Unmarshal(dAtA []byte) 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: UserPositionWithVault: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserPositionWithVault: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", 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.Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = 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 *QueryYieldInfoRequest) Unmarshal(dAtA []byte) 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: QueryYieldInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryYieldInfoRequest: 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 *QueryYieldInfoResponse) Unmarshal(dAtA []byte) 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: QueryYieldInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryYieldInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldRate", 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.YieldRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAccruedYield", 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.TotalAccruedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalNav", 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.TotalNav = 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 *QueryVaultStatsRequest) Unmarshal(dAtA []byte) 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: QueryVaultStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultStatsRequest: 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 *QueryVaultStatsResponse) Unmarshal(dAtA []byte) 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: QueryVaultStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats.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 *QueryStatsRequest) Unmarshal(dAtA []byte) 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: QueryStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStatsRequest: 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 *QueryStatsResponse) Unmarshal(dAtA []byte) 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: QueryStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats.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 *QueryAllStatsRequest) Unmarshal(dAtA []byte) 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: QueryAllStatsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllStatsRequest: 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 *QueryAllStatsResponse) Unmarshal(dAtA []byte) 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: QueryAllStatsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats.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 *QueryCrossChainRoutesRequest) Unmarshal(dAtA []byte) 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: QueryCrossChainRoutesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCrossChainRoutesRequest: 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 *QueryCrossChainRoutesResponse) Unmarshal(dAtA []byte) 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: QueryCrossChainRoutesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCrossChainRoutesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", 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.Routes = append(m.Routes, CrossChainRoute{}) + if err := m.Routes[len(m.Routes)-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 *QueryCrossChainRouteRequest) Unmarshal(dAtA []byte) 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: QueryCrossChainRouteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCrossChainRouteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(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 *QueryCrossChainRouteResponse) Unmarshal(dAtA []byte) 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: QueryCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", 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.Route.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 *QueryRemotePositionRequest) Unmarshal(dAtA []byte) 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: QueryRemotePositionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRemotePositionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *QueryRemotePositionResponse) Unmarshal(dAtA []byte) 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: QueryRemotePositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRemotePositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", 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.Position.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 *QueryRemotePositionsRequest) Unmarshal(dAtA []byte) 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: QueryRemotePositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRemotePositionsRequest: 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 + 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.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 *QueryRemotePositionsResponse) Unmarshal(dAtA []byte) 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: QueryRemotePositionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRemotePositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Positions", 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.Positions = append(m.Positions, RemotePositionWithRoute{}) + if err := m.Positions[len(m.Positions)-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 *RemotePositionWithRoute) Unmarshal(dAtA []byte) 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: RemotePositionWithRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemotePositionWithRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", 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.Position.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 *QueryInflightFundRequest) Unmarshal(dAtA []byte) 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: QueryInflightFundRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInflightFundRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(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 *QueryInflightFundResponse) Unmarshal(dAtA []byte) 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: QueryInflightFundResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInflightFundResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fund", 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.Fund.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 *QueryInflightFundsUserRequest) Unmarshal(dAtA []byte) 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: QueryInflightFundsUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInflightFundsUserRequest: 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 + 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.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 *QueryInflightFundsUserResponse) Unmarshal(dAtA []byte) 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: QueryInflightFundsUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInflightFundsUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Funds", 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.Funds = append(m.Funds, InflightFund{}) + if err := m.Funds[len(m.Funds)-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 *QueryCrossChainSnapshotRequest) Unmarshal(dAtA []byte) 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: QueryCrossChainSnapshotRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCrossChainSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= 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 *QueryCrossChainSnapshotResponse) Unmarshal(dAtA []byte) 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: QueryCrossChainSnapshotResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCrossChainSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", 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.Snapshot.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 *QueryStaleInflightAlertsRequest) Unmarshal(dAtA []byte) 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: QueryStaleInflightAlertsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStaleInflightAlertsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 != 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 *QueryStaleInflightAlertsResponse) Unmarshal(dAtA []byte) 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: QueryStaleInflightAlertsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStaleInflightAlertsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alerts", 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.Alerts = append(m.Alerts, StaleInflightAlertWithDetails{}) + if err := m.Alerts[len(m.Alerts)-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 *StaleInflightAlertWithDetails) Unmarshal(dAtA []byte) 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: StaleInflightAlertWithDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StaleInflightAlertWithDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alert", 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.Alert.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", 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.Route.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fund", 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.Fund.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 *QueryNAVRequest) Unmarshal(dAtA []byte) 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: QueryNAVRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNAVRequest: 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 *NAVBreakdownView) Unmarshal(dAtA []byte) 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: NAVBreakdownView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVBreakdownView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Local", 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.Local = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemotePositions", 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.RemotePositions = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inflight", 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.Inflight = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Liabilities", 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.Liabilities = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", 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.Total = 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 *QueryNAVResponse) Unmarshal(dAtA []byte) 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: QueryNAVResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNAVResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nav", 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.Nav = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldRate", 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.YieldRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastUpdate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", 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.TotalDeposits = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAccruedYield", 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.TotalAccruedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAssets", 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.LocalAssets = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemotePositionsValue", 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.RemotePositionsValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InflightFundsValue", 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.InflightFundsValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingWithdrawals", 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.PendingWithdrawals = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NavBreakdown", 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.NavBreakdown == nil { + m.NavBreakdown = &NAVBreakdownView{} + } + if err := m.NavBreakdown.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 *QueryWithdrawalQueueRequest) Unmarshal(dAtA []byte) 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: QueryWithdrawalQueueRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryWithdrawalQueueRequest: 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 *WithdrawalQueueItem) Unmarshal(dAtA []byte) 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: WithdrawalQueueItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithdrawalQueueItem: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", 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.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 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.User = 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 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrincipalAmount", 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.PrincipalAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldAmount", 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.YieldAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= 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 *QueryWithdrawalQueueResponse) Unmarshal(dAtA []byte) 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: QueryWithdrawalQueueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryWithdrawalQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingRequests", 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.PendingRequests = append(m.PendingRequests, WithdrawalQueueItem{}) + if err := m.PendingRequests[len(m.PendingRequests)-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 TotalPending", 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.TotalPending = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableLiquidity", 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.AvailableLiquidity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueLength", wireType) + } + m.QueueLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QueueLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EstimatedProcessingTime", 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.EstimatedProcessingTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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 *QueryUserWithdrawalsRequest) Unmarshal(dAtA []byte) 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: QueryUserWithdrawalsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserWithdrawalsRequest: 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 + 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.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 *WithdrawalStatusItem) Unmarshal(dAtA []byte) 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: WithdrawalStatusItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithdrawalStatusItem: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", 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.RequestId = 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 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrincipalAmount", 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.PrincipalAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldAmount", 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.YieldAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FulfilledAmount", 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.FulfilledAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimableAt", 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.ClaimableAt == nil { + m.ClaimableAt = new(time.Time) + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ClaimableAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimedAt", 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.ClaimedAt == nil { + m.ClaimedAt = new(time.Time) + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ClaimedAt, 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 *QueryUserWithdrawalsResponse) Unmarshal(dAtA []byte) 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: QueryUserWithdrawalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserWithdrawalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawals", 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.Withdrawals = append(m.Withdrawals, WithdrawalStatusItem{}) + if err := m.Withdrawals[len(m.Withdrawals)-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 TotalPending", 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.TotalPending = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalClaimable", 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.TotalClaimable = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalClaimed", 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.TotalClaimed = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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.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 *QueryUserBalanceRequest) Unmarshal(dAtA []byte) 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: QueryUserBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserBalanceRequest: 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 *QueryUserBalanceResponse) Unmarshal(dAtA []byte) 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: QueryUserBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositAmount", 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.DepositAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccruedYield", 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.AccruedYield = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalValue", 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.TotalValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnrealizedGain", 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.UnrealizedGain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LockedAmount", 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.LockedAmount = 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 *QueryDepositVelocityRequest) Unmarshal(dAtA []byte) 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: QueryDepositVelocityRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositVelocityRequest: 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 *QueryDepositVelocityResponse) Unmarshal(dAtA []byte) 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: QueryDepositVelocityResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositVelocityResponse: 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 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.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastDepositBlock", 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.LastDepositBlock = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecentDepositCount", wireType) + } + m.RecentDepositCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RecentDepositCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecentDepositVolume", 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.RecentDepositVolume = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeWindowBlocks", wireType) + } + m.TimeWindowBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TimeWindowBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuspiciousActivityFlag", 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.SuspiciousActivityFlag = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CooldownRemainingBlocks", wireType) + } + m.CooldownRemainingBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CooldownRemainingBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VelocityScore", 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.VelocityScore = 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 *QuerySimulateDepositRequest) Unmarshal(dAtA []byte) 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: QuerySimulateDepositRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySimulateDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Amount = 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 *CheckResultsView) Unmarshal(dAtA []byte) 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: CheckResultsView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CheckResultsView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithinUserLimit", 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.WithinUserLimit = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithinBlockLimit", 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.WithinBlockLimit = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithinTotalLimit", 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.WithinTotalLimit = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CooldownPassed", 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.CooldownPassed = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VelocityCheckPassed", 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.VelocityCheckPassed = 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 *QuerySimulateDepositResponse) Unmarshal(dAtA []byte) 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: QuerySimulateDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySimulateDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedDeposit", 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.ExpectedDeposit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldRate", 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.YieldRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Checks", 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.Checks == nil { + m.Checks = &CheckResultsView{} + } + if err := m.Checks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Warnings", 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.Warnings = append(m.Warnings, 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 *QuerySimulateWithdrawalRequest) Unmarshal(dAtA []byte) 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: QuerySimulateWithdrawalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySimulateWithdrawalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Amount = 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 *QuerySimulateWithdrawalResponse) Unmarshal(dAtA []byte) 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: QuerySimulateWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuerySimulateWithdrawalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAmount", 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.ExpectedAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrincipalPortion", 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.PrincipalPortion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldPortion", 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.YieldPortion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueuePosition", wireType) + } + m.QueuePosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.QueuePosition |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EstimatedFulfillmentTime", 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.EstimatedFulfillmentTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableLiquidity", 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.AvailableLiquidity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AheadInQueue", 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.AheadInQueue = 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 *QueryInflightFundsRequest) Unmarshal(dAtA []byte) 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: QueryInflightFundsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInflightFundsRequest: 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 *InflightFundView) Unmarshal(dAtA []byte) 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: InflightFundView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InflightFundView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = 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 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationChain", 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.DestinationChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SourcePositionId", wireType) + } + m.SourcePositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SourcePositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationPositionId", wireType) + } + m.DestinationPositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DestinationPositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedAt", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.InitiatedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeRemaining", 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.TimeRemaining = 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 *QueryInflightFundsResponse) Unmarshal(dAtA []byte) 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: QueryInflightFundsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInflightFundsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InflightFunds", 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.InflightFunds = append(m.InflightFunds, InflightFundView{}) + if err := m.InflightFunds[len(m.InflightFunds)-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 TotalInflight", 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.TotalInflight = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingDeployment", 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.PendingDeployment = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingWithdrawalDistribution", 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.PendingWithdrawalDistribution = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByRoute", 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.ByRoute == nil { + m.ByRoute = 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 ErrIntOverflowQuery + } + 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 ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + 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 ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ByRoute[mapkey] = mapvalue + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByType", 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.ByType == nil { + m.ByType = 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 ErrIntOverflowQuery + } + 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 ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + 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 ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ByType[mapkey] = mapvalue + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByStatus", 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.ByStatus == nil { + m.ByStatus = 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 ErrIntOverflowQuery + } + 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 ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthQuery + } + 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 ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthQuery + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ByStatus[mapkey] = mapvalue + 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 *QueryStaleInflightFundsRequest) Unmarshal(dAtA []byte) 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: QueryStaleInflightFundsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStaleInflightFundsRequest: 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 *StaleInflightFundView) Unmarshal(dAtA []byte) 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: StaleInflightFundView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StaleInflightFundView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = 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 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChain", 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.SourceChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationChain", 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.DestinationChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedAt", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.InitiatedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAt", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedAt, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HoursOverdue", 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.HoursOverdue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastKnownStatus", 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.LastKnownStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecommendedAction", 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.RecommendedAction = 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 *QueryStaleInflightFundsResponse) Unmarshal(dAtA []byte) 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: QueryStaleInflightFundsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryStaleInflightFundsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StaleFunds", 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.StaleFunds = append(m.StaleFunds, StaleInflightFundView{}) + if err := m.StaleFunds[len(m.StaleFunds)-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 TotalStaleValue", 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.TotalStaleValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalStaleCount", wireType) + } + m.TotalStaleCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalStaleCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OldestStaleHours", 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.OldestStaleHours = 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 *QueryVaultRemotePositionsRequest) Unmarshal(dAtA []byte) 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: QueryVaultRemotePositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultRemotePositionsRequest: 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 *VaultRemotePosition) Unmarshal(dAtA []byte) 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: VaultRemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VaultRemotePosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultAddress", 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.VaultAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesHeld", 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.SharesHeld = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharePrice", 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.SharePrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principal", 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.Principal = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", 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.CurrentValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Apy", 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.Apy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", 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 := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastUpdate, 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 *QueryVaultRemotePositionsResponse) Unmarshal(dAtA []byte) 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: QueryVaultRemotePositionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryVaultRemotePositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Positions", 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.Positions = append(m.Positions, VaultRemotePosition{}) + if err := m.Positions[len(m.Positions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPositions", wireType) + } + m.TotalPositions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalPositions |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalValue", 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.TotalValue = 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 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/types/vaults/v2/query.pb.gw.go b/types/vaults/v2/query.pb.gw.go new file mode 100644 index 00000000..b4626a75 --- /dev/null +++ b/types/vaults/v2/query.pb.gw.go @@ -0,0 +1,2358 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: noble/dollar/vaults/v2/query.proto + +/* +Package v2 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package v2 + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_VaultStats_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultStatsRequest + var metadata runtime.ServerMetadata + + msg, err := client.VaultStats(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_VaultStats_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultStatsRequest + var metadata runtime.ServerMetadata + + msg, err := server.VaultStats(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_VaultInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultInfoRequest + var metadata runtime.ServerMetadata + + msg, err := client.VaultInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_VaultInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultInfoRequest + var metadata runtime.ServerMetadata + + msg, err := server.VaultInfo(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_AllVaults_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_AllVaults_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllVaultsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllVaults_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AllVaults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AllVaults_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllVaultsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllVaults_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AllVaults(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_UserPosition_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserPositionRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := client.UserPosition(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_UserPosition_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserPositionRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := server.UserPosition(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_UserPositions_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_UserPositions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserPositionsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UserPositions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserPositions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_UserPositions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserPositionsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UserPositions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UserPositions(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_YieldInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryYieldInfoRequest + var metadata runtime.ServerMetadata + + msg, err := client.YieldInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_YieldInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryYieldInfoRequest + var metadata runtime.ServerMetadata + + msg, err := server.YieldInfo(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_NAV_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNAVRequest + var metadata runtime.ServerMetadata + + msg, err := client.NAV(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_NAV_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNAVRequest + var metadata runtime.ServerMetadata + + msg, err := server.NAV(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_CrossChainRoutes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_CrossChainRoutes_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCrossChainRoutesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CrossChainRoutes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CrossChainRoutes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_CrossChainRoutes_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCrossChainRoutesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CrossChainRoutes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CrossChainRoutes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_CrossChainRoute_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCrossChainRouteRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["route_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "route_id") + } + + protoReq.RouteId, err = runtime.Uint32(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "route_id", err) + } + + msg, err := client.CrossChainRoute(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_CrossChainRoute_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCrossChainRouteRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["route_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "route_id") + } + + protoReq.RouteId, err = runtime.Uint32(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "route_id", err) + } + + msg, err := server.CrossChainRoute(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_RemotePosition_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRemotePositionRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["route_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "route_id") + } + + protoReq.RouteId, err = runtime.Uint32(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "route_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := client.RemotePosition(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_RemotePosition_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRemotePositionRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["route_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "route_id") + } + + protoReq.RouteId, err = runtime.Uint32(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "route_id", err) + } + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := server.RemotePosition(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_RemotePositions_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_RemotePositions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRemotePositionsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RemotePositions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RemotePositions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_RemotePositions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryRemotePositionsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_RemotePositions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RemotePositions(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_VaultRemotePositions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultRemotePositionsRequest + var metadata runtime.ServerMetadata + + msg, err := client.VaultRemotePositions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_VaultRemotePositions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryVaultRemotePositionsRequest + var metadata runtime.ServerMetadata + + msg, err := server.VaultRemotePositions(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_InflightFund_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInflightFundRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["route_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "route_id") + } + + protoReq.RouteId, err = runtime.Uint32(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "route_id", err) + } + + msg, err := client.InflightFund(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InflightFund_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInflightFundRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["route_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "route_id") + } + + protoReq.RouteId, err = runtime.Uint32(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "route_id", err) + } + + msg, err := server.InflightFund(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_InflightFundsUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_InflightFundsUser_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInflightFundsUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InflightFundsUser_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.InflightFundsUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InflightFundsUser_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInflightFundsUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_InflightFundsUser_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.InflightFundsUser(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_CrossChainSnapshot_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_CrossChainSnapshot_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCrossChainSnapshotRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CrossChainSnapshot_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CrossChainSnapshot(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_CrossChainSnapshot_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryCrossChainSnapshotRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_CrossChainSnapshot_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CrossChainSnapshot(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_StaleInflightAlerts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_StaleInflightAlerts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStaleInflightAlertsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_StaleInflightAlerts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.StaleInflightAlerts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_StaleInflightAlerts_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStaleInflightAlertsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_StaleInflightAlerts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.StaleInflightAlerts(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_WithdrawalQueue_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_WithdrawalQueue_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryWithdrawalQueueRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_WithdrawalQueue_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.WithdrawalQueue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_WithdrawalQueue_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryWithdrawalQueueRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_WithdrawalQueue_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.WithdrawalQueue(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_UserWithdrawals_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_UserWithdrawals_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserWithdrawalsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UserWithdrawals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UserWithdrawals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_UserWithdrawals_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserWithdrawalsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_UserWithdrawals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UserWithdrawals(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_UserBalance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserBalanceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := client.UserBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_UserBalance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryUserBalanceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := server.UserBalance(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_DepositVelocity_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDepositVelocityRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := client.DepositVelocity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_DepositVelocity_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDepositVelocityRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + msg, err := server.DepositVelocity(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_SimulateDeposit_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_SimulateDeposit_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySimulateDepositRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateDeposit_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.SimulateDeposit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_SimulateDeposit_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySimulateDepositRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateDeposit_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.SimulateDeposit(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_SimulateWithdrawal_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_SimulateWithdrawal_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySimulateWithdrawalRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateWithdrawal_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.SimulateWithdrawal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_SimulateWithdrawal_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QuerySimulateWithdrawalRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_SimulateWithdrawal_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.SimulateWithdrawal(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_InflightFunds_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInflightFundsRequest + var metadata runtime.ServerMetadata + + msg, err := client.InflightFunds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InflightFunds_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInflightFundsRequest + var metadata runtime.ServerMetadata + + msg, err := server.InflightFunds(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_StaleInflightFunds_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStaleInflightFundsRequest + var metadata runtime.ServerMetadata + + msg, err := client.StaleInflightFunds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_StaleInflightFunds_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStaleInflightFundsRequest + var metadata runtime.ServerMetadata + + msg, err := server.StaleInflightFunds(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Stats_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStatsRequest + var metadata runtime.ServerMetadata + + msg, err := client.Stats(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Stats_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStatsRequest + var metadata runtime.ServerMetadata + + msg, err := server.Stats(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.Params(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_VaultStats_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_VaultStats_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_VaultStats_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_VaultInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_VaultInfo_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_VaultInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AllVaults_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AllVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserPosition_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_UserPosition_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserPosition_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserPositions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_UserPositions_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserPositions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_YieldInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_YieldInfo_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_YieldInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NAV_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_NAV_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NAV_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CrossChainRoutes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_CrossChainRoutes_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CrossChainRoutes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CrossChainRoute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_CrossChainRoute_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CrossChainRoute_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RemotePosition_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_RemotePosition_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RemotePosition_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RemotePositions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_RemotePositions_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RemotePositions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_VaultRemotePositions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_VaultRemotePositions_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_VaultRemotePositions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InflightFund_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InflightFund_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InflightFund_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InflightFundsUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InflightFundsUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InflightFundsUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CrossChainSnapshot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_CrossChainSnapshot_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CrossChainSnapshot_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_StaleInflightAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_StaleInflightAlerts_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_StaleInflightAlerts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_WithdrawalQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_WithdrawalQueue_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_WithdrawalQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserWithdrawals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_UserWithdrawals_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserWithdrawals_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_UserBalance_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_DepositVelocity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_DepositVelocity_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_DepositVelocity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_SimulateDeposit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_SimulateDeposit_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_SimulateDeposit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_SimulateWithdrawal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_SimulateWithdrawal_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_SimulateWithdrawal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InflightFunds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_InflightFunds_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InflightFunds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_StaleInflightFunds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_StaleInflightFunds_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_StaleInflightFunds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Stats_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Stats_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Stats_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_VaultStats_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_VaultStats_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_VaultStats_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_VaultInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_VaultInfo_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_VaultInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AllVaults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AllVaults_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AllVaults_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserPosition_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_UserPosition_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserPosition_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserPositions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_UserPositions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserPositions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_YieldInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_YieldInfo_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_YieldInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_NAV_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_NAV_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_NAV_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CrossChainRoutes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_CrossChainRoutes_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CrossChainRoutes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CrossChainRoute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_CrossChainRoute_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CrossChainRoute_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RemotePosition_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_RemotePosition_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RemotePosition_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_RemotePositions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_RemotePositions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_RemotePositions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_VaultRemotePositions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_VaultRemotePositions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_VaultRemotePositions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InflightFund_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InflightFund_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InflightFund_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InflightFundsUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InflightFundsUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InflightFundsUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_CrossChainSnapshot_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_CrossChainSnapshot_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_CrossChainSnapshot_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_StaleInflightAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_StaleInflightAlerts_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_StaleInflightAlerts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_WithdrawalQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_WithdrawalQueue_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_WithdrawalQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserWithdrawals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_UserWithdrawals_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserWithdrawals_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_UserBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_UserBalance_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_UserBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_DepositVelocity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_DepositVelocity_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_DepositVelocity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_SimulateDeposit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_SimulateDeposit_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_SimulateDeposit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_SimulateWithdrawal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_SimulateWithdrawal_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_SimulateWithdrawal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_InflightFunds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_InflightFunds_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_InflightFunds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_StaleInflightFunds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_StaleInflightFunds_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_StaleInflightFunds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Stats_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Stats_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Stats_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_VaultStats_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "vault_stats"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_VaultInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "vault"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AllVaults_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 2}, []string{"noble", "dollar", "vaults", "v2"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_UserPosition_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"noble", "dollar", "vaults", "v2", "position", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_UserPositions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"noble", "dollar", "vaults", "v2", "positions", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_YieldInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "yield"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_NAV_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "nav"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_CrossChainRoutes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "routes"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_CrossChainRoute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "route", "route_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_RemotePosition_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "position", "route_id", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_RemotePositions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "positions", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_VaultRemotePositions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "remote_positions"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_InflightFund_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "inflight", "route_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_InflightFundsUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "inflight", "user", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_CrossChainSnapshot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "snapshot"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_StaleInflightAlerts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"noble", "dollar", "vaults", "v2", "crosschain", "stale"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_WithdrawalQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "withdrawal_queue"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_UserWithdrawals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"noble", "dollar", "vaults", "v2", "user_withdrawals", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_UserBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"noble", "dollar", "vaults", "v2", "user_balance", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_DepositVelocity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"noble", "dollar", "vaults", "v2", "deposit_velocity", "address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_SimulateDeposit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "simulate_deposit"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_SimulateWithdrawal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "simulate_withdrawal"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_InflightFunds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "inflight_funds"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_StaleInflightFunds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "stale_inflight_funds"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Stats_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "stats"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"noble", "dollar", "vaults", "v2", "params"}, "", runtime.AssumeColonVerbOpt(false))) +) + +var ( + forward_Query_VaultStats_0 = runtime.ForwardResponseMessage + + forward_Query_VaultInfo_0 = runtime.ForwardResponseMessage + + forward_Query_AllVaults_0 = runtime.ForwardResponseMessage + + forward_Query_UserPosition_0 = runtime.ForwardResponseMessage + + forward_Query_UserPositions_0 = runtime.ForwardResponseMessage + + forward_Query_YieldInfo_0 = runtime.ForwardResponseMessage + + forward_Query_NAV_0 = runtime.ForwardResponseMessage + + forward_Query_CrossChainRoutes_0 = runtime.ForwardResponseMessage + + forward_Query_CrossChainRoute_0 = runtime.ForwardResponseMessage + + forward_Query_RemotePosition_0 = runtime.ForwardResponseMessage + + forward_Query_RemotePositions_0 = runtime.ForwardResponseMessage + + forward_Query_VaultRemotePositions_0 = runtime.ForwardResponseMessage + + forward_Query_InflightFund_0 = runtime.ForwardResponseMessage + + forward_Query_InflightFundsUser_0 = runtime.ForwardResponseMessage + + forward_Query_CrossChainSnapshot_0 = runtime.ForwardResponseMessage + + forward_Query_StaleInflightAlerts_0 = runtime.ForwardResponseMessage + + forward_Query_WithdrawalQueue_0 = runtime.ForwardResponseMessage + + forward_Query_UserWithdrawals_0 = runtime.ForwardResponseMessage + + forward_Query_UserBalance_0 = runtime.ForwardResponseMessage + + forward_Query_DepositVelocity_0 = runtime.ForwardResponseMessage + + forward_Query_SimulateDeposit_0 = runtime.ForwardResponseMessage + + forward_Query_SimulateWithdrawal_0 = runtime.ForwardResponseMessage + + forward_Query_InflightFunds_0 = runtime.ForwardResponseMessage + + forward_Query_StaleInflightFunds_0 = runtime.ForwardResponseMessage + + forward_Query_Stats_0 = runtime.ForwardResponseMessage + + forward_Query_Params_0 = runtime.ForwardResponseMessage +) diff --git a/types/vaults/v2/tx.pb.go b/types/vaults/v2/tx.pb.go new file mode 100644 index 00000000..9809c9bd --- /dev/null +++ b/types/vaults/v2/tx.pb.go @@ -0,0 +1,11954 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/tx.proto + +package v2 + +import ( + context "context" + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// MsgDeposit allows users to deposit into a V2 vault +type MsgDeposit struct { + // User making the deposit + Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` + // Amount to deposit + Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Whether user wants to receive yield for this deposit. + ReceiveYield bool `protobuf:"varint,3,opt,name=receive_yield,json=receiveYield,proto3" json:"receive_yield,omitempty"` + // Set to true when the deposit should override the current preference. + ReceiveYieldOverride bool `protobuf:"varint,4,opt,name=receive_yield_override,json=receiveYieldOverride,proto3" json:"receive_yield_override,omitempty"` +} + +func (m *MsgDeposit) Reset() { *m = MsgDeposit{} } +func (m *MsgDeposit) String() string { return proto.CompactTextString(m) } +func (*MsgDeposit) ProtoMessage() {} +func (*MsgDeposit) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{0} +} +func (m *MsgDeposit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeposit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeposit.Merge(m, src) +} +func (m *MsgDeposit) XXX_Size() int { + return m.Size() +} +func (m *MsgDeposit) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeposit.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeposit proto.InternalMessageInfo + +// MsgDepositResponse returns the results of a deposit +type MsgDepositResponse struct { + // Amount deposited + AmountDeposited cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount_deposited,json=amountDeposited,proto3,customtype=cosmossdk.io/math.Int" json:"amount_deposited"` +} + +func (m *MsgDepositResponse) Reset() { *m = MsgDepositResponse{} } +func (m *MsgDepositResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDepositResponse) ProtoMessage() {} +func (*MsgDepositResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{1} +} +func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDepositResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDepositResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDepositResponse.Merge(m, src) +} +func (m *MsgDepositResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDepositResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDepositResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDepositResponse proto.InternalMessageInfo + +// MsgSetYieldPreference allows users to set their yield preference +type MsgSetYieldPreference struct { + // User setting the preference + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // Whether to receive yield + ReceiveYield bool `protobuf:"varint,2,opt,name=receive_yield,json=receiveYield,proto3" json:"receive_yield,omitempty"` +} + +func (m *MsgSetYieldPreference) Reset() { *m = MsgSetYieldPreference{} } +func (m *MsgSetYieldPreference) String() string { return proto.CompactTextString(m) } +func (*MsgSetYieldPreference) ProtoMessage() {} +func (*MsgSetYieldPreference) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{2} +} +func (m *MsgSetYieldPreference) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetYieldPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetYieldPreference.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetYieldPreference) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetYieldPreference.Merge(m, src) +} +func (m *MsgSetYieldPreference) XXX_Size() int { + return m.Size() +} +func (m *MsgSetYieldPreference) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetYieldPreference.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetYieldPreference proto.InternalMessageInfo + +// MsgSetYieldPreferenceResponse confirms yield preference update +type MsgSetYieldPreferenceResponse struct { + // Previous yield preference + PreviousPreference bool `protobuf:"varint,1,opt,name=previous_preference,json=previousPreference,proto3" json:"previous_preference,omitempty"` + // New yield preference + NewPreference bool `protobuf:"varint,2,opt,name=new_preference,json=newPreference,proto3" json:"new_preference,omitempty"` +} + +func (m *MsgSetYieldPreferenceResponse) Reset() { *m = MsgSetYieldPreferenceResponse{} } +func (m *MsgSetYieldPreferenceResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetYieldPreferenceResponse) ProtoMessage() {} +func (*MsgSetYieldPreferenceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{3} +} +func (m *MsgSetYieldPreferenceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetYieldPreferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetYieldPreferenceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetYieldPreferenceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetYieldPreferenceResponse.Merge(m, src) +} +func (m *MsgSetYieldPreferenceResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetYieldPreferenceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetYieldPreferenceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetYieldPreferenceResponse proto.InternalMessageInfo + +func (m *MsgSetYieldPreferenceResponse) GetPreviousPreference() bool { + if m != nil { + return m.PreviousPreference + } + return false +} + +func (m *MsgSetYieldPreferenceResponse) GetNewPreference() bool { + if m != nil { + return m.NewPreference + } + return false +} + +// MsgUpdateVaultConfig allows authority to update vault configuration +type MsgUpdateVaultConfig struct { + // Authority updating the config + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New vault configuration + Config VaultConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config"` + // Reason for config update + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgUpdateVaultConfig) Reset() { *m = MsgUpdateVaultConfig{} } +func (m *MsgUpdateVaultConfig) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateVaultConfig) ProtoMessage() {} +func (*MsgUpdateVaultConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{4} +} +func (m *MsgUpdateVaultConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateVaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateVaultConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateVaultConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateVaultConfig.Merge(m, src) +} +func (m *MsgUpdateVaultConfig) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateVaultConfig) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateVaultConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateVaultConfig proto.InternalMessageInfo + +// MsgUpdateVaultConfigResponse confirms config update +type MsgUpdateVaultConfigResponse struct { + // Previous configuration (JSON) + PreviousConfig string `protobuf:"bytes,1,opt,name=previous_config,json=previousConfig,proto3" json:"previous_config,omitempty"` + // New configuration (JSON) + NewConfig string `protobuf:"bytes,2,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` +} + +func (m *MsgUpdateVaultConfigResponse) Reset() { *m = MsgUpdateVaultConfigResponse{} } +func (m *MsgUpdateVaultConfigResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateVaultConfigResponse) ProtoMessage() {} +func (*MsgUpdateVaultConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{5} +} +func (m *MsgUpdateVaultConfigResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateVaultConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateVaultConfigResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateVaultConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateVaultConfigResponse.Merge(m, src) +} +func (m *MsgUpdateVaultConfigResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateVaultConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateVaultConfigResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateVaultConfigResponse proto.InternalMessageInfo + +func (m *MsgUpdateVaultConfigResponse) GetPreviousConfig() string { + if m != nil { + return m.PreviousConfig + } + return "" +} + +func (m *MsgUpdateVaultConfigResponse) GetNewConfig() string { + if m != nil { + return m.NewConfig + } + return "" +} + +// MsgUpdateParams allows authority to update module parameters +type MsgUpdateParams struct { + // Authority updating the parameters + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New parameters + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{6} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +// MsgUpdateParamsResponse confirms parameter update +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{7} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo + +// MsgCreateCrossChainRoute creates a new cross-chain route +type MsgCreateCrossChainRoute struct { + // Authority creating the route + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Route configuration + Route CrossChainRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route"` +} + +func (m *MsgCreateCrossChainRoute) Reset() { *m = MsgCreateCrossChainRoute{} } +func (m *MsgCreateCrossChainRoute) String() string { return proto.CompactTextString(m) } +func (*MsgCreateCrossChainRoute) ProtoMessage() {} +func (*MsgCreateCrossChainRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{8} +} +func (m *MsgCreateCrossChainRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateCrossChainRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateCrossChainRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateCrossChainRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateCrossChainRoute.Merge(m, src) +} +func (m *MsgCreateCrossChainRoute) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateCrossChainRoute) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateCrossChainRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateCrossChainRoute proto.InternalMessageInfo + +// MsgCreateCrossChainRouteResponse confirms route creation +type MsgCreateCrossChainRouteResponse struct { + // Created route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` +} + +func (m *MsgCreateCrossChainRouteResponse) Reset() { *m = MsgCreateCrossChainRouteResponse{} } +func (m *MsgCreateCrossChainRouteResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateCrossChainRouteResponse) ProtoMessage() {} +func (*MsgCreateCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{9} +} +func (m *MsgCreateCrossChainRouteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateCrossChainRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateCrossChainRouteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateCrossChainRouteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateCrossChainRouteResponse.Merge(m, src) +} +func (m *MsgCreateCrossChainRouteResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateCrossChainRouteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateCrossChainRouteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateCrossChainRouteResponse proto.InternalMessageInfo + +func (m *MsgCreateCrossChainRouteResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +// MsgUpdateCrossChainRoute updates an existing cross-chain route +type MsgUpdateCrossChainRoute struct { + // Authority updating the route + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Route ID to update + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Updated route configuration + Route CrossChainRoute `protobuf:"bytes,3,opt,name=route,proto3" json:"route"` +} + +func (m *MsgUpdateCrossChainRoute) Reset() { *m = MsgUpdateCrossChainRoute{} } +func (m *MsgUpdateCrossChainRoute) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateCrossChainRoute) ProtoMessage() {} +func (*MsgUpdateCrossChainRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{10} +} +func (m *MsgUpdateCrossChainRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateCrossChainRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateCrossChainRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateCrossChainRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateCrossChainRoute.Merge(m, src) +} +func (m *MsgUpdateCrossChainRoute) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateCrossChainRoute) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateCrossChainRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateCrossChainRoute proto.InternalMessageInfo + +// MsgUpdateCrossChainRouteResponse confirms route update +type MsgUpdateCrossChainRouteResponse struct { + // Updated route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Previous configuration + PreviousConfig string `protobuf:"bytes,2,opt,name=previous_config,json=previousConfig,proto3" json:"previous_config,omitempty"` + // New configuration + NewConfig string `protobuf:"bytes,3,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"` +} + +func (m *MsgUpdateCrossChainRouteResponse) Reset() { *m = MsgUpdateCrossChainRouteResponse{} } +func (m *MsgUpdateCrossChainRouteResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateCrossChainRouteResponse) ProtoMessage() {} +func (*MsgUpdateCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{11} +} +func (m *MsgUpdateCrossChainRouteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateCrossChainRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateCrossChainRouteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateCrossChainRouteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateCrossChainRouteResponse.Merge(m, src) +} +func (m *MsgUpdateCrossChainRouteResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateCrossChainRouteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateCrossChainRouteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateCrossChainRouteResponse proto.InternalMessageInfo + +func (m *MsgUpdateCrossChainRouteResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *MsgUpdateCrossChainRouteResponse) GetPreviousConfig() string { + if m != nil { + return m.PreviousConfig + } + return "" +} + +func (m *MsgUpdateCrossChainRouteResponse) GetNewConfig() string { + if m != nil { + return m.NewConfig + } + return "" +} + +// MsgDisableCrossChainRoute disables a cross-chain route +type MsgDisableCrossChainRoute struct { + // Authority disabling the route + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Route ID to disable + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Reason for disabling + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgDisableCrossChainRoute) Reset() { *m = MsgDisableCrossChainRoute{} } +func (m *MsgDisableCrossChainRoute) String() string { return proto.CompactTextString(m) } +func (*MsgDisableCrossChainRoute) ProtoMessage() {} +func (*MsgDisableCrossChainRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{12} +} +func (m *MsgDisableCrossChainRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDisableCrossChainRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDisableCrossChainRoute.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDisableCrossChainRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDisableCrossChainRoute.Merge(m, src) +} +func (m *MsgDisableCrossChainRoute) XXX_Size() int { + return m.Size() +} +func (m *MsgDisableCrossChainRoute) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDisableCrossChainRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDisableCrossChainRoute proto.InternalMessageInfo + +// MsgDisableCrossChainRouteResponse confirms route disabling +type MsgDisableCrossChainRouteResponse struct { + // Disabled route ID + RouteId uint32 `protobuf:"varint,1,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Number of affected positions + AffectedPositions int64 `protobuf:"varint,2,opt,name=affected_positions,json=affectedPositions,proto3" json:"affected_positions,omitempty"` +} + +func (m *MsgDisableCrossChainRouteResponse) Reset() { *m = MsgDisableCrossChainRouteResponse{} } +func (m *MsgDisableCrossChainRouteResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDisableCrossChainRouteResponse) ProtoMessage() {} +func (*MsgDisableCrossChainRouteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{13} +} +func (m *MsgDisableCrossChainRouteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDisableCrossChainRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDisableCrossChainRouteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDisableCrossChainRouteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDisableCrossChainRouteResponse.Merge(m, src) +} +func (m *MsgDisableCrossChainRouteResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDisableCrossChainRouteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDisableCrossChainRouteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDisableCrossChainRouteResponse proto.InternalMessageInfo + +func (m *MsgDisableCrossChainRouteResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *MsgDisableCrossChainRouteResponse) GetAffectedPositions() int64 { + if m != nil { + return m.AffectedPositions + } + return 0 +} + +// MsgRemoteDeposit initiates a deposit to a remote chain +type MsgRemoteDeposit struct { + // User making the remote deposit + Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` + // Route ID for the deposit + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Amount to deposit + Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Remote address to receive the position + RemoteAddress string `protobuf:"bytes,4,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` + // Minimum shares to receive (slippage protection) + MinShares cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=min_shares,json=minShares,proto3,customtype=cosmossdk.io/math.Int" json:"min_shares"` + // Gas limit for remote execution (Hyperlane only) + GasLimit uint64 `protobuf:"varint,6,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + // Gas price for remote execution (Hyperlane only) + GasPrice cosmossdk_io_math.Int `protobuf:"bytes,7,opt,name=gas_price,json=gasPrice,proto3,customtype=cosmossdk.io/math.Int" json:"gas_price"` +} + +func (m *MsgRemoteDeposit) Reset() { *m = MsgRemoteDeposit{} } +func (m *MsgRemoteDeposit) String() string { return proto.CompactTextString(m) } +func (*MsgRemoteDeposit) ProtoMessage() {} +func (*MsgRemoteDeposit) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{14} +} +func (m *MsgRemoteDeposit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoteDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoteDeposit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRemoteDeposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoteDeposit.Merge(m, src) +} +func (m *MsgRemoteDeposit) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoteDeposit) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoteDeposit.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoteDeposit proto.InternalMessageInfo + +// MsgRemoteDepositResponse returns the results of a remote deposit +type MsgRemoteDepositResponse struct { + // Operation nonce for tracking + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Route ID used + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Local shares allocated + SharesAllocated cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=shares_allocated,json=sharesAllocated,proto3,customtype=cosmossdk.io/math.Int" json:"shares_allocated"` + // Amount sent to remote chain + AmountSent cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount_sent,json=amountSent,proto3,customtype=cosmossdk.io/math.Int" json:"amount_sent"` + // Expected completion time + ExpectedCompletion time.Time `protobuf:"bytes,5,opt,name=expected_completion,json=expectedCompletion,proto3,stdtime" json:"expected_completion"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,6,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (m *MsgRemoteDepositResponse) Reset() { *m = MsgRemoteDepositResponse{} } +func (m *MsgRemoteDepositResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoteDepositResponse) ProtoMessage() {} +func (*MsgRemoteDepositResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{15} +} +func (m *MsgRemoteDepositResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoteDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoteDepositResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRemoteDepositResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoteDepositResponse.Merge(m, src) +} +func (m *MsgRemoteDepositResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoteDepositResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoteDepositResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoteDepositResponse proto.InternalMessageInfo + +func (m *MsgRemoteDepositResponse) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *MsgRemoteDepositResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *MsgRemoteDepositResponse) GetExpectedCompletion() time.Time { + if m != nil { + return m.ExpectedCompletion + } + return time.Time{} +} + +func (m *MsgRemoteDepositResponse) GetProviderTracking() *ProviderTrackingInfo { + if m != nil { + return m.ProviderTracking + } + return nil +} + +// MsgRemoteWithdraw initiates a withdrawal from a remote chain +type MsgRemoteWithdraw struct { + // User making the remote withdrawal + Withdrawer string `protobuf:"bytes,1,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"` + // Route ID for the withdrawal + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Shares to withdraw from remote position + Shares cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=shares,proto3,customtype=cosmossdk.io/math.Int" json:"shares"` + // Minimum amount to receive (slippage protection) + MinAmount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=min_amount,json=minAmount,proto3,customtype=cosmossdk.io/math.Int" json:"min_amount"` + // Gas limit for remote execution (Hyperlane only) + GasLimit uint64 `protobuf:"varint,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + // Gas price for remote execution (Hyperlane only) + GasPrice cosmossdk_io_math.Int `protobuf:"bytes,6,opt,name=gas_price,json=gasPrice,proto3,customtype=cosmossdk.io/math.Int" json:"gas_price"` +} + +func (m *MsgRemoteWithdraw) Reset() { *m = MsgRemoteWithdraw{} } +func (m *MsgRemoteWithdraw) String() string { return proto.CompactTextString(m) } +func (*MsgRemoteWithdraw) ProtoMessage() {} +func (*MsgRemoteWithdraw) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{16} +} +func (m *MsgRemoteWithdraw) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoteWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoteWithdraw.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRemoteWithdraw) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoteWithdraw.Merge(m, src) +} +func (m *MsgRemoteWithdraw) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoteWithdraw) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoteWithdraw.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoteWithdraw proto.InternalMessageInfo + +// MsgRemoteWithdrawResponse returns the results of a remote withdrawal +type MsgRemoteWithdrawResponse struct { + // Operation nonce for tracking + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Route ID used + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Shares being withdrawn + SharesWithdrawn cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=shares_withdrawn,json=sharesWithdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"shares_withdrawn"` + // Expected amount to receive + ExpectedAmount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=expected_amount,json=expectedAmount,proto3,customtype=cosmossdk.io/math.Int" json:"expected_amount"` + // Expected completion time + ExpectedCompletion time.Time `protobuf:"bytes,5,opt,name=expected_completion,json=expectedCompletion,proto3,stdtime" json:"expected_completion"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,6,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (m *MsgRemoteWithdrawResponse) Reset() { *m = MsgRemoteWithdrawResponse{} } +func (m *MsgRemoteWithdrawResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoteWithdrawResponse) ProtoMessage() {} +func (*MsgRemoteWithdrawResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{17} +} +func (m *MsgRemoteWithdrawResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoteWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoteWithdrawResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRemoteWithdrawResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoteWithdrawResponse.Merge(m, src) +} +func (m *MsgRemoteWithdrawResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoteWithdrawResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoteWithdrawResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoteWithdrawResponse proto.InternalMessageInfo + +func (m *MsgRemoteWithdrawResponse) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *MsgRemoteWithdrawResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *MsgRemoteWithdrawResponse) GetExpectedCompletion() time.Time { + if m != nil { + return m.ExpectedCompletion + } + return time.Time{} +} + +func (m *MsgRemoteWithdrawResponse) GetProviderTracking() *ProviderTrackingInfo { + if m != nil { + return m.ProviderTracking + } + return nil +} + +// MsgProcessInFlightPosition processes an in-flight position +type MsgProcessInFlightPosition struct { + // Authority processing the position + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Operation nonce + Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Operation result + ResultStatus InflightStatus `protobuf:"varint,3,opt,name=result_status,json=resultStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"result_status,omitempty"` + // Result amount (for successful operations) + ResultAmount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=result_amount,json=resultAmount,proto3,customtype=cosmossdk.io/math.Int" json:"result_amount"` + // Error message (for failed operations) + ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + // Provider-specific tracking information + ProviderTracking *ProviderTrackingInfo `protobuf:"bytes,6,opt,name=provider_tracking,json=providerTracking,proto3" json:"provider_tracking,omitempty"` +} + +func (m *MsgProcessInFlightPosition) Reset() { *m = MsgProcessInFlightPosition{} } +func (m *MsgProcessInFlightPosition) String() string { return proto.CompactTextString(m) } +func (*MsgProcessInFlightPosition) ProtoMessage() {} +func (*MsgProcessInFlightPosition) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{18} +} +func (m *MsgProcessInFlightPosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgProcessInFlightPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgProcessInFlightPosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgProcessInFlightPosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgProcessInFlightPosition.Merge(m, src) +} +func (m *MsgProcessInFlightPosition) XXX_Size() int { + return m.Size() +} +func (m *MsgProcessInFlightPosition) XXX_DiscardUnknown() { + xxx_messageInfo_MsgProcessInFlightPosition.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgProcessInFlightPosition proto.InternalMessageInfo + +// MsgProcessInFlightPositionResponse confirms processing +type MsgProcessInFlightPositionResponse struct { + // Operation nonce + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // Final status + FinalStatus InflightStatus `protobuf:"varint,2,opt,name=final_status,json=finalStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"final_status,omitempty"` + // Amount processed + AmountProcessed cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount_processed,json=amountProcessed,proto3,customtype=cosmossdk.io/math.Int" json:"amount_processed"` + // Shares affected + SharesAffected cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=shares_affected,json=sharesAffected,proto3,customtype=cosmossdk.io/math.Int" json:"shares_affected"` +} + +func (m *MsgProcessInFlightPositionResponse) Reset() { *m = MsgProcessInFlightPositionResponse{} } +func (m *MsgProcessInFlightPositionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgProcessInFlightPositionResponse) ProtoMessage() {} +func (*MsgProcessInFlightPositionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{19} +} +func (m *MsgProcessInFlightPositionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgProcessInFlightPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgProcessInFlightPositionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgProcessInFlightPositionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgProcessInFlightPositionResponse.Merge(m, src) +} +func (m *MsgProcessInFlightPositionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgProcessInFlightPositionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgProcessInFlightPositionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgProcessInFlightPositionResponse proto.InternalMessageInfo + +func (m *MsgProcessInFlightPositionResponse) GetNonce() uint64 { + if m != nil { + return m.Nonce + } + return 0 +} + +func (m *MsgProcessInFlightPositionResponse) GetFinalStatus() InflightStatus { + if m != nil { + return m.FinalStatus + } + return INFLIGHT_PENDING +} + +// MsgRequestWithdrawal allows users to enter the withdrawal queue +type MsgRequestWithdrawal struct { + // User requesting withdrawal + Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // Amount to withdraw (locked immediately) + Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *MsgRequestWithdrawal) Reset() { *m = MsgRequestWithdrawal{} } +func (m *MsgRequestWithdrawal) String() string { return proto.CompactTextString(m) } +func (*MsgRequestWithdrawal) ProtoMessage() {} +func (*MsgRequestWithdrawal) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{20} +} +func (m *MsgRequestWithdrawal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRequestWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRequestWithdrawal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRequestWithdrawal) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestWithdrawal.Merge(m, src) +} +func (m *MsgRequestWithdrawal) XXX_Size() int { + return m.Size() +} +func (m *MsgRequestWithdrawal) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestWithdrawal.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRequestWithdrawal proto.InternalMessageInfo + +// MsgRequestWithdrawalResponse returns the created request details +type MsgRequestWithdrawalResponse struct { + // Withdrawal request ID + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Amount locked for withdrawal + AmountLocked cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount_locked,json=amountLocked,proto3,customtype=cosmossdk.io/math.Int" json:"amount_locked"` + // Yield portion of withdrawal + YieldPortion cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=yield_portion,json=yieldPortion,proto3,customtype=cosmossdk.io/math.Int" json:"yield_portion"` + // Estimated time the request becomes claimable + ExpectedClaimableAt time.Time `protobuf:"bytes,4,opt,name=expected_claimable_at,json=expectedClaimableAt,proto3,stdtime" json:"expected_claimable_at"` +} + +func (m *MsgRequestWithdrawalResponse) Reset() { *m = MsgRequestWithdrawalResponse{} } +func (m *MsgRequestWithdrawalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRequestWithdrawalResponse) ProtoMessage() {} +func (*MsgRequestWithdrawalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{21} +} +func (m *MsgRequestWithdrawalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRequestWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRequestWithdrawalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRequestWithdrawalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestWithdrawalResponse.Merge(m, src) +} +func (m *MsgRequestWithdrawalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRequestWithdrawalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestWithdrawalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRequestWithdrawalResponse proto.InternalMessageInfo + +func (m *MsgRequestWithdrawalResponse) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *MsgRequestWithdrawalResponse) GetExpectedClaimableAt() time.Time { + if m != nil { + return m.ExpectedClaimableAt + } + return time.Time{} +} + +// MsgProcessWithdrawalQueue allows authority to process withdrawal queue +type MsgProcessWithdrawalQueue struct { + // Authority processing the queue + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Maximum number of requests to process + MaxRequests int32 `protobuf:"varint,2,opt,name=max_requests,json=maxRequests,proto3" json:"max_requests,omitempty"` +} + +func (m *MsgProcessWithdrawalQueue) Reset() { *m = MsgProcessWithdrawalQueue{} } +func (m *MsgProcessWithdrawalQueue) String() string { return proto.CompactTextString(m) } +func (*MsgProcessWithdrawalQueue) ProtoMessage() {} +func (*MsgProcessWithdrawalQueue) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{22} +} +func (m *MsgProcessWithdrawalQueue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgProcessWithdrawalQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgProcessWithdrawalQueue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgProcessWithdrawalQueue) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgProcessWithdrawalQueue.Merge(m, src) +} +func (m *MsgProcessWithdrawalQueue) XXX_Size() int { + return m.Size() +} +func (m *MsgProcessWithdrawalQueue) XXX_DiscardUnknown() { + xxx_messageInfo_MsgProcessWithdrawalQueue.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgProcessWithdrawalQueue proto.InternalMessageInfo + +// MsgProcessWithdrawalQueueResponse returns processing results +type MsgProcessWithdrawalQueueResponse struct { + // Number of requests processed + RequestsProcessed int32 `protobuf:"varint,1,opt,name=requests_processed,json=requestsProcessed,proto3" json:"requests_processed,omitempty"` + // Total amount processed + TotalAmountProcessed cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_amount_processed,json=totalAmountProcessed,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_processed"` + // Total amount distributed + TotalAmountDistributed cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=total_amount_distributed,json=totalAmountDistributed,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_distributed"` + // Remaining requests in queue + RemainingRequests int32 `protobuf:"varint,4,opt,name=remaining_requests,json=remainingRequests,proto3" json:"remaining_requests,omitempty"` +} + +func (m *MsgProcessWithdrawalQueueResponse) Reset() { *m = MsgProcessWithdrawalQueueResponse{} } +func (m *MsgProcessWithdrawalQueueResponse) String() string { return proto.CompactTextString(m) } +func (*MsgProcessWithdrawalQueueResponse) ProtoMessage() {} +func (*MsgProcessWithdrawalQueueResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{23} +} +func (m *MsgProcessWithdrawalQueueResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgProcessWithdrawalQueueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgProcessWithdrawalQueueResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgProcessWithdrawalQueueResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgProcessWithdrawalQueueResponse.Merge(m, src) +} +func (m *MsgProcessWithdrawalQueueResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgProcessWithdrawalQueueResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgProcessWithdrawalQueueResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgProcessWithdrawalQueueResponse proto.InternalMessageInfo + +func (m *MsgProcessWithdrawalQueueResponse) GetRequestsProcessed() int32 { + if m != nil { + return m.RequestsProcessed + } + return 0 +} + +func (m *MsgProcessWithdrawalQueueResponse) GetRemainingRequests() int32 { + if m != nil { + return m.RemainingRequests + } + return 0 +} + +// MsgCreateRemotePosition deploys capital to a remote ERC-4626 position +type MsgCreateRemotePosition struct { + // Authorized manager address + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // Target ERC-4626 vault address + VaultAddress string `protobuf:"bytes,2,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` + // Hyperlane domain ID for destination chain + ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // Amount of $USDN to deploy + Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` + // Minimum acceptable Noble vault shares to receive (slippage protection) + MinSharesOut cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=min_shares_out,json=minSharesOut,proto3,customtype=cosmossdk.io/math.Int" json:"min_shares_out"` +} + +func (m *MsgCreateRemotePosition) Reset() { *m = MsgCreateRemotePosition{} } +func (m *MsgCreateRemotePosition) String() string { return proto.CompactTextString(m) } +func (*MsgCreateRemotePosition) ProtoMessage() {} +func (*MsgCreateRemotePosition) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{24} +} +func (m *MsgCreateRemotePosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateRemotePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateRemotePosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateRemotePosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateRemotePosition.Merge(m, src) +} +func (m *MsgCreateRemotePosition) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateRemotePosition) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateRemotePosition.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateRemotePosition proto.InternalMessageInfo + +type MsgCreateRemotePositionResponse struct { + // Assigned position ID + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Route ID used for cross-chain transfer + RouteId uint32 `protobuf:"varint,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Expected completion time on remote chain + ExpectedCompletion time.Time `protobuf:"bytes,3,opt,name=expected_completion,json=expectedCompletion,proto3,stdtime" json:"expected_completion"` +} + +func (m *MsgCreateRemotePositionResponse) Reset() { *m = MsgCreateRemotePositionResponse{} } +func (m *MsgCreateRemotePositionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateRemotePositionResponse) ProtoMessage() {} +func (*MsgCreateRemotePositionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{25} +} +func (m *MsgCreateRemotePositionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateRemotePositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateRemotePositionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateRemotePositionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateRemotePositionResponse.Merge(m, src) +} +func (m *MsgCreateRemotePositionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateRemotePositionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateRemotePositionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateRemotePositionResponse proto.InternalMessageInfo + +func (m *MsgCreateRemotePositionResponse) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *MsgCreateRemotePositionResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *MsgCreateRemotePositionResponse) GetExpectedCompletion() time.Time { + if m != nil { + return m.ExpectedCompletion + } + return time.Time{} +} + +// MsgCloseRemotePosition withdraws capital from a remote position +type MsgCloseRemotePosition struct { + // Authorized manager address + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // Remote position ID to close + PositionId uint64 `protobuf:"varint,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Optional partial withdrawal amount ($USDN). If omitted or zero, close fully + PartialAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=partial_amount,json=partialAmount,proto3,customtype=cosmossdk.io/math.Int" json:"partial_amount"` +} + +func (m *MsgCloseRemotePosition) Reset() { *m = MsgCloseRemotePosition{} } +func (m *MsgCloseRemotePosition) String() string { return proto.CompactTextString(m) } +func (*MsgCloseRemotePosition) ProtoMessage() {} +func (*MsgCloseRemotePosition) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{26} +} +func (m *MsgCloseRemotePosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCloseRemotePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCloseRemotePosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCloseRemotePosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCloseRemotePosition.Merge(m, src) +} +func (m *MsgCloseRemotePosition) XXX_Size() int { + return m.Size() +} +func (m *MsgCloseRemotePosition) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCloseRemotePosition.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCloseRemotePosition proto.InternalMessageInfo + +type MsgCloseRemotePositionResponse struct { + // Remote position ID + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Whether a withdrawal was initiated + Initiated bool `protobuf:"varint,2,opt,name=initiated,proto3" json:"initiated,omitempty"` + // Expected completion time + ExpectedCompletion time.Time `protobuf:"bytes,3,opt,name=expected_completion,json=expectedCompletion,proto3,stdtime" json:"expected_completion"` +} + +func (m *MsgCloseRemotePositionResponse) Reset() { *m = MsgCloseRemotePositionResponse{} } +func (m *MsgCloseRemotePositionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCloseRemotePositionResponse) ProtoMessage() {} +func (*MsgCloseRemotePositionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{27} +} +func (m *MsgCloseRemotePositionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCloseRemotePositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCloseRemotePositionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCloseRemotePositionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCloseRemotePositionResponse.Merge(m, src) +} +func (m *MsgCloseRemotePositionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCloseRemotePositionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCloseRemotePositionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCloseRemotePositionResponse proto.InternalMessageInfo + +func (m *MsgCloseRemotePositionResponse) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *MsgCloseRemotePositionResponse) GetInitiated() bool { + if m != nil { + return m.Initiated + } + return false +} + +func (m *MsgCloseRemotePositionResponse) GetExpectedCompletion() time.Time { + if m != nil { + return m.ExpectedCompletion + } + return time.Time{} +} + +// TargetAllocation defines allocation target for a position +type TargetAllocation struct { + // Remote position ID + PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // Target percentage (0-100) + TargetPercentage uint32 `protobuf:"varint,2,opt,name=target_percentage,json=targetPercentage,proto3" json:"target_percentage,omitempty"` +} + +func (m *TargetAllocation) Reset() { *m = TargetAllocation{} } +func (m *TargetAllocation) String() string { return proto.CompactTextString(m) } +func (*TargetAllocation) ProtoMessage() {} +func (*TargetAllocation) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{28} +} +func (m *TargetAllocation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TargetAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TargetAllocation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TargetAllocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TargetAllocation.Merge(m, src) +} +func (m *TargetAllocation) XXX_Size() int { + return m.Size() +} +func (m *TargetAllocation) XXX_DiscardUnknown() { + xxx_messageInfo_TargetAllocation.DiscardUnknown(m) +} + +var xxx_messageInfo_TargetAllocation proto.InternalMessageInfo + +func (m *TargetAllocation) GetPositionId() uint64 { + if m != nil { + return m.PositionId + } + return 0 +} + +func (m *TargetAllocation) GetTargetPercentage() uint32 { + if m != nil { + return m.TargetPercentage + } + return 0 +} + +// MsgRebalance rebalances capital across remote positions +type MsgRebalance struct { + // Authorized manager address + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // Desired allocation targets + TargetAllocations []*TargetAllocation `protobuf:"bytes,2,rep,name=target_allocations,json=targetAllocations,proto3" json:"target_allocations,omitempty"` +} + +func (m *MsgRebalance) Reset() { *m = MsgRebalance{} } +func (m *MsgRebalance) String() string { return proto.CompactTextString(m) } +func (*MsgRebalance) ProtoMessage() {} +func (*MsgRebalance) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{29} +} +func (m *MsgRebalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRebalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRebalance.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRebalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRebalance.Merge(m, src) +} +func (m *MsgRebalance) XXX_Size() int { + return m.Size() +} +func (m *MsgRebalance) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRebalance.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRebalance proto.InternalMessageInfo + +type MsgRebalanceResponse struct { + // Number of operations initiated + OperationsInitiated int32 `protobuf:"varint,1,opt,name=operations_initiated,json=operationsInitiated,proto3" json:"operations_initiated,omitempty"` + // Informational summary + Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` +} + +func (m *MsgRebalanceResponse) Reset() { *m = MsgRebalanceResponse{} } +func (m *MsgRebalanceResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRebalanceResponse) ProtoMessage() {} +func (*MsgRebalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{30} +} +func (m *MsgRebalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRebalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRebalanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRebalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRebalanceResponse.Merge(m, src) +} +func (m *MsgRebalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRebalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRebalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRebalanceResponse proto.InternalMessageInfo + +func (m *MsgRebalanceResponse) GetOperationsInitiated() int32 { + if m != nil { + return m.OperationsInitiated + } + return 0 +} + +func (m *MsgRebalanceResponse) GetSummary() string { + if m != nil { + return m.Summary + } + return "" +} + +// MsgClaimWithdrawal allows a user to claim a completed withdrawal request +type MsgClaimWithdrawal struct { + // User claiming the withdrawal + Claimer string `protobuf:"bytes,1,opt,name=claimer,proto3" json:"claimer,omitempty"` + // Withdrawal request ID + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +} + +func (m *MsgClaimWithdrawal) Reset() { *m = MsgClaimWithdrawal{} } +func (m *MsgClaimWithdrawal) String() string { return proto.CompactTextString(m) } +func (*MsgClaimWithdrawal) ProtoMessage() {} +func (*MsgClaimWithdrawal) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{31} +} +func (m *MsgClaimWithdrawal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimWithdrawal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimWithdrawal) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimWithdrawal.Merge(m, src) +} +func (m *MsgClaimWithdrawal) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimWithdrawal) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimWithdrawal.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimWithdrawal proto.InternalMessageInfo + +// MsgClaimWithdrawalResponse returns claim results +type MsgClaimWithdrawalResponse struct { + // Amount claimed (principal + yield - fees) + AmountClaimed cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount_claimed,json=amountClaimed,proto3,customtype=cosmossdk.io/math.Int" json:"amount_claimed"` + // Principal portion + PrincipalAmount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=principal_amount,json=principalAmount,proto3,customtype=cosmossdk.io/math.Int" json:"principal_amount"` + // Yield portion + YieldAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=yield_amount,json=yieldAmount,proto3,customtype=cosmossdk.io/math.Int" json:"yield_amount"` + // Fees deducted + FeesDeducted cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=fees_deducted,json=feesDeducted,proto3,customtype=cosmossdk.io/math.Int" json:"fees_deducted"` +} + +func (m *MsgClaimWithdrawalResponse) Reset() { *m = MsgClaimWithdrawalResponse{} } +func (m *MsgClaimWithdrawalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClaimWithdrawalResponse) ProtoMessage() {} +func (*MsgClaimWithdrawalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{32} +} +func (m *MsgClaimWithdrawalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimWithdrawalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgClaimWithdrawalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimWithdrawalResponse.Merge(m, src) +} +func (m *MsgClaimWithdrawalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimWithdrawalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimWithdrawalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimWithdrawalResponse proto.InternalMessageInfo + +// MsgUpdateNAV updates the NAV values (authority controlled) +type MsgUpdateNAV struct { + // Authority performing the update + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New NAV value + NewNav cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=new_nav,json=newNav,proto3,customtype=cosmossdk.io/math.Int" json:"new_nav"` + // Previous NAV value for validation (optional) + PreviousNav cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=previous_nav,json=previousNav,proto3,customtype=cosmossdk.io/math.Int" json:"previous_nav"` + // NAV change basis points (server may recalc) + ChangeBps int32 `protobuf:"varint,4,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Circuit breaker active + CircuitBreakerActive bool `protobuf:"varint,5,opt,name=circuit_breaker_active,json=circuitBreakerActive,proto3" json:"circuit_breaker_active,omitempty"` +} + +func (m *MsgUpdateNAV) Reset() { *m = MsgUpdateNAV{} } +func (m *MsgUpdateNAV) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateNAV) ProtoMessage() {} +func (*MsgUpdateNAV) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{33} +} +func (m *MsgUpdateNAV) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateNAV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateNAV.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateNAV) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateNAV.Merge(m, src) +} +func (m *MsgUpdateNAV) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateNAV) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateNAV.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateNAV proto.InternalMessageInfo + +// MsgUpdateNAVResponse confirms NAV update +type MsgUpdateNAVResponse struct { + // Applied NAV value + AppliedNav cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=applied_nav,json=appliedNav,proto3,customtype=cosmossdk.io/math.Int" json:"applied_nav"` + // Change basis points + ChangeBps int32 `protobuf:"varint,2,opt,name=change_bps,json=changeBps,proto3" json:"change_bps,omitempty"` + // Timestamp of update + Timestamp time.Time `protobuf:"bytes,3,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Circuit breaker active + CircuitBreakerActive bool `protobuf:"varint,4,opt,name=circuit_breaker_active,json=circuitBreakerActive,proto3" json:"circuit_breaker_active,omitempty"` +} + +func (m *MsgUpdateNAVResponse) Reset() { *m = MsgUpdateNAVResponse{} } +func (m *MsgUpdateNAVResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateNAVResponse) ProtoMessage() {} +func (*MsgUpdateNAVResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{34} +} +func (m *MsgUpdateNAVResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateNAVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateNAVResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateNAVResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateNAVResponse.Merge(m, src) +} +func (m *MsgUpdateNAVResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateNAVResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateNAVResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateNAVResponse proto.InternalMessageInfo + +func (m *MsgUpdateNAVResponse) GetChangeBps() int32 { + if m != nil { + return m.ChangeBps + } + return 0 +} + +func (m *MsgUpdateNAVResponse) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *MsgUpdateNAVResponse) GetCircuitBreakerActive() bool { + if m != nil { + return m.CircuitBreakerActive + } + return false +} + +// MsgHandleStaleInflight marks or updates a stale inflight fund record +type MsgHandleStaleInflight struct { + // Authority performing the action + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Inflight fund ID + InflightId string `protobuf:"bytes,2,opt,name=inflight_id,json=inflightId,proto3" json:"inflight_id,omitempty"` + // New status to apply (e.g., TIMEOUT, FAILED) + NewStatus InflightStatus `protobuf:"varint,3,opt,name=new_status,json=newStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"new_status,omitempty"` + // Reason / notes + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgHandleStaleInflight) Reset() { *m = MsgHandleStaleInflight{} } +func (m *MsgHandleStaleInflight) String() string { return proto.CompactTextString(m) } +func (*MsgHandleStaleInflight) ProtoMessage() {} +func (*MsgHandleStaleInflight) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{35} +} +func (m *MsgHandleStaleInflight) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgHandleStaleInflight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgHandleStaleInflight.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgHandleStaleInflight) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgHandleStaleInflight.Merge(m, src) +} +func (m *MsgHandleStaleInflight) XXX_Size() int { + return m.Size() +} +func (m *MsgHandleStaleInflight) XXX_DiscardUnknown() { + xxx_messageInfo_MsgHandleStaleInflight.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgHandleStaleInflight proto.InternalMessageInfo + +// MsgHandleStaleInflightResponse returns updated status info +type MsgHandleStaleInflightResponse struct { + // Inflight fund ID + InflightId string `protobuf:"bytes,1,opt,name=inflight_id,json=inflightId,proto3" json:"inflight_id,omitempty"` + // Final status + FinalStatus InflightStatus `protobuf:"varint,2,opt,name=final_status,json=finalStatus,proto3,enum=noble.dollar.vaults.v2.InflightStatus" json:"final_status,omitempty"` + // Time handled + HandledAt time.Time `protobuf:"bytes,3,opt,name=handled_at,json=handledAt,proto3,stdtime" json:"handled_at"` +} + +func (m *MsgHandleStaleInflightResponse) Reset() { *m = MsgHandleStaleInflightResponse{} } +func (m *MsgHandleStaleInflightResponse) String() string { return proto.CompactTextString(m) } +func (*MsgHandleStaleInflightResponse) ProtoMessage() {} +func (*MsgHandleStaleInflightResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{36} +} +func (m *MsgHandleStaleInflightResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgHandleStaleInflightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgHandleStaleInflightResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgHandleStaleInflightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgHandleStaleInflightResponse.Merge(m, src) +} +func (m *MsgHandleStaleInflightResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgHandleStaleInflightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgHandleStaleInflightResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgHandleStaleInflightResponse proto.InternalMessageInfo + +func (m *MsgHandleStaleInflightResponse) GetInflightId() string { + if m != nil { + return m.InflightId + } + return "" +} + +func (m *MsgHandleStaleInflightResponse) GetFinalStatus() InflightStatus { + if m != nil { + return m.FinalStatus + } + return INFLIGHT_PENDING +} + +func (m *MsgHandleStaleInflightResponse) GetHandledAt() time.Time { + if m != nil { + return m.HandledAt + } + return time.Time{} +} + +// MsgUpdateDepositLimits updates deposit limits and risk controls +type MsgUpdateDepositLimits struct { + // Authority performing the update + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // New deposit limits configuration + Limits DepositLimit `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits"` + // Reason for the update + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgUpdateDepositLimits) Reset() { *m = MsgUpdateDepositLimits{} } +func (m *MsgUpdateDepositLimits) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDepositLimits) ProtoMessage() {} +func (*MsgUpdateDepositLimits) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{37} +} +func (m *MsgUpdateDepositLimits) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDepositLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDepositLimits.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateDepositLimits) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDepositLimits.Merge(m, src) +} +func (m *MsgUpdateDepositLimits) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDepositLimits) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDepositLimits.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDepositLimits proto.InternalMessageInfo + +// MsgUpdateDepositLimitsResponse confirms the deposit limits update +type MsgUpdateDepositLimitsResponse struct { + // Previous limits configuration (JSON) + PreviousLimits string `protobuf:"bytes,1,opt,name=previous_limits,json=previousLimits,proto3" json:"previous_limits,omitempty"` + // New limits configuration (JSON) + NewLimits string `protobuf:"bytes,2,opt,name=new_limits,json=newLimits,proto3" json:"new_limits,omitempty"` +} + +func (m *MsgUpdateDepositLimitsResponse) Reset() { *m = MsgUpdateDepositLimitsResponse{} } +func (m *MsgUpdateDepositLimitsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDepositLimitsResponse) ProtoMessage() {} +func (*MsgUpdateDepositLimitsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{38} +} +func (m *MsgUpdateDepositLimitsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDepositLimitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDepositLimitsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateDepositLimitsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDepositLimitsResponse.Merge(m, src) +} +func (m *MsgUpdateDepositLimitsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDepositLimitsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDepositLimitsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDepositLimitsResponse proto.InternalMessageInfo + +func (m *MsgUpdateDepositLimitsResponse) GetPreviousLimits() string { + if m != nil { + return m.PreviousLimits + } + return "" +} + +func (m *MsgUpdateDepositLimitsResponse) GetNewLimits() string { + if m != nil { + return m.NewLimits + } + return "" +} + +// MsgCleanupStaleInflight removes a stale inflight fund and returns value to vault +type MsgCleanupStaleInflight struct { + // Authority address (must match module authority) + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Transaction ID of the stale inflight fund + TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Reason for cleanup (for audit trail) + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *MsgCleanupStaleInflight) Reset() { *m = MsgCleanupStaleInflight{} } +func (m *MsgCleanupStaleInflight) String() string { return proto.CompactTextString(m) } +func (*MsgCleanupStaleInflight) ProtoMessage() {} +func (*MsgCleanupStaleInflight) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{39} +} +func (m *MsgCleanupStaleInflight) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCleanupStaleInflight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCleanupStaleInflight.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCleanupStaleInflight) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCleanupStaleInflight.Merge(m, src) +} +func (m *MsgCleanupStaleInflight) XXX_Size() int { + return m.Size() +} +func (m *MsgCleanupStaleInflight) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCleanupStaleInflight.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCleanupStaleInflight proto.InternalMessageInfo + +func (m *MsgCleanupStaleInflight) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgCleanupStaleInflight) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *MsgCleanupStaleInflight) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +// MsgCleanupStaleInflightResponse returns details of the cleanup +type MsgCleanupStaleInflightResponse struct { + // Transaction ID that was cleaned up + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Amount returned to vault + AmountReturned cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount_returned,json=amountReturned,proto3,customtype=cosmossdk.io/math.Int" json:"amount_returned"` + // Route ID + RouteId uint32 `protobuf:"varint,3,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` + // Timestamp of cleanup + CleanedAt time.Time `protobuf:"bytes,4,opt,name=cleaned_at,json=cleanedAt,proto3,stdtime" json:"cleaned_at"` +} + +func (m *MsgCleanupStaleInflightResponse) Reset() { *m = MsgCleanupStaleInflightResponse{} } +func (m *MsgCleanupStaleInflightResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCleanupStaleInflightResponse) ProtoMessage() {} +func (*MsgCleanupStaleInflightResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c482f72d5d8ce397, []int{40} +} +func (m *MsgCleanupStaleInflightResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCleanupStaleInflightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCleanupStaleInflightResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCleanupStaleInflightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCleanupStaleInflightResponse.Merge(m, src) +} +func (m *MsgCleanupStaleInflightResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCleanupStaleInflightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCleanupStaleInflightResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCleanupStaleInflightResponse proto.InternalMessageInfo + +func (m *MsgCleanupStaleInflightResponse) GetTransactionId() string { + if m != nil { + return m.TransactionId + } + return "" +} + +func (m *MsgCleanupStaleInflightResponse) GetRouteId() uint32 { + if m != nil { + return m.RouteId + } + return 0 +} + +func (m *MsgCleanupStaleInflightResponse) GetCleanedAt() time.Time { + if m != nil { + return m.CleanedAt + } + return time.Time{} +} + +func init() { + proto.RegisterType((*MsgDeposit)(nil), "noble.dollar.vaults.v2.MsgDeposit") + proto.RegisterType((*MsgDepositResponse)(nil), "noble.dollar.vaults.v2.MsgDepositResponse") + proto.RegisterType((*MsgSetYieldPreference)(nil), "noble.dollar.vaults.v2.MsgSetYieldPreference") + proto.RegisterType((*MsgSetYieldPreferenceResponse)(nil), "noble.dollar.vaults.v2.MsgSetYieldPreferenceResponse") + proto.RegisterType((*MsgUpdateVaultConfig)(nil), "noble.dollar.vaults.v2.MsgUpdateVaultConfig") + proto.RegisterType((*MsgUpdateVaultConfigResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateVaultConfigResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "noble.dollar.vaults.v2.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateParamsResponse") + proto.RegisterType((*MsgCreateCrossChainRoute)(nil), "noble.dollar.vaults.v2.MsgCreateCrossChainRoute") + proto.RegisterType((*MsgCreateCrossChainRouteResponse)(nil), "noble.dollar.vaults.v2.MsgCreateCrossChainRouteResponse") + proto.RegisterType((*MsgUpdateCrossChainRoute)(nil), "noble.dollar.vaults.v2.MsgUpdateCrossChainRoute") + proto.RegisterType((*MsgUpdateCrossChainRouteResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateCrossChainRouteResponse") + proto.RegisterType((*MsgDisableCrossChainRoute)(nil), "noble.dollar.vaults.v2.MsgDisableCrossChainRoute") + proto.RegisterType((*MsgDisableCrossChainRouteResponse)(nil), "noble.dollar.vaults.v2.MsgDisableCrossChainRouteResponse") + proto.RegisterType((*MsgRemoteDeposit)(nil), "noble.dollar.vaults.v2.MsgRemoteDeposit") + proto.RegisterType((*MsgRemoteDepositResponse)(nil), "noble.dollar.vaults.v2.MsgRemoteDepositResponse") + proto.RegisterType((*MsgRemoteWithdraw)(nil), "noble.dollar.vaults.v2.MsgRemoteWithdraw") + proto.RegisterType((*MsgRemoteWithdrawResponse)(nil), "noble.dollar.vaults.v2.MsgRemoteWithdrawResponse") + proto.RegisterType((*MsgProcessInFlightPosition)(nil), "noble.dollar.vaults.v2.MsgProcessInFlightPosition") + proto.RegisterType((*MsgProcessInFlightPositionResponse)(nil), "noble.dollar.vaults.v2.MsgProcessInFlightPositionResponse") + proto.RegisterType((*MsgRequestWithdrawal)(nil), "noble.dollar.vaults.v2.MsgRequestWithdrawal") + proto.RegisterType((*MsgRequestWithdrawalResponse)(nil), "noble.dollar.vaults.v2.MsgRequestWithdrawalResponse") + proto.RegisterType((*MsgProcessWithdrawalQueue)(nil), "noble.dollar.vaults.v2.MsgProcessWithdrawalQueue") + proto.RegisterType((*MsgProcessWithdrawalQueueResponse)(nil), "noble.dollar.vaults.v2.MsgProcessWithdrawalQueueResponse") + proto.RegisterType((*MsgCreateRemotePosition)(nil), "noble.dollar.vaults.v2.MsgCreateRemotePosition") + proto.RegisterType((*MsgCreateRemotePositionResponse)(nil), "noble.dollar.vaults.v2.MsgCreateRemotePositionResponse") + proto.RegisterType((*MsgCloseRemotePosition)(nil), "noble.dollar.vaults.v2.MsgCloseRemotePosition") + proto.RegisterType((*MsgCloseRemotePositionResponse)(nil), "noble.dollar.vaults.v2.MsgCloseRemotePositionResponse") + proto.RegisterType((*TargetAllocation)(nil), "noble.dollar.vaults.v2.TargetAllocation") + proto.RegisterType((*MsgRebalance)(nil), "noble.dollar.vaults.v2.MsgRebalance") + proto.RegisterType((*MsgRebalanceResponse)(nil), "noble.dollar.vaults.v2.MsgRebalanceResponse") + proto.RegisterType((*MsgClaimWithdrawal)(nil), "noble.dollar.vaults.v2.MsgClaimWithdrawal") + proto.RegisterType((*MsgClaimWithdrawalResponse)(nil), "noble.dollar.vaults.v2.MsgClaimWithdrawalResponse") + proto.RegisterType((*MsgUpdateNAV)(nil), "noble.dollar.vaults.v2.MsgUpdateNAV") + proto.RegisterType((*MsgUpdateNAVResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateNAVResponse") + proto.RegisterType((*MsgHandleStaleInflight)(nil), "noble.dollar.vaults.v2.MsgHandleStaleInflight") + proto.RegisterType((*MsgHandleStaleInflightResponse)(nil), "noble.dollar.vaults.v2.MsgHandleStaleInflightResponse") + proto.RegisterType((*MsgUpdateDepositLimits)(nil), "noble.dollar.vaults.v2.MsgUpdateDepositLimits") + proto.RegisterType((*MsgUpdateDepositLimitsResponse)(nil), "noble.dollar.vaults.v2.MsgUpdateDepositLimitsResponse") + proto.RegisterType((*MsgCleanupStaleInflight)(nil), "noble.dollar.vaults.v2.MsgCleanupStaleInflight") + proto.RegisterType((*MsgCleanupStaleInflightResponse)(nil), "noble.dollar.vaults.v2.MsgCleanupStaleInflightResponse") +} + +func init() { proto.RegisterFile("noble/dollar/vaults/v2/tx.proto", fileDescriptor_c482f72d5d8ce397) } + +var fileDescriptor_c482f72d5d8ce397 = []byte{ + // 2932 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x1a, 0x5d, 0x6f, 0x1c, 0x57, + 0x35, 0xb3, 0xeb, 0xd8, 0xde, 0xe3, 0xaf, 0x78, 0xe2, 0xb8, 0xce, 0xd2, 0xd8, 0xe9, 0x24, 0x69, + 0x4c, 0x9a, 0xec, 0x26, 0xee, 0x07, 0xad, 0xa1, 0x45, 0x6b, 0x07, 0x54, 0x8b, 0x3a, 0x71, 0xc7, + 0x6d, 0x42, 0xe8, 0xc3, 0x70, 0xbd, 0x7b, 0x3d, 0x1e, 0x32, 0x3b, 0x33, 0x9d, 0xb9, 0xbb, 0x4e, + 0x2a, 0x55, 0xaa, 0x5a, 0x15, 0x01, 0x4f, 0xe5, 0x0f, 0xa0, 0x0a, 0x09, 0x89, 0x07, 0x90, 0xfa, + 0x50, 0xf5, 0x01, 0x89, 0x07, 0x1e, 0x90, 0x2a, 0x1e, 0x50, 0x28, 0x42, 0xa0, 0x3e, 0x14, 0xd4, + 0x3e, 0xa4, 0x2f, 0x08, 0x09, 0x89, 0x57, 0x84, 0xee, 0xc7, 0x7c, 0xed, 0x7c, 0xec, 0xee, 0x6c, + 0x5a, 0x89, 0x17, 0x7b, 0xe7, 0xde, 0x73, 0xcf, 0xf7, 0x39, 0xf7, 0x9c, 0x7b, 0x2f, 0xac, 0x58, + 0xf6, 0x9e, 0x89, 0xeb, 0x2d, 0xdb, 0x34, 0x91, 0x5b, 0xef, 0xa2, 0x8e, 0x49, 0xbc, 0x7a, 0x77, + 0xad, 0x4e, 0xee, 0xd4, 0x1c, 0xd7, 0x26, 0xb6, 0xbc, 0xc8, 0x00, 0x6a, 0x1c, 0xa0, 0xc6, 0x01, + 0x6a, 0xdd, 0xb5, 0xea, 0x3c, 0x6a, 0x1b, 0x96, 0x5d, 0x67, 0x7f, 0x39, 0x68, 0xf5, 0xa1, 0xa6, + 0xed, 0xb5, 0x6d, 0xaf, 0xde, 0xf6, 0xf4, 0x7a, 0xf7, 0x0a, 0xfd, 0x27, 0x26, 0x4e, 0xf2, 0x09, + 0x8d, 0x7d, 0xd5, 0xf9, 0x87, 0x98, 0x5a, 0xd0, 0x6d, 0xdd, 0xe6, 0xe3, 0xf4, 0x97, 0x18, 0x5d, + 0xd1, 0x6d, 0x5b, 0x37, 0x71, 0x9d, 0x7d, 0xed, 0x75, 0xf6, 0xeb, 0xc4, 0x68, 0x63, 0x8f, 0xa0, + 0xb6, 0x23, 0x00, 0x56, 0x33, 0xd8, 0x6e, 0xba, 0xb6, 0xe7, 0x69, 0xcd, 0x03, 0x64, 0x58, 0x02, + 0xf2, 0x6c, 0x06, 0xa4, 0x8e, 0x2d, 0xec, 0x19, 0x3e, 0x1b, 0x67, 0x32, 0xa0, 0x6c, 0x17, 0x35, + 0x4d, 0xdc, 0x07, 0x48, 0x28, 0x85, 0x01, 0x29, 0x3f, 0x2b, 0x01, 0x6c, 0x7b, 0xfa, 0x55, 0xec, + 0xd8, 0x9e, 0x41, 0xe4, 0xa7, 0xa0, 0xd2, 0xe2, 0x3f, 0x6d, 0x77, 0x49, 0x3a, 0x2d, 0xad, 0x56, + 0x36, 0x96, 0x3e, 0x7a, 0xff, 0xd2, 0x82, 0x50, 0x42, 0xa3, 0xd5, 0x72, 0xb1, 0xe7, 0xed, 0x12, + 0xd7, 0xb0, 0x74, 0x35, 0x04, 0x95, 0x9f, 0x87, 0x71, 0xd4, 0xb6, 0x3b, 0x16, 0x59, 0x2a, 0xb1, + 0x45, 0x97, 0x3f, 0xfc, 0x64, 0xe5, 0xc8, 0xc7, 0x9f, 0xac, 0x9c, 0xe0, 0x0b, 0xbd, 0xd6, 0xed, + 0x9a, 0x61, 0xd7, 0xdb, 0x88, 0x1c, 0xd4, 0xb6, 0x2c, 0xf2, 0xd1, 0xfb, 0x97, 0x40, 0x60, 0xdc, + 0xb2, 0xc8, 0x2f, 0xef, 0xbf, 0x77, 0x41, 0x52, 0xc5, 0x7a, 0xf9, 0x0c, 0xcc, 0xb8, 0xb8, 0x89, + 0x8d, 0x2e, 0xd6, 0xee, 0x1a, 0xd8, 0x6c, 0x2d, 0x95, 0x4f, 0x4b, 0xab, 0x93, 0xea, 0xb4, 0x18, + 0xbc, 0x45, 0xc7, 0xe4, 0x27, 0x60, 0x31, 0x06, 0xa4, 0xd9, 0x5d, 0xec, 0xba, 0x46, 0x0b, 0x2f, + 0x8d, 0x31, 0xe8, 0x85, 0x28, 0xf4, 0x75, 0x31, 0xb7, 0xfe, 0xf8, 0x8f, 0xde, 0x5d, 0x39, 0xf2, + 0xf9, 0xbb, 0x2b, 0x47, 0xde, 0xbc, 0xff, 0xde, 0x85, 0x90, 0xf9, 0x9f, 0xdc, 0x7f, 0xef, 0xc2, + 0x52, 0x42, 0x4b, 0x42, 0x23, 0xca, 0xab, 0x20, 0x87, 0xfa, 0x51, 0xb1, 0xe7, 0xd8, 0x96, 0x87, + 0xe5, 0x57, 0xe0, 0x18, 0xe7, 0x57, 0x13, 0x68, 0x70, 0x4b, 0xa8, 0x6b, 0x78, 0xc9, 0xe7, 0x38, + 0xa6, 0xab, 0x3e, 0x22, 0xe5, 0x17, 0x12, 0x9c, 0xd8, 0xf6, 0xf4, 0x5d, 0x4c, 0x18, 0xff, 0x3b, + 0x2e, 0xde, 0xc7, 0x2e, 0xb6, 0x9a, 0x58, 0xbe, 0x08, 0x63, 0x1d, 0x0f, 0xf7, 0xb7, 0x0c, 0x83, + 0x4a, 0xaa, 0xb2, 0x94, 0x54, 0xe5, 0xfa, 0x33, 0x51, 0xa5, 0xb0, 0x75, 0x54, 0x1f, 0x67, 0x12, + 0xfa, 0x48, 0x72, 0xa3, 0x1c, 0xc2, 0xa9, 0x54, 0x36, 0x03, 0x2d, 0xd5, 0xe1, 0xb8, 0xe3, 0xe2, + 0xae, 0x61, 0x77, 0x68, 0x30, 0xf9, 0xd3, 0x8c, 0xfb, 0x49, 0x55, 0xf6, 0xa7, 0x22, 0xf2, 0x9d, + 0x83, 0x59, 0x0b, 0x1f, 0x46, 0x61, 0x39, 0xcb, 0x33, 0x16, 0x3e, 0x8c, 0x10, 0xfe, 0x5c, 0x82, + 0x85, 0x6d, 0x4f, 0x7f, 0xd9, 0x69, 0x21, 0x82, 0x6f, 0x50, 0x16, 0x37, 0x6d, 0x6b, 0xdf, 0xd0, + 0xa9, 0xfb, 0xa2, 0x0e, 0x39, 0xb0, 0x5d, 0x83, 0xdc, 0xed, 0xef, 0xbe, 0x01, 0xa8, 0xdc, 0x80, + 0xf1, 0x26, 0xc3, 0xc0, 0xe8, 0x4d, 0xad, 0x9d, 0xa9, 0xa5, 0xa7, 0x91, 0x5a, 0x84, 0xd8, 0xc6, + 0x18, 0xb5, 0xb4, 0x2a, 0x16, 0xca, 0x8b, 0x30, 0xee, 0x62, 0xe4, 0xd9, 0x16, 0x73, 0xd8, 0x8a, + 0x2a, 0xbe, 0xd6, 0x9f, 0x8d, 0x39, 0x5d, 0x40, 0x92, 0x2a, 0x59, 0x49, 0x28, 0x39, 0x21, 0x91, + 0xb2, 0x0f, 0x0f, 0xa7, 0x49, 0x1a, 0xa8, 0xf8, 0x3c, 0xcc, 0x05, 0x2a, 0x16, 0x22, 0x30, 0xb9, + 0xd5, 0x59, 0x7f, 0x58, 0xa8, 0xe6, 0x14, 0x00, 0x55, 0x6d, 0x44, 0xcc, 0x8a, 0x5a, 0xb1, 0xf0, + 0xa1, 0xa0, 0xf3, 0x3b, 0x09, 0xe6, 0x02, 0x42, 0x3b, 0xc8, 0x45, 0x6d, 0xaf, 0xb0, 0x36, 0xbf, + 0x01, 0xe3, 0x0e, 0xc3, 0x20, 0xb4, 0xb9, 0x9c, 0xa5, 0x4d, 0x4e, 0xc7, 0x57, 0x24, 0x5f, 0xb3, + 0xfe, 0x74, 0xb6, 0xc2, 0x4e, 0x65, 0x28, 0x8c, 0xe3, 0x51, 0x4e, 0xc2, 0x43, 0x3d, 0x22, 0xf8, + 0x6a, 0x52, 0x3e, 0x96, 0x60, 0x69, 0xdb, 0xd3, 0x37, 0x5d, 0x8c, 0x08, 0xde, 0xa4, 0x59, 0x77, + 0x93, 0x26, 0x5d, 0xd5, 0xee, 0x10, 0x5c, 0x58, 0xce, 0x4d, 0x38, 0xea, 0x52, 0x04, 0x42, 0xcc, + 0xf3, 0x59, 0x62, 0xf6, 0xd0, 0x13, 0xf2, 0xf2, 0xb5, 0xeb, 0x8d, 0x6c, 0x71, 0x1f, 0x4d, 0x88, + 0x9b, 0xca, 0xbf, 0xf2, 0x2c, 0x9c, 0xce, 0x92, 0x2d, 0xf0, 0x93, 0x93, 0x30, 0xc9, 0xe8, 0x69, + 0x06, 0x4f, 0x54, 0x33, 0xea, 0x04, 0xfb, 0xde, 0x6a, 0x29, 0xff, 0xe1, 0xba, 0xe1, 0x7a, 0x7b, + 0x50, 0xba, 0x89, 0xd2, 0x2b, 0xc5, 0xe8, 0x85, 0x6a, 0x2b, 0x7f, 0x59, 0x6a, 0x4b, 0x15, 0x4d, + 0x79, 0x5b, 0x62, 0x7a, 0x4b, 0x9d, 0x1c, 0x40, 0x6f, 0x69, 0xa1, 0x57, 0x1a, 0x20, 0xf4, 0xca, + 0xbd, 0xa1, 0xf7, 0x07, 0x09, 0x4e, 0xd2, 0x2d, 0xc6, 0xf0, 0xd0, 0x9e, 0xf9, 0x65, 0x18, 0x20, + 0x2b, 0x55, 0x6d, 0x64, 0xeb, 0xf4, 0x7c, 0x72, 0x7f, 0x4c, 0x65, 0x57, 0x69, 0xc3, 0x23, 0x99, + 0xb2, 0x0c, 0xa2, 0xd4, 0x4b, 0x20, 0xa3, 0xfd, 0x7d, 0xdc, 0x24, 0xb8, 0xa5, 0xb1, 0xfd, 0xd0, + 0xb0, 0x2d, 0x9e, 0x47, 0xca, 0xea, 0xbc, 0x3f, 0xb3, 0xe3, 0x4f, 0x28, 0x7f, 0x2c, 0xc3, 0xb1, + 0x6d, 0x4f, 0x57, 0x71, 0xdb, 0x26, 0x78, 0xd4, 0x22, 0x26, 0x47, 0x65, 0x61, 0x7d, 0x53, 0x1e, + 0xb1, 0xbe, 0x39, 0x07, 0xb3, 0x2e, 0xe3, 0x56, 0x43, 0x9c, 0x0f, 0x56, 0xb2, 0x54, 0xd4, 0x19, + 0x3e, 0x2a, 0x98, 0x93, 0xaf, 0x03, 0xb4, 0x0d, 0x4b, 0xf3, 0x0e, 0x90, 0x8b, 0xbd, 0xa5, 0xa3, + 0x05, 0x89, 0x56, 0xda, 0x86, 0xb5, 0xcb, 0x50, 0xc8, 0x5f, 0x81, 0x8a, 0x8e, 0x3c, 0xcd, 0x34, + 0xda, 0x06, 0x59, 0x1a, 0x3f, 0x2d, 0xad, 0x8e, 0xa9, 0x93, 0x3a, 0xf2, 0x5e, 0xa0, 0xdf, 0xf2, + 0x36, 0x9f, 0x74, 0x5c, 0xa3, 0x89, 0x97, 0x26, 0x0a, 0x12, 0xa3, 0xe8, 0x76, 0x28, 0x86, 0x78, + 0x4d, 0x11, 0x2f, 0xb4, 0x96, 0x13, 0x8e, 0x14, 0xb3, 0x9d, 0xf2, 0xeb, 0x32, 0x4b, 0x46, 0xb1, + 0xc1, 0xc0, 0x6f, 0x16, 0xe0, 0xa8, 0x65, 0xfb, 0x15, 0xc4, 0x98, 0xca, 0x3f, 0xf2, 0xcc, 0xf6, + 0x0a, 0x1c, 0xe3, 0x1a, 0xd4, 0x90, 0x69, 0xda, 0x4d, 0x44, 0xcb, 0xb4, 0xa2, 0x06, 0x9c, 0xe3, + 0x98, 0x1a, 0x3e, 0x22, 0xf9, 0x45, 0x98, 0x12, 0x35, 0xa0, 0x87, 0x2d, 0xc2, 0xcd, 0x58, 0x00, + 0x2f, 0x70, 0x24, 0xbb, 0xd8, 0x22, 0xf2, 0xcb, 0x70, 0x1c, 0xdf, 0x71, 0xb8, 0xf7, 0x37, 0xed, + 0xb6, 0x63, 0x62, 0xea, 0xe6, 0xcc, 0xfc, 0x53, 0x6b, 0xd5, 0x1a, 0x6f, 0x33, 0x6a, 0x7e, 0x9b, + 0x51, 0x7b, 0xc9, 0x6f, 0x33, 0x36, 0x26, 0x29, 0xd9, 0x77, 0xfe, 0xbe, 0x22, 0xa9, 0xb2, 0x8f, + 0x60, 0x33, 0x58, 0x2f, 0xdf, 0x82, 0x79, 0xc7, 0xb5, 0xbb, 0x46, 0x0b, 0xbb, 0x1a, 0x71, 0x51, + 0xf3, 0xb6, 0x61, 0xe9, 0xcc, 0x07, 0xa6, 0xd6, 0x2e, 0x66, 0xee, 0xcd, 0x62, 0xc1, 0x4b, 0x02, + 0x7e, 0xcb, 0xda, 0xb7, 0xd5, 0x63, 0x4e, 0xcf, 0xa8, 0xf2, 0xab, 0x32, 0xcc, 0x07, 0xf6, 0xba, + 0x69, 0x90, 0x83, 0x96, 0x8b, 0x0e, 0xe5, 0xa7, 0x01, 0x0e, 0xc5, 0xef, 0x01, 0xaa, 0xd5, 0x08, + 0x6c, 0x9f, 0x18, 0x14, 0xe1, 0x50, 0x38, 0x06, 0xf9, 0x7a, 0x3f, 0xb8, 0x44, 0x44, 0x8f, 0x8d, + 0x10, 0x5c, 0x0d, 0x1e, 0xd4, 0xb1, 0xe0, 0x3a, 0x9a, 0x17, 0x5c, 0xe3, 0x23, 0x07, 0xd7, 0xd7, + 0xa3, 0xc1, 0x15, 0x51, 0x1d, 0x8d, 0xae, 0x95, 0x8c, 0xe8, 0xf2, 0x0d, 0xa3, 0x7c, 0x50, 0x66, + 0x7b, 0x4d, 0x7c, 0xf4, 0x41, 0xc4, 0x97, 0xcf, 0x87, 0x35, 0x6a, 0x7c, 0xf9, 0x4c, 0x51, 0xaf, + 0x9d, 0x0b, 0x82, 0x61, 0x44, 0x53, 0xcd, 0xfa, 0x88, 0x84, 0xbd, 0xfe, 0xff, 0xe2, 0xec, 0xcf, + 0x65, 0xa8, 0x6e, 0x7b, 0xfa, 0x8e, 0x6b, 0x37, 0xb1, 0xe7, 0x6d, 0x59, 0xdf, 0x36, 0x0d, 0xfd, + 0x80, 0xf8, 0x1b, 0x61, 0xe1, 0x2a, 0x21, 0xb0, 0x78, 0x29, 0x6a, 0xf1, 0xef, 0xd0, 0xc6, 0xd1, + 0xeb, 0x98, 0x44, 0xf3, 0x08, 0x22, 0x1d, 0x1e, 0x70, 0xb3, 0x6b, 0x8f, 0x66, 0xc9, 0xb0, 0x65, + 0xed, 0x33, 0x76, 0x76, 0x19, 0x34, 0x6d, 0x30, 0xe9, 0x62, 0xfe, 0x25, 0xbf, 0x1c, 0x20, 0x1b, + 0xd1, 0x88, 0x02, 0x6d, 0x23, 0x38, 0x27, 0xc0, 0xae, 0x6b, 0xbb, 0x5a, 0x1b, 0x7b, 0x1e, 0xd2, + 0x31, 0xdf, 0x23, 0xd5, 0x69, 0x36, 0xb8, 0xcd, 0xc7, 0xbe, 0x40, 0x83, 0xac, 0x6f, 0x66, 0x17, + 0x4b, 0xab, 0x89, 0x28, 0xcc, 0x30, 0x9b, 0xf2, 0xdb, 0x12, 0x28, 0xd9, 0x56, 0xed, 0x13, 0x97, + 0x5b, 0x30, 0xbd, 0x6f, 0x58, 0xc8, 0xf4, 0x8d, 0x54, 0x1a, 0xca, 0x48, 0x53, 0x6c, 0xad, 0xb0, + 0x51, 0x78, 0x9c, 0xe1, 0x70, 0x56, 0x46, 0xd9, 0x27, 0x39, 0xa6, 0x1d, 0x1f, 0x11, 0x8d, 0x63, + 0x7f, 0x13, 0x16, 0xf5, 0x5b, 0xf1, 0x38, 0x16, 0x7b, 0xb0, 0xc0, 0xa3, 0xfc, 0x95, 0x1f, 0x04, + 0xa8, 0xf8, 0xd5, 0x0e, 0xf6, 0x88, 0x9f, 0x3a, 0x90, 0x49, 0xe3, 0xc1, 0xe5, 0x83, 0x03, 0xec, + 0x3f, 0x21, 0xe8, 0x83, 0x3b, 0xc7, 0xea, 0xe9, 0xfb, 0x03, 0x0a, 0xe9, 0x7d, 0x7f, 0x42, 0x00, + 0xe5, 0xf7, 0x25, 0xd6, 0xf8, 0x27, 0x26, 0x02, 0x9f, 0x38, 0x05, 0x20, 0x90, 0xfa, 0x55, 0x74, + 0x25, 0x10, 0x64, 0xab, 0x45, 0xa3, 0x4e, 0x58, 0xd4, 0xb4, 0x9b, 0xb7, 0x71, 0xab, 0xb0, 0x3c, + 0xd3, 0x1c, 0xcd, 0x0b, 0x0c, 0x0b, 0x45, 0xcb, 0x0f, 0xdc, 0x1c, 0xdb, 0x65, 0x29, 0xb3, 0xa8, + 0x97, 0x4c, 0x33, 0x34, 0x3b, 0x1c, 0x8b, 0xfc, 0x5d, 0x38, 0x11, 0xe6, 0x63, 0x13, 0x19, 0x6d, + 0xda, 0x3d, 0x68, 0x88, 0xe7, 0x8a, 0x41, 0x33, 0x72, 0x90, 0xd2, 0x37, 0x7d, 0x0c, 0x0d, 0xa2, + 0xfc, 0x86, 0x37, 0x57, 0xc2, 0x1b, 0x43, 0x3d, 0xbe, 0xd8, 0xc1, 0x9d, 0xe2, 0xcd, 0xd5, 0x23, + 0x30, 0xdd, 0x46, 0x77, 0x34, 0xa1, 0x6e, 0x1e, 0x7a, 0x47, 0xd5, 0xa9, 0x36, 0xba, 0x23, 0x0c, + 0xe6, 0x0d, 0xd7, 0x4c, 0xa5, 0xb3, 0xa7, 0xfc, 0xa5, 0xc4, 0xba, 0xa9, 0xf4, 0xd9, 0xc0, 0x13, + 0x2e, 0x81, 0xec, 0x33, 0x12, 0x09, 0x5f, 0x89, 0xb1, 0x34, 0xef, 0xcf, 0x84, 0xe1, 0xb8, 0x0f, + 0x8b, 0xc4, 0x26, 0xc8, 0xd4, 0x12, 0x11, 0x5f, 0xd4, 0x45, 0x16, 0x18, 0xbe, 0x46, 0x4f, 0xd8, + 0xff, 0x00, 0x96, 0x62, 0x74, 0x5a, 0x86, 0x47, 0x5c, 0x63, 0xaf, 0x33, 0x4a, 0x0d, 0xbe, 0x18, + 0xa1, 0x74, 0x35, 0xc4, 0xc7, 0x55, 0xd0, 0x46, 0x86, 0x65, 0x58, 0x7a, 0x68, 0x95, 0x31, 0x5f, + 0x05, 0x62, 0xc6, 0xb7, 0x8d, 0xf2, 0xaf, 0x12, 0x3b, 0x29, 0xe2, 0x27, 0x26, 0xbc, 0x16, 0x0a, + 0x76, 0xd2, 0x35, 0x98, 0x68, 0x23, 0x0b, 0xe9, 0x03, 0xe4, 0x0d, 0x1f, 0x90, 0xee, 0x45, 0xcc, + 0x96, 0x41, 0x4b, 0xc7, 0xcf, 0x01, 0xa6, 0xd9, 0xa0, 0xdf, 0xd1, 0x9d, 0x84, 0x49, 0x76, 0xd0, + 0x4f, 0xc3, 0xb5, 0xcc, 0xcb, 0x28, 0xf6, 0x1d, 0xeb, 0x2e, 0xc7, 0x46, 0xec, 0x2e, 0x6f, 0xc0, + 0x6c, 0xd8, 0x36, 0x6a, 0x76, 0x87, 0x14, 0x6e, 0x1d, 0xa7, 0x83, 0xd6, 0xf1, 0x7a, 0x87, 0xac, + 0x3f, 0x17, 0xf5, 0x66, 0x5f, 0x6e, 0xea, 0xcb, 0xe7, 0x32, 0xce, 0xa8, 0xe2, 0x5a, 0x55, 0xde, + 0x97, 0x60, 0x25, 0x43, 0xe3, 0x81, 0x1f, 0xaf, 0xc0, 0x94, 0xdf, 0xf1, 0xfb, 0x29, 0x6d, 0x4c, + 0x05, 0x7f, 0x68, 0xab, 0x95, 0x57, 0x88, 0x66, 0x14, 0x74, 0xe5, 0xd1, 0x0a, 0x3a, 0xe5, 0xed, + 0x12, 0x2c, 0x52, 0xb6, 0x4d, 0xdb, 0x7b, 0x10, 0x7e, 0xd2, 0x23, 0x61, 0x29, 0x21, 0xe1, 0x4d, + 0x98, 0x75, 0x90, 0x4b, 0x8c, 0x20, 0x6a, 0x0a, 0x47, 0xca, 0x8c, 0xc0, 0xd3, 0x48, 0xd9, 0x8d, + 0xa2, 0xf6, 0x3b, 0x9b, 0xb4, 0x5f, 0x52, 0x58, 0xe5, 0x03, 0x09, 0x96, 0xd3, 0xf5, 0x30, 0xb8, + 0xf5, 0x1e, 0x86, 0x8a, 0x61, 0x19, 0xc4, 0x60, 0x4d, 0x38, 0x3f, 0xd6, 0x0f, 0x07, 0xbe, 0x28, + 0x03, 0x7e, 0x1f, 0x8e, 0xbd, 0x84, 0x5c, 0x1d, 0x13, 0xd1, 0xb6, 0x53, 0xcb, 0xf5, 0xe5, 0xf4, + 0x31, 0x98, 0x27, 0x6c, 0x91, 0xe6, 0x60, 0xb7, 0x89, 0x2d, 0x42, 0xcb, 0x4b, 0xee, 0x70, 0xc7, + 0xf8, 0xc4, 0x4e, 0x30, 0xae, 0xdc, 0x93, 0x60, 0x9a, 0x6d, 0xd4, 0x7b, 0xc8, 0x44, 0xb4, 0x2c, + 0x2b, 0xe2, 0x18, 0x37, 0x41, 0x16, 0x14, 0x51, 0xc0, 0x27, 0xcd, 0x22, 0xe5, 0xd5, 0xa9, 0xb5, + 0xd5, 0xac, 0x82, 0xae, 0x57, 0x30, 0x55, 0x70, 0x1d, 0x8e, 0x78, 0xf1, 0x2b, 0xaf, 0xa8, 0xdd, + 0xab, 0x29, 0x35, 0x88, 0x90, 0x40, 0x69, 0x8a, 0xa2, 0x4a, 0x7c, 0x07, 0x26, 0xbe, 0x02, 0x0b, + 0xb6, 0x83, 0x5d, 0x8e, 0x5a, 0x0b, 0x8d, 0xc9, 0xb7, 0x9a, 0xe3, 0xe1, 0xdc, 0x56, 0x60, 0xd6, + 0x25, 0x98, 0xf0, 0x3a, 0xed, 0x36, 0x72, 0xef, 0x8a, 0x9c, 0xe8, 0x7f, 0x2a, 0x3f, 0x97, 0xd8, + 0xc5, 0x1a, 0xdb, 0xab, 0x23, 0x85, 0xdb, 0x1a, 0x4c, 0xb0, 0x02, 0x60, 0x10, 0xed, 0x09, 0xc0, + 0x9e, 0x52, 0xa8, 0xd4, 0x53, 0x0a, 0xc5, 0x4f, 0xa3, 0xfc, 0x45, 0x54, 0x07, 0xa7, 0x53, 0x7c, + 0x3f, 0xc6, 0x8d, 0xf2, 0xdf, 0x12, 0xeb, 0xba, 0x7a, 0x86, 0x03, 0x85, 0xdc, 0x84, 0x59, 0xb1, + 0xb9, 0x71, 0xac, 0xc5, 0xef, 0x00, 0x45, 0xb1, 0xb6, 0xc9, 0xd1, 0xd0, 0x7a, 0xdc, 0x71, 0x0d, + 0xab, 0x69, 0x38, 0x61, 0x26, 0x28, 0xba, 0x3b, 0xcf, 0x05, 0x98, 0x44, 0xe7, 0xb4, 0x0b, 0xbc, + 0xf8, 0x1a, 0x35, 0xc5, 0x4c, 0x31, 0x2c, 0x41, 0x47, 0x3d, 0xb3, 0x8f, 0xb1, 0xa7, 0xb5, 0x70, + 0xab, 0x33, 0x52, 0x89, 0x3f, 0x4d, 0xd1, 0x5c, 0x15, 0x58, 0x94, 0x7f, 0x97, 0x58, 0x74, 0xf1, + 0x33, 0xfa, 0x6b, 0x8d, 0x1b, 0x85, 0x2b, 0xb6, 0x2d, 0x98, 0xb0, 0xf0, 0xa1, 0x66, 0xa1, 0x6e, + 0xf1, 0xca, 0xde, 0xc2, 0x87, 0xd7, 0x50, 0x97, 0xea, 0x2f, 0x38, 0xf7, 0xa7, 0xf8, 0x0a, 0xeb, + 0xcf, 0xc7, 0x42, 0x91, 0x9e, 0x02, 0x68, 0x1e, 0x20, 0x4b, 0xc7, 0xda, 0x9e, 0xe3, 0x57, 0x2e, + 0x15, 0x3e, 0xb2, 0xe1, 0x78, 0xf2, 0x13, 0xb0, 0xd8, 0x34, 0xdc, 0x66, 0xc7, 0x20, 0xda, 0x9e, + 0x8b, 0xd1, 0x6d, 0xec, 0x6a, 0xa8, 0x49, 0x8c, 0x2e, 0x6f, 0x7b, 0x27, 0xd5, 0x05, 0x31, 0xbb, + 0xc1, 0x27, 0x1b, 0x6c, 0x6e, 0xfd, 0xc9, 0xec, 0x1a, 0xb4, 0x9a, 0x71, 0x49, 0x72, 0xad, 0x71, + 0x43, 0x79, 0xb3, 0x14, 0xb9, 0x5e, 0xbd, 0xd6, 0xb8, 0x11, 0xf8, 0xfb, 0x8b, 0x30, 0x85, 0x1c, + 0xc7, 0x34, 0x70, 0x8b, 0x09, 0x2e, 0x15, 0x3e, 0xf1, 0xe4, 0x48, 0x92, 0x72, 0x97, 0x7a, 0xe5, + 0xde, 0x80, 0x4a, 0xf0, 0x96, 0x62, 0xa8, 0xcd, 0x20, 0x5c, 0x96, 0xa3, 0xbb, 0xb1, 0x6c, 0xdd, + 0x29, 0x3f, 0xe5, 0x5b, 0xff, 0xf3, 0xc8, 0x6a, 0x99, 0x78, 0x97, 0x20, 0x13, 0xfb, 0x0d, 0x74, + 0x61, 0x1f, 0x5c, 0x81, 0x29, 0x43, 0xe0, 0x08, 0x13, 0x15, 0xf8, 0x43, 0x5b, 0x2d, 0xf9, 0x5b, + 0xfc, 0xa2, 0xa8, 0xd0, 0xa1, 0x4b, 0xc5, 0xc2, 0x87, 0xa2, 0x9b, 0x0f, 0xef, 0x77, 0xc6, 0x62, + 0xf7, 0x3b, 0xdf, 0xcc, 0x76, 0x87, 0x64, 0x19, 0x90, 0x22, 0xb8, 0xf2, 0x27, 0x5e, 0x06, 0xa4, + 0x4c, 0x45, 0xcb, 0x80, 0xa8, 0x8c, 0x52, 0x42, 0xc6, 0x07, 0x78, 0x6a, 0xb1, 0x09, 0x70, 0xc0, + 0x58, 0x69, 0xd1, 0x56, 0x71, 0x28, 0xef, 0x10, 0xeb, 0x1a, 0x44, 0xf9, 0xa7, 0xc4, 0xec, 0xcc, + 0x9d, 0x5d, 0x5c, 0x38, 0xb0, 0x73, 0xdb, 0xe2, 0xf7, 0xdf, 0x1b, 0x30, 0xce, 0x4e, 0x82, 0xfd, + 0xfb, 0xef, 0xb3, 0x59, 0xc2, 0x45, 0xc9, 0xf9, 0xb7, 0xe0, 0x7c, 0x65, 0xe6, 0x1d, 0xdd, 0x50, + 0x36, 0x4c, 0x11, 0x4a, 0x39, 0x60, 0x26, 0x4c, 0x99, 0x49, 0x7d, 0x52, 0x20, 0xe4, 0xe8, 0x79, + 0x52, 0x20, 0xf4, 0x23, 0xee, 0x35, 0x23, 0xb2, 0xf2, 0x7b, 0x4d, 0x41, 0xe9, 0x9e, 0xc4, 0xbb, + 0x2c, 0x13, 0x23, 0xab, 0xe3, 0x3c, 0x98, 0x10, 0x3a, 0x07, 0xb3, 0xc4, 0x45, 0x96, 0x47, 0x03, + 0x38, 0x2c, 0xa2, 0x2b, 0xea, 0x4c, 0x64, 0x34, 0xe7, 0x86, 0xf3, 0xb9, 0xa4, 0xd6, 0x1e, 0xcb, + 0x78, 0x25, 0x95, 0xc6, 0xb6, 0xf2, 0x56, 0x89, 0xb7, 0x31, 0x29, 0x73, 0x81, 0xfa, 0x92, 0x2c, + 0x4a, 0x69, 0x2c, 0xde, 0x02, 0x71, 0x50, 0xa6, 0xb9, 0x98, 0x74, 0x5c, 0x6b, 0x84, 0xfe, 0x5b, + 0x14, 0x21, 0xaa, 0xc0, 0x13, 0xeb, 0x93, 0xca, 0xbd, 0x77, 0xef, 0xd0, 0xa4, 0xcc, 0xf3, 0x90, + 0x19, 0xe6, 0x74, 0xa5, 0x22, 0xd6, 0x35, 0xc8, 0xda, 0xbd, 0x45, 0x28, 0x6f, 0x7b, 0xba, 0x7c, + 0x0b, 0x26, 0xfc, 0x2b, 0x57, 0x25, 0xcb, 0xc5, 0xc3, 0xb7, 0x53, 0xd5, 0x0b, 0xfd, 0x61, 0x02, + 0x25, 0x1e, 0xc2, 0x7c, 0xf2, 0x50, 0xef, 0x62, 0x0e, 0x82, 0x04, 0x74, 0xf5, 0x89, 0x61, 0xa0, + 0x03, 0xc2, 0xaf, 0x81, 0x9c, 0xf2, 0xee, 0xea, 0x52, 0x0e, 0xae, 0x24, 0x78, 0xf5, 0xc9, 0xa1, + 0xc0, 0x03, 0xda, 0x3f, 0x94, 0x60, 0x31, 0xe3, 0xa0, 0xea, 0x4a, 0x0e, 0xc6, 0xf4, 0x25, 0xd5, + 0x67, 0x86, 0x5e, 0x12, 0xd5, 0x7e, 0xf2, 0x6d, 0x55, 0x9e, 0xf6, 0x13, 0xd0, 0xb9, 0xda, 0xcf, + 0x7e, 0xcd, 0x74, 0x00, 0xd3, 0xb1, 0x17, 0x48, 0xe7, 0xfb, 0x62, 0xe1, 0x80, 0xd5, 0xfa, 0x80, + 0x80, 0x01, 0xa5, 0xb7, 0x24, 0x38, 0x91, 0xfe, 0x1a, 0xe8, 0x72, 0x0e, 0xaa, 0xd4, 0x15, 0xd5, + 0xa7, 0x87, 0x5d, 0x11, 0xe3, 0x22, 0xfd, 0xdd, 0xcd, 0xe5, 0xbe, 0x02, 0x0d, 0xc3, 0x45, 0xfe, + 0x1b, 0x17, 0xea, 0x77, 0x19, 0xaf, 0x4f, 0xf2, 0xfc, 0x2e, 0x7d, 0x49, 0xae, 0xdf, 0xf5, 0x79, + 0x17, 0xf2, 0x86, 0x04, 0x0b, 0xa9, 0x87, 0x72, 0xf5, 0xbe, 0x1a, 0x8e, 0x2f, 0xa8, 0x7e, 0x6d, + 0xc8, 0x05, 0x01, 0x0b, 0xaf, 0xc3, 0xf1, 0xb4, 0xd3, 0x9e, 0x5a, 0x1e, 0xbe, 0x24, 0x7c, 0xf5, + 0xa9, 0xe1, 0xe0, 0x03, 0xf2, 0x1a, 0x54, 0xc2, 0x93, 0x84, 0xb3, 0xb9, 0x19, 0x4c, 0x40, 0x55, + 0x2f, 0x0e, 0x02, 0x15, 0x10, 0xb8, 0x0d, 0x33, 0xf1, 0xc7, 0x32, 0xab, 0xb9, 0xcb, 0x23, 0x90, + 0xd5, 0xcb, 0x83, 0x42, 0x06, 0xc4, 0x2c, 0x98, 0xed, 0x79, 0x18, 0xf0, 0xd5, 0xbe, 0x38, 0x7c, + 0xd0, 0xea, 0x95, 0x81, 0x41, 0x03, 0x7a, 0x3f, 0x96, 0xe0, 0xa1, 0xac, 0x1b, 0xd2, 0xb5, 0xfe, + 0xe9, 0xb0, 0x77, 0x4d, 0x75, 0x7d, 0xf8, 0x35, 0x71, 0xd9, 0x75, 0xc3, 0x23, 0xd8, 0xbd, 0xce, + 0x5e, 0x65, 0xf7, 0x91, 0x3d, 0x0a, 0xda, 0x47, 0xf6, 0x28, 0x68, 0x74, 0xe3, 0xe2, 0x51, 0xce, + 0xc7, 0x45, 0xd2, 0xbe, 0xd4, 0x37, 0x29, 0x44, 0xc1, 0x73, 0x37, 0xae, 0x24, 0x78, 0x34, 0x6d, + 0x53, 0x8b, 0x74, 0xc5, 0x6c, 0x6e, 0xda, 0x8e, 0x02, 0xe6, 0xa6, 0xed, 0x28, 0x60, 0x96, 0x94, + 0x62, 0x9b, 0x18, 0x54, 0x4a, 0xb1, 0x59, 0x3c, 0x39, 0x14, 0x78, 0x40, 0xfb, 0x55, 0x98, 0xeb, + 0x3d, 0xad, 0xba, 0x90, 0x1b, 0xe6, 0x31, 0xd8, 0xea, 0xda, 0xe0, 0xb0, 0xd1, 0x74, 0x10, 0x1e, + 0x7d, 0x9c, 0xed, 0xcb, 0xf6, 0xb5, 0xc6, 0x8d, 0xea, 0xc5, 0x41, 0xa0, 0xa2, 0xe9, 0x2e, 0xad, + 0xc3, 0xcd, 0x4b, 0x77, 0x29, 0xf0, 0xb9, 0xe9, 0x2e, 0xaf, 0x5b, 0x7c, 0x1d, 0x8e, 0xa7, 0x35, + 0x5e, 0xb5, 0xbe, 0x32, 0xc4, 0xe0, 0x73, 0xc9, 0xe7, 0x75, 0x3a, 0x6c, 0xbf, 0x49, 0x6b, 0x4f, + 0x72, 0xf7, 0x9b, 0x94, 0x05, 0xf9, 0xfb, 0x4d, 0x4e, 0xb7, 0x50, 0x3d, 0xfa, 0x06, 0x2d, 0xe1, + 0x37, 0x9e, 0xfd, 0xf0, 0xd3, 0x65, 0xe9, 0xde, 0xa7, 0xcb, 0xd2, 0x3f, 0x3e, 0x5d, 0x96, 0xde, + 0xf9, 0x6c, 0xf9, 0xc8, 0xbd, 0xcf, 0x96, 0x8f, 0xfc, 0xed, 0xb3, 0xe5, 0x23, 0xdf, 0x13, 0x2f, + 0xf1, 0x05, 0xfe, 0x3b, 0x77, 0x5f, 0xab, 0x77, 0x1f, 0xaf, 0x93, 0xbb, 0x0e, 0xf6, 0xc2, 0x66, + 0x65, 0x6f, 0x9c, 0x95, 0xee, 0x8f, 0xff, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x91, 0x58, 0x13, + 0x1f, 0x33, 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 { + // Deposit into a V2 vault + Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + // Request withdrawal (queue-based) + RequestWithdrawal(ctx context.Context, in *MsgRequestWithdrawal, opts ...grpc.CallOption) (*MsgRequestWithdrawalResponse, error) + // Set yield preference for a user's position + SetYieldPreference(ctx context.Context, in *MsgSetYieldPreference, opts ...grpc.CallOption) (*MsgSetYieldPreferenceResponse, error) + // Process withdrawal queue (admin only) + ProcessWithdrawalQueue(ctx context.Context, in *MsgProcessWithdrawalQueue, opts ...grpc.CallOption) (*MsgProcessWithdrawalQueueResponse, error) + // Update vault configuration (authority only) + UpdateVaultConfig(ctx context.Context, in *MsgUpdateVaultConfig, opts ...grpc.CallOption) (*MsgUpdateVaultConfigResponse, error) + // Update module parameters (authority only) + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // Create a new cross-chain route (authority only) + CreateCrossChainRoute(ctx context.Context, in *MsgCreateCrossChainRoute, opts ...grpc.CallOption) (*MsgCreateCrossChainRouteResponse, error) + // Update an existing cross-chain route (authority only) + UpdateCrossChainRoute(ctx context.Context, in *MsgUpdateCrossChainRoute, opts ...grpc.CallOption) (*MsgUpdateCrossChainRouteResponse, error) + // Disable a cross-chain route (authority only) + DisableCrossChainRoute(ctx context.Context, in *MsgDisableCrossChainRoute, opts ...grpc.CallOption) (*MsgDisableCrossChainRouteResponse, error) + // Create a remote position (spec-aligned) + CreateRemotePosition(ctx context.Context, in *MsgCreateRemotePosition, opts ...grpc.CallOption) (*MsgCreateRemotePositionResponse, error) + // Close a remote position (spec-aligned) + CloseRemotePosition(ctx context.Context, in *MsgCloseRemotePosition, opts ...grpc.CallOption) (*MsgCloseRemotePositionResponse, error) + // Rebalance across remote positions (spec-aligned) + Rebalance(ctx context.Context, in *MsgRebalance, opts ...grpc.CallOption) (*MsgRebalanceResponse, error) + // Initiate remote deposit to another chain + RemoteDeposit(ctx context.Context, in *MsgRemoteDeposit, opts ...grpc.CallOption) (*MsgRemoteDepositResponse, error) + // Initiate remote withdrawal from another chain + RemoteWithdraw(ctx context.Context, in *MsgRemoteWithdraw, opts ...grpc.CallOption) (*MsgRemoteWithdrawResponse, error) + // Process in-flight position (system operation) + ProcessInFlightPosition(ctx context.Context, in *MsgProcessInFlightPosition, opts ...grpc.CallOption) (*MsgProcessInFlightPositionResponse, error) + // Register a new oracle for a position (authority only) + RegisterOracle(ctx context.Context, in *MsgRegisterOracle, opts ...grpc.CallOption) (*MsgRegisterOracleResponse, error) + // Update oracle configuration (authority only) + UpdateOracleConfig(ctx context.Context, in *MsgUpdateOracleConfig, opts ...grpc.CallOption) (*MsgUpdateOracleConfigResponse, error) + // Remove an oracle from the system (authority only) + RemoveOracle(ctx context.Context, in *MsgRemoveOracle, opts ...grpc.CallOption) (*MsgRemoveOracleResponse, error) + // Update global oracle parameters (authority only) + UpdateOracleParams(ctx context.Context, in *MsgUpdateOracleParams, opts ...grpc.CallOption) (*MsgUpdateOracleParamsResponse, error) + // Claim a processed/claimable withdrawal + ClaimWithdrawal(ctx context.Context, in *MsgClaimWithdrawal, opts ...grpc.CallOption) (*MsgClaimWithdrawalResponse, error) + // Update NAV (authority or authorized updater) + UpdateNAV(ctx context.Context, in *MsgUpdateNAV, opts ...grpc.CallOption) (*MsgUpdateNAVResponse, error) + // Handle stale inflight fund record (authority only) + HandleStaleInflight(ctx context.Context, in *MsgHandleStaleInflight, opts ...grpc.CallOption) (*MsgHandleStaleInflightResponse, error) + // Update deposit limits (authority only) + UpdateDepositLimits(ctx context.Context, in *MsgUpdateDepositLimits, opts ...grpc.CallOption) (*MsgUpdateDepositLimitsResponse, error) + // Cleanup stale inflight fund (authority only) + CleanupStaleInflight(ctx context.Context, in *MsgCleanupStaleInflight, opts ...grpc.CallOption) (*MsgCleanupStaleInflightResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) { + out := new(MsgDepositResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/Deposit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RequestWithdrawal(ctx context.Context, in *MsgRequestWithdrawal, opts ...grpc.CallOption) (*MsgRequestWithdrawalResponse, error) { + out := new(MsgRequestWithdrawalResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/RequestWithdrawal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetYieldPreference(ctx context.Context, in *MsgSetYieldPreference, opts ...grpc.CallOption) (*MsgSetYieldPreferenceResponse, error) { + out := new(MsgSetYieldPreferenceResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/SetYieldPreference", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ProcessWithdrawalQueue(ctx context.Context, in *MsgProcessWithdrawalQueue, opts ...grpc.CallOption) (*MsgProcessWithdrawalQueueResponse, error) { + out := new(MsgProcessWithdrawalQueueResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/ProcessWithdrawalQueue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateVaultConfig(ctx context.Context, in *MsgUpdateVaultConfig, opts ...grpc.CallOption) (*MsgUpdateVaultConfigResponse, error) { + out := new(MsgUpdateVaultConfigResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateVaultConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateCrossChainRoute(ctx context.Context, in *MsgCreateCrossChainRoute, opts ...grpc.CallOption) (*MsgCreateCrossChainRouteResponse, error) { + out := new(MsgCreateCrossChainRouteResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/CreateCrossChainRoute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateCrossChainRoute(ctx context.Context, in *MsgUpdateCrossChainRoute, opts ...grpc.CallOption) (*MsgUpdateCrossChainRouteResponse, error) { + out := new(MsgUpdateCrossChainRouteResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateCrossChainRoute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DisableCrossChainRoute(ctx context.Context, in *MsgDisableCrossChainRoute, opts ...grpc.CallOption) (*MsgDisableCrossChainRouteResponse, error) { + out := new(MsgDisableCrossChainRouteResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/DisableCrossChainRoute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateRemotePosition(ctx context.Context, in *MsgCreateRemotePosition, opts ...grpc.CallOption) (*MsgCreateRemotePositionResponse, error) { + out := new(MsgCreateRemotePositionResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/CreateRemotePosition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CloseRemotePosition(ctx context.Context, in *MsgCloseRemotePosition, opts ...grpc.CallOption) (*MsgCloseRemotePositionResponse, error) { + out := new(MsgCloseRemotePositionResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/CloseRemotePosition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Rebalance(ctx context.Context, in *MsgRebalance, opts ...grpc.CallOption) (*MsgRebalanceResponse, error) { + out := new(MsgRebalanceResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/Rebalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoteDeposit(ctx context.Context, in *MsgRemoteDeposit, opts ...grpc.CallOption) (*MsgRemoteDepositResponse, error) { + out := new(MsgRemoteDepositResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/RemoteDeposit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoteWithdraw(ctx context.Context, in *MsgRemoteWithdraw, opts ...grpc.CallOption) (*MsgRemoteWithdrawResponse, error) { + out := new(MsgRemoteWithdrawResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/RemoteWithdraw", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ProcessInFlightPosition(ctx context.Context, in *MsgProcessInFlightPosition, opts ...grpc.CallOption) (*MsgProcessInFlightPositionResponse, error) { + out := new(MsgProcessInFlightPositionResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/ProcessInFlightPosition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RegisterOracle(ctx context.Context, in *MsgRegisterOracle, opts ...grpc.CallOption) (*MsgRegisterOracleResponse, error) { + out := new(MsgRegisterOracleResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/RegisterOracle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateOracleConfig(ctx context.Context, in *MsgUpdateOracleConfig, opts ...grpc.CallOption) (*MsgUpdateOracleConfigResponse, error) { + out := new(MsgUpdateOracleConfigResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateOracleConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RemoveOracle(ctx context.Context, in *MsgRemoveOracle, opts ...grpc.CallOption) (*MsgRemoveOracleResponse, error) { + out := new(MsgRemoveOracleResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/RemoveOracle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateOracleParams(ctx context.Context, in *MsgUpdateOracleParams, opts ...grpc.CallOption) (*MsgUpdateOracleParamsResponse, error) { + out := new(MsgUpdateOracleParamsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateOracleParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimWithdrawal(ctx context.Context, in *MsgClaimWithdrawal, opts ...grpc.CallOption) (*MsgClaimWithdrawalResponse, error) { + out := new(MsgClaimWithdrawalResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/ClaimWithdrawal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateNAV(ctx context.Context, in *MsgUpdateNAV, opts ...grpc.CallOption) (*MsgUpdateNAVResponse, error) { + out := new(MsgUpdateNAVResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateNAV", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) HandleStaleInflight(ctx context.Context, in *MsgHandleStaleInflight, opts ...grpc.CallOption) (*MsgHandleStaleInflightResponse, error) { + out := new(MsgHandleStaleInflightResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/HandleStaleInflight", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateDepositLimits(ctx context.Context, in *MsgUpdateDepositLimits, opts ...grpc.CallOption) (*MsgUpdateDepositLimitsResponse, error) { + out := new(MsgUpdateDepositLimitsResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/UpdateDepositLimits", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CleanupStaleInflight(ctx context.Context, in *MsgCleanupStaleInflight, opts ...grpc.CallOption) (*MsgCleanupStaleInflightResponse, error) { + out := new(MsgCleanupStaleInflightResponse) + err := c.cc.Invoke(ctx, "/noble.dollar.vaults.v2.Msg/CleanupStaleInflight", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // Deposit into a V2 vault + Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + // Request withdrawal (queue-based) + RequestWithdrawal(context.Context, *MsgRequestWithdrawal) (*MsgRequestWithdrawalResponse, error) + // Set yield preference for a user's position + SetYieldPreference(context.Context, *MsgSetYieldPreference) (*MsgSetYieldPreferenceResponse, error) + // Process withdrawal queue (admin only) + ProcessWithdrawalQueue(context.Context, *MsgProcessWithdrawalQueue) (*MsgProcessWithdrawalQueueResponse, error) + // Update vault configuration (authority only) + UpdateVaultConfig(context.Context, *MsgUpdateVaultConfig) (*MsgUpdateVaultConfigResponse, error) + // Update module parameters (authority only) + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // Create a new cross-chain route (authority only) + CreateCrossChainRoute(context.Context, *MsgCreateCrossChainRoute) (*MsgCreateCrossChainRouteResponse, error) + // Update an existing cross-chain route (authority only) + UpdateCrossChainRoute(context.Context, *MsgUpdateCrossChainRoute) (*MsgUpdateCrossChainRouteResponse, error) + // Disable a cross-chain route (authority only) + DisableCrossChainRoute(context.Context, *MsgDisableCrossChainRoute) (*MsgDisableCrossChainRouteResponse, error) + // Create a remote position (spec-aligned) + CreateRemotePosition(context.Context, *MsgCreateRemotePosition) (*MsgCreateRemotePositionResponse, error) + // Close a remote position (spec-aligned) + CloseRemotePosition(context.Context, *MsgCloseRemotePosition) (*MsgCloseRemotePositionResponse, error) + // Rebalance across remote positions (spec-aligned) + Rebalance(context.Context, *MsgRebalance) (*MsgRebalanceResponse, error) + // Initiate remote deposit to another chain + RemoteDeposit(context.Context, *MsgRemoteDeposit) (*MsgRemoteDepositResponse, error) + // Initiate remote withdrawal from another chain + RemoteWithdraw(context.Context, *MsgRemoteWithdraw) (*MsgRemoteWithdrawResponse, error) + // Process in-flight position (system operation) + ProcessInFlightPosition(context.Context, *MsgProcessInFlightPosition) (*MsgProcessInFlightPositionResponse, error) + // Register a new oracle for a position (authority only) + RegisterOracle(context.Context, *MsgRegisterOracle) (*MsgRegisterOracleResponse, error) + // Update oracle configuration (authority only) + UpdateOracleConfig(context.Context, *MsgUpdateOracleConfig) (*MsgUpdateOracleConfigResponse, error) + // Remove an oracle from the system (authority only) + RemoveOracle(context.Context, *MsgRemoveOracle) (*MsgRemoveOracleResponse, error) + // Update global oracle parameters (authority only) + UpdateOracleParams(context.Context, *MsgUpdateOracleParams) (*MsgUpdateOracleParamsResponse, error) + // Claim a processed/claimable withdrawal + ClaimWithdrawal(context.Context, *MsgClaimWithdrawal) (*MsgClaimWithdrawalResponse, error) + // Update NAV (authority or authorized updater) + UpdateNAV(context.Context, *MsgUpdateNAV) (*MsgUpdateNAVResponse, error) + // Handle stale inflight fund record (authority only) + HandleStaleInflight(context.Context, *MsgHandleStaleInflight) (*MsgHandleStaleInflightResponse, error) + // Update deposit limits (authority only) + UpdateDepositLimits(context.Context, *MsgUpdateDepositLimits) (*MsgUpdateDepositLimitsResponse, error) + // Cleanup stale inflight fund (authority only) + CleanupStaleInflight(context.Context, *MsgCleanupStaleInflight) (*MsgCleanupStaleInflightResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deposit not implemented") +} +func (*UnimplementedMsgServer) RequestWithdrawal(ctx context.Context, req *MsgRequestWithdrawal) (*MsgRequestWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestWithdrawal not implemented") +} +func (*UnimplementedMsgServer) SetYieldPreference(ctx context.Context, req *MsgSetYieldPreference) (*MsgSetYieldPreferenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetYieldPreference not implemented") +} +func (*UnimplementedMsgServer) ProcessWithdrawalQueue(ctx context.Context, req *MsgProcessWithdrawalQueue) (*MsgProcessWithdrawalQueueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProcessWithdrawalQueue not implemented") +} +func (*UnimplementedMsgServer) UpdateVaultConfig(ctx context.Context, req *MsgUpdateVaultConfig) (*MsgUpdateVaultConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateVaultConfig not implemented") +} +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (*UnimplementedMsgServer) CreateCrossChainRoute(ctx context.Context, req *MsgCreateCrossChainRoute) (*MsgCreateCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCrossChainRoute not implemented") +} +func (*UnimplementedMsgServer) UpdateCrossChainRoute(ctx context.Context, req *MsgUpdateCrossChainRoute) (*MsgUpdateCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateCrossChainRoute not implemented") +} +func (*UnimplementedMsgServer) DisableCrossChainRoute(ctx context.Context, req *MsgDisableCrossChainRoute) (*MsgDisableCrossChainRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DisableCrossChainRoute not implemented") +} +func (*UnimplementedMsgServer) CreateRemotePosition(ctx context.Context, req *MsgCreateRemotePosition) (*MsgCreateRemotePositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateRemotePosition not implemented") +} +func (*UnimplementedMsgServer) CloseRemotePosition(ctx context.Context, req *MsgCloseRemotePosition) (*MsgCloseRemotePositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseRemotePosition not implemented") +} +func (*UnimplementedMsgServer) Rebalance(ctx context.Context, req *MsgRebalance) (*MsgRebalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rebalance not implemented") +} +func (*UnimplementedMsgServer) RemoteDeposit(ctx context.Context, req *MsgRemoteDeposit) (*MsgRemoteDepositResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoteDeposit not implemented") +} +func (*UnimplementedMsgServer) RemoteWithdraw(ctx context.Context, req *MsgRemoteWithdraw) (*MsgRemoteWithdrawResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoteWithdraw not implemented") +} +func (*UnimplementedMsgServer) ProcessInFlightPosition(ctx context.Context, req *MsgProcessInFlightPosition) (*MsgProcessInFlightPositionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProcessInFlightPosition not implemented") +} +func (*UnimplementedMsgServer) RegisterOracle(ctx context.Context, req *MsgRegisterOracle) (*MsgRegisterOracleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterOracle not implemented") +} +func (*UnimplementedMsgServer) UpdateOracleConfig(ctx context.Context, req *MsgUpdateOracleConfig) (*MsgUpdateOracleConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOracleConfig not implemented") +} +func (*UnimplementedMsgServer) RemoveOracle(ctx context.Context, req *MsgRemoveOracle) (*MsgRemoveOracleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveOracle not implemented") +} +func (*UnimplementedMsgServer) UpdateOracleParams(ctx context.Context, req *MsgUpdateOracleParams) (*MsgUpdateOracleParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOracleParams not implemented") +} +func (*UnimplementedMsgServer) ClaimWithdrawal(ctx context.Context, req *MsgClaimWithdrawal) (*MsgClaimWithdrawalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimWithdrawal not implemented") +} +func (*UnimplementedMsgServer) UpdateNAV(ctx context.Context, req *MsgUpdateNAV) (*MsgUpdateNAVResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNAV not implemented") +} +func (*UnimplementedMsgServer) HandleStaleInflight(ctx context.Context, req *MsgHandleStaleInflight) (*MsgHandleStaleInflightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HandleStaleInflight not implemented") +} +func (*UnimplementedMsgServer) UpdateDepositLimits(ctx context.Context, req *MsgUpdateDepositLimits) (*MsgUpdateDepositLimitsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDepositLimits not implemented") +} +func (*UnimplementedMsgServer) CleanupStaleInflight(ctx context.Context, req *MsgCleanupStaleInflight) (*MsgCleanupStaleInflightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CleanupStaleInflight not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_Deposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeposit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Deposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/Deposit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Deposit(ctx, req.(*MsgDeposit)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RequestWithdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestWithdrawal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RequestWithdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/RequestWithdrawal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RequestWithdrawal(ctx, req.(*MsgRequestWithdrawal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetYieldPreference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetYieldPreference) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetYieldPreference(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/SetYieldPreference", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetYieldPreference(ctx, req.(*MsgSetYieldPreference)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ProcessWithdrawalQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgProcessWithdrawalQueue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ProcessWithdrawalQueue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/ProcessWithdrawalQueue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ProcessWithdrawalQueue(ctx, req.(*MsgProcessWithdrawalQueue)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateVaultConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateVaultConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateVaultConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateVaultConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateVaultConfig(ctx, req.(*MsgUpdateVaultConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateCrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateCrossChainRoute) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateCrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/CreateCrossChainRoute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateCrossChainRoute(ctx, req.(*MsgCreateCrossChainRoute)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateCrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateCrossChainRoute) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateCrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateCrossChainRoute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateCrossChainRoute(ctx, req.(*MsgUpdateCrossChainRoute)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DisableCrossChainRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDisableCrossChainRoute) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DisableCrossChainRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/DisableCrossChainRoute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DisableCrossChainRoute(ctx, req.(*MsgDisableCrossChainRoute)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateRemotePosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateRemotePosition) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateRemotePosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/CreateRemotePosition", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateRemotePosition(ctx, req.(*MsgCreateRemotePosition)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CloseRemotePosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCloseRemotePosition) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CloseRemotePosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/CloseRemotePosition", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CloseRemotePosition(ctx, req.(*MsgCloseRemotePosition)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Rebalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRebalance) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Rebalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/Rebalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Rebalance(ctx, req.(*MsgRebalance)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoteDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoteDeposit) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoteDeposit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/RemoteDeposit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoteDeposit(ctx, req.(*MsgRemoteDeposit)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoteWithdraw_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoteWithdraw) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoteWithdraw(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/RemoteWithdraw", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoteWithdraw(ctx, req.(*MsgRemoteWithdraw)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ProcessInFlightPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgProcessInFlightPosition) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ProcessInFlightPosition(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/ProcessInFlightPosition", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ProcessInFlightPosition(ctx, req.(*MsgProcessInFlightPosition)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RegisterOracle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRegisterOracle) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RegisterOracle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/RegisterOracle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RegisterOracle(ctx, req.(*MsgRegisterOracle)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateOracleConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateOracleConfig) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateOracleConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateOracleConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateOracleConfig(ctx, req.(*MsgUpdateOracleConfig)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RemoveOracle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveOracle) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RemoveOracle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/RemoveOracle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveOracle(ctx, req.(*MsgRemoveOracle)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateOracleParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateOracleParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateOracleParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateOracleParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateOracleParams(ctx, req.(*MsgUpdateOracleParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimWithdrawal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimWithdrawal) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimWithdrawal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/ClaimWithdrawal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimWithdrawal(ctx, req.(*MsgClaimWithdrawal)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateNAV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateNAV) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateNAV(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateNAV", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateNAV(ctx, req.(*MsgUpdateNAV)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_HandleStaleInflight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgHandleStaleInflight) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).HandleStaleInflight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/HandleStaleInflight", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).HandleStaleInflight(ctx, req.(*MsgHandleStaleInflight)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateDepositLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateDepositLimits) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateDepositLimits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/UpdateDepositLimits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateDepositLimits(ctx, req.(*MsgUpdateDepositLimits)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CleanupStaleInflight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCleanupStaleInflight) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CleanupStaleInflight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/noble.dollar.vaults.v2.Msg/CleanupStaleInflight", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CleanupStaleInflight(ctx, req.(*MsgCleanupStaleInflight)) + } + return interceptor(ctx, in, info, handler) +} + +var Msg_serviceDesc = _Msg_serviceDesc +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "noble.dollar.vaults.v2.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Deposit", + Handler: _Msg_Deposit_Handler, + }, + { + MethodName: "RequestWithdrawal", + Handler: _Msg_RequestWithdrawal_Handler, + }, + { + MethodName: "SetYieldPreference", + Handler: _Msg_SetYieldPreference_Handler, + }, + { + MethodName: "ProcessWithdrawalQueue", + Handler: _Msg_ProcessWithdrawalQueue_Handler, + }, + { + MethodName: "UpdateVaultConfig", + Handler: _Msg_UpdateVaultConfig_Handler, + }, + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "CreateCrossChainRoute", + Handler: _Msg_CreateCrossChainRoute_Handler, + }, + { + MethodName: "UpdateCrossChainRoute", + Handler: _Msg_UpdateCrossChainRoute_Handler, + }, + { + MethodName: "DisableCrossChainRoute", + Handler: _Msg_DisableCrossChainRoute_Handler, + }, + { + MethodName: "CreateRemotePosition", + Handler: _Msg_CreateRemotePosition_Handler, + }, + { + MethodName: "CloseRemotePosition", + Handler: _Msg_CloseRemotePosition_Handler, + }, + { + MethodName: "Rebalance", + Handler: _Msg_Rebalance_Handler, + }, + { + MethodName: "RemoteDeposit", + Handler: _Msg_RemoteDeposit_Handler, + }, + { + MethodName: "RemoteWithdraw", + Handler: _Msg_RemoteWithdraw_Handler, + }, + { + MethodName: "ProcessInFlightPosition", + Handler: _Msg_ProcessInFlightPosition_Handler, + }, + { + MethodName: "RegisterOracle", + Handler: _Msg_RegisterOracle_Handler, + }, + { + MethodName: "UpdateOracleConfig", + Handler: _Msg_UpdateOracleConfig_Handler, + }, + { + MethodName: "RemoveOracle", + Handler: _Msg_RemoveOracle_Handler, + }, + { + MethodName: "UpdateOracleParams", + Handler: _Msg_UpdateOracleParams_Handler, + }, + { + MethodName: "ClaimWithdrawal", + Handler: _Msg_ClaimWithdrawal_Handler, + }, + { + MethodName: "UpdateNAV", + Handler: _Msg_UpdateNAV_Handler, + }, + { + MethodName: "HandleStaleInflight", + Handler: _Msg_HandleStaleInflight_Handler, + }, + { + MethodName: "UpdateDepositLimits", + Handler: _Msg_UpdateDepositLimits_Handler, + }, + { + MethodName: "CleanupStaleInflight", + Handler: _Msg_CleanupStaleInflight_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "noble/dollar/vaults/v2/tx.proto", +} + +func (m *MsgDeposit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReceiveYieldOverride { + i-- + if m.ReceiveYieldOverride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.ReceiveYield { + i-- + if m.ReceiveYield { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + 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.Depositor) > 0 { + i -= len(m.Depositor) + copy(dAtA[i:], m.Depositor) + i = encodeVarintTx(dAtA, i, uint64(len(m.Depositor))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.AmountDeposited.Size() + i -= size + if _, err := m.AmountDeposited.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetYieldPreference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetYieldPreference) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetYieldPreference) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReceiveYield { + i-- + if m.ReceiveYield { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + 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 *MsgSetYieldPreferenceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetYieldPreferenceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetYieldPreferenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NewPreference { + i-- + if m.NewPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.PreviousPreference { + i-- + if m.PreviousPreference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateVaultConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateVaultConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateVaultConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateVaultConfigResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateVaultConfigResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateVaultConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewConfig) > 0 { + i -= len(m.NewConfig) + copy(dAtA[i:], m.NewConfig) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewConfig))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousConfig) > 0 { + i -= len(m.PreviousConfig) + copy(dAtA[i:], m.PreviousConfig) + i = encodeVarintTx(dAtA, i, uint64(len(m.PreviousConfig))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) 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 = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCreateCrossChainRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateCrossChainRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateCrossChainRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Route.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateCrossChainRouteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateCrossChainRouteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateCrossChainRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateCrossChainRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateCrossChainRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateCrossChainRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Route.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateCrossChainRouteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateCrossChainRouteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateCrossChainRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewConfig) > 0 { + i -= len(m.NewConfig) + copy(dAtA[i:], m.NewConfig) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewConfig))) + i-- + dAtA[i] = 0x1a + } + if len(m.PreviousConfig) > 0 { + i -= len(m.PreviousConfig) + copy(dAtA[i:], m.PreviousConfig) + i = encodeVarintTx(dAtA, i, uint64(len(m.PreviousConfig))) + i-- + dAtA[i] = 0x12 + } + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgDisableCrossChainRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDisableCrossChainRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDisableCrossChainRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDisableCrossChainRouteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDisableCrossChainRouteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDisableCrossChainRouteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AffectedPositions != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AffectedPositions)) + i-- + dAtA[i] = 0x10 + } + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoteDeposit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoteDeposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoteDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.GasPrice.Size() + i -= size + if _, err := m.GasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if m.GasLimit != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.GasLimit)) + i-- + dAtA[i] = 0x30 + } + { + size := m.MinShares.Size() + i -= size + if _, err := m.MinShares.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.RemoteAddress) > 0 { + i -= len(m.RemoteAddress) + copy(dAtA[i:], m.RemoteAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.RemoteAddress))) + 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 m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Depositor) > 0 { + i -= len(m.Depositor) + copy(dAtA[i:], m.Depositor) + i = encodeVarintTx(dAtA, i, uint64(len(m.Depositor))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoteDepositResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoteDepositResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoteDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProviderTracking != nil { + { + size, err := m.ProviderTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedCompletion, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion):]) + if err6 != nil { + return 0, err6 + } + i -= n6 + i = encodeVarintTx(dAtA, i, uint64(n6)) + i-- + dAtA[i] = 0x2a + { + size := m.AmountSent.Size() + i -= size + if _, err := m.AmountSent.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.SharesAllocated.Size() + i -= size + if _, err := m.SharesAllocated.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if m.Nonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoteWithdraw) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoteWithdraw) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoteWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.GasPrice.Size() + i -= size + if _, err := m.GasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if m.GasLimit != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.GasLimit)) + i-- + dAtA[i] = 0x28 + } + { + size := m.MinAmount.Size() + i -= size + if _, err := m.MinAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.Shares.Size() + i -= size + if _, err := m.Shares.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Withdrawer) > 0 { + i -= len(m.Withdrawer) + copy(dAtA[i:], m.Withdrawer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Withdrawer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoteWithdrawResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoteWithdrawResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoteWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProviderTracking != nil { + { + size, err := m.ProviderTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedCompletion, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion):]) + if err8 != nil { + return 0, err8 + } + i -= n8 + i = encodeVarintTx(dAtA, i, uint64(n8)) + i-- + dAtA[i] = 0x2a + { + size := m.ExpectedAmount.Size() + i -= size + if _, err := m.ExpectedAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.SharesWithdrawn.Size() + i -= size + if _, err := m.SharesWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if m.Nonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgProcessInFlightPosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgProcessInFlightPosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgProcessInFlightPosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProviderTracking != nil { + { + size, err := m.ProviderTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.ErrorMessage) > 0 { + i -= len(m.ErrorMessage) + copy(dAtA[i:], m.ErrorMessage) + i = encodeVarintTx(dAtA, i, uint64(len(m.ErrorMessage))) + i-- + dAtA[i] = 0x2a + } + { + size := m.ResultAmount.Size() + i -= size + if _, err := m.ResultAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.ResultStatus != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ResultStatus)) + i-- + dAtA[i] = 0x18 + } + if m.Nonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x10 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgProcessInFlightPositionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgProcessInFlightPositionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgProcessInFlightPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.SharesAffected.Size() + i -= size + if _, err := m.SharesAffected.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.AmountProcessed.Size() + i -= size + if _, err := m.AmountProcessed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.FinalStatus != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.FinalStatus)) + i-- + dAtA[i] = 0x10 + } + if m.Nonce != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Nonce)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgRequestWithdrawal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRequestWithdrawal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRequestWithdrawal) 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 = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintTx(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRequestWithdrawalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRequestWithdrawalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRequestWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n10, err10 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedClaimableAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedClaimableAt):]) + if err10 != nil { + return 0, err10 + } + i -= n10 + i = encodeVarintTx(dAtA, i, uint64(n10)) + i-- + dAtA[i] = 0x22 + { + size := m.YieldPortion.Size() + i -= size + if _, err := m.YieldPortion.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.AmountLocked.Size() + i -= size + if _, err := m.AmountLocked.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintTx(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgProcessWithdrawalQueue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgProcessWithdrawalQueue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgProcessWithdrawalQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxRequests != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.MaxRequests)) + i-- + dAtA[i] = 0x10 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgProcessWithdrawalQueueResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgProcessWithdrawalQueueResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgProcessWithdrawalQueueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RemainingRequests != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RemainingRequests)) + i-- + dAtA[i] = 0x20 + } + { + size := m.TotalAmountDistributed.Size() + i -= size + if _, err := m.TotalAmountDistributed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalAmountProcessed.Size() + i -= size + if _, err := m.TotalAmountProcessed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.RequestsProcessed != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RequestsProcessed)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateRemotePosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateRemotePosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateRemotePosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MinSharesOut.Size() + i -= size + if _, err := m.MinSharesOut.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + 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] = 0x22 + if m.ChainId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ChainId)) + i-- + dAtA[i] = 0x18 + } + if len(m.VaultAddress) > 0 { + i -= len(m.VaultAddress) + copy(dAtA[i:], m.VaultAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.VaultAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateRemotePositionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateRemotePositionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateRemotePositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n11, err11 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedCompletion, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion):]) + if err11 != nil { + return 0, err11 + } + i -= n11 + i = encodeVarintTx(dAtA, i, uint64(n11)) + i-- + dAtA[i] = 0x1a + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x10 + } + if m.PositionId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgCloseRemotePosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCloseRemotePosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCloseRemotePosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.PartialAmount.Size() + i -= size + if _, err := m.PartialAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.PositionId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCloseRemotePositionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCloseRemotePositionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCloseRemotePositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n12, err12 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ExpectedCompletion, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion):]) + if err12 != nil { + return 0, err12 + } + i -= n12 + i = encodeVarintTx(dAtA, i, uint64(n12)) + i-- + dAtA[i] = 0x1a + if m.Initiated { + i-- + if m.Initiated { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.PositionId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TargetAllocation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TargetAllocation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TargetAllocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TargetPercentage != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TargetPercentage)) + i-- + dAtA[i] = 0x10 + } + if m.PositionId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.PositionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgRebalance) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRebalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRebalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TargetAllocations) > 0 { + for iNdEx := len(m.TargetAllocations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TargetAllocations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRebalanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRebalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRebalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Summary) > 0 { + i -= len(m.Summary) + copy(dAtA[i:], m.Summary) + i = encodeVarintTx(dAtA, i, uint64(len(m.Summary))) + i-- + dAtA[i] = 0x12 + } + if m.OperationsInitiated != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.OperationsInitiated)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimWithdrawal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimWithdrawal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintTx(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Claimer) > 0 { + i -= len(m.Claimer) + copy(dAtA[i:], m.Claimer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Claimer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimWithdrawalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgClaimWithdrawalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.FeesDeducted.Size() + i -= size + if _, err := m.FeesDeducted.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.YieldAmount.Size() + i -= size + if _, err := m.YieldAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PrincipalAmount.Size() + i -= size + if _, err := m.PrincipalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.AmountClaimed.Size() + i -= size + if _, err := m.AmountClaimed.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgUpdateNAV) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateNAV) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateNAV) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CircuitBreakerActive { + i-- + if m.CircuitBreakerActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.ChangeBps != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ChangeBps)) + i-- + dAtA[i] = 0x20 + } + { + size := m.PreviousNav.Size() + i -= size + if _, err := m.PreviousNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.NewNav.Size() + i -= size + if _, err := m.NewNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateNAVResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateNAVResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateNAVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CircuitBreakerActive { + i-- + if m.CircuitBreakerActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + n13, err13 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err13 != nil { + return 0, err13 + } + i -= n13 + i = encodeVarintTx(dAtA, i, uint64(n13)) + i-- + dAtA[i] = 0x1a + if m.ChangeBps != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ChangeBps)) + i-- + dAtA[i] = 0x10 + } + { + size := m.AppliedNav.Size() + i -= size + if _, err := m.AppliedNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgHandleStaleInflight) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgHandleStaleInflight) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgHandleStaleInflight) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.NewStatus != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NewStatus)) + i-- + dAtA[i] = 0x18 + } + if len(m.InflightId) > 0 { + i -= len(m.InflightId) + copy(dAtA[i:], m.InflightId) + i = encodeVarintTx(dAtA, i, uint64(len(m.InflightId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgHandleStaleInflightResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgHandleStaleInflightResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgHandleStaleInflightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n14, err14 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.HandledAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.HandledAt):]) + if err14 != nil { + return 0, err14 + } + i -= n14 + i = encodeVarintTx(dAtA, i, uint64(n14)) + i-- + dAtA[i] = 0x1a + if m.FinalStatus != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.FinalStatus)) + i-- + dAtA[i] = 0x10 + } + if len(m.InflightId) > 0 { + i -= len(m.InflightId) + copy(dAtA[i:], m.InflightId) + i = encodeVarintTx(dAtA, i, uint64(len(m.InflightId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateDepositLimits) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateDepositLimits) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDepositLimits) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.Limits.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateDepositLimitsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateDepositLimitsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDepositLimitsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewLimits) > 0 { + i -= len(m.NewLimits) + copy(dAtA[i:], m.NewLimits) + i = encodeVarintTx(dAtA, i, uint64(len(m.NewLimits))) + i-- + dAtA[i] = 0x12 + } + if len(m.PreviousLimits) > 0 { + i -= len(m.PreviousLimits) + copy(dAtA[i:], m.PreviousLimits) + i = encodeVarintTx(dAtA, i, uint64(len(m.PreviousLimits))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCleanupStaleInflight) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCleanupStaleInflight) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCleanupStaleInflight) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCleanupStaleInflightResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCleanupStaleInflightResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCleanupStaleInflightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n16, err16 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CleanedAt, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CleanedAt):]) + if err16 != nil { + return 0, err16 + } + i -= n16 + i = encodeVarintTx(dAtA, i, uint64(n16)) + i-- + dAtA[i] = 0x22 + if m.RouteId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.RouteId)) + i-- + dAtA[i] = 0x18 + } + { + size := m.AmountReturned.Size() + i -= size + if _, err := m.AmountReturned.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.TransactionId) > 0 { + i -= len(m.TransactionId) + copy(dAtA[i:], m.TransactionId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TransactionId))) + i-- + dAtA[i] = 0xa + } + 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 *MsgDeposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Depositor) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + if m.ReceiveYield { + n += 2 + } + if m.ReceiveYieldOverride { + n += 2 + } + return n +} + +func (m *MsgDepositResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.AmountDeposited.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetYieldPreference) 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)) + } + if m.ReceiveYield { + n += 2 + } + return n +} + +func (m *MsgSetYieldPreferenceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PreviousPreference { + n += 2 + } + if m.NewPreference { + n += 2 + } + return n +} + +func (m *MsgUpdateVaultConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Config.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateVaultConfigResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousConfig) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewConfig) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCreateCrossChainRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Route.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCreateCrossChainRouteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + return n +} + +func (m *MsgUpdateCrossChainRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = m.Route.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateCrossChainRouteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = len(m.PreviousConfig) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewConfig) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDisableCrossChainRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDisableCrossChainRouteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + if m.AffectedPositions != 0 { + n += 1 + sovTx(uint64(m.AffectedPositions)) + } + return n +} + +func (m *MsgRemoteDeposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Depositor) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.RemoteAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.MinShares.Size() + n += 1 + l + sovTx(uint64(l)) + if m.GasLimit != 0 { + n += 1 + sovTx(uint64(m.GasLimit)) + } + l = m.GasPrice.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgRemoteDepositResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovTx(uint64(m.Nonce)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = m.SharesAllocated.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.AmountSent.Size() + n += 1 + l + sovTx(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion) + n += 1 + l + sovTx(uint64(l)) + if m.ProviderTracking != nil { + l = m.ProviderTracking.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRemoteWithdraw) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Withdrawer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = m.Shares.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.MinAmount.Size() + n += 1 + l + sovTx(uint64(l)) + if m.GasLimit != 0 { + n += 1 + sovTx(uint64(m.GasLimit)) + } + l = m.GasPrice.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgRemoteWithdrawResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovTx(uint64(m.Nonce)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = m.SharesWithdrawn.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.ExpectedAmount.Size() + n += 1 + l + sovTx(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion) + n += 1 + l + sovTx(uint64(l)) + if m.ProviderTracking != nil { + l = m.ProviderTracking.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgProcessInFlightPosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Nonce != 0 { + n += 1 + sovTx(uint64(m.Nonce)) + } + if m.ResultStatus != 0 { + n += 1 + sovTx(uint64(m.ResultStatus)) + } + l = m.ResultAmount.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.ErrorMessage) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.ProviderTracking != nil { + l = m.ProviderTracking.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgProcessInFlightPositionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nonce != 0 { + n += 1 + sovTx(uint64(m.Nonce)) + } + if m.FinalStatus != 0 { + n += 1 + sovTx(uint64(m.FinalStatus)) + } + l = m.AmountProcessed.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.SharesAffected.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgRequestWithdrawal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgRequestWithdrawalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.AmountLocked.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.YieldPortion.Size() + n += 1 + l + sovTx(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedClaimableAt) + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgProcessWithdrawalQueue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.MaxRequests != 0 { + n += 1 + sovTx(uint64(m.MaxRequests)) + } + return n +} + +func (m *MsgProcessWithdrawalQueueResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RequestsProcessed != 0 { + n += 1 + sovTx(uint64(m.RequestsProcessed)) + } + l = m.TotalAmountProcessed.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.TotalAmountDistributed.Size() + n += 1 + l + sovTx(uint64(l)) + if m.RemainingRequests != 0 { + n += 1 + sovTx(uint64(m.RemainingRequests)) + } + return n +} + +func (m *MsgCreateRemotePosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.VaultAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.ChainId != 0 { + n += 1 + sovTx(uint64(m.ChainId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.MinSharesOut.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCreateRemotePositionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovTx(uint64(m.PositionId)) + } + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion) + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCloseRemotePosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.PositionId != 0 { + n += 1 + sovTx(uint64(m.PositionId)) + } + l = m.PartialAmount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCloseRemotePositionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovTx(uint64(m.PositionId)) + } + if m.Initiated { + n += 2 + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ExpectedCompletion) + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *TargetAllocation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != 0 { + n += 1 + sovTx(uint64(m.PositionId)) + } + if m.TargetPercentage != 0 { + n += 1 + sovTx(uint64(m.TargetPercentage)) + } + return n +} + +func (m *MsgRebalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TargetAllocations) > 0 { + for _, e := range m.TargetAllocations { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgRebalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OperationsInitiated != 0 { + n += 1 + sovTx(uint64(m.OperationsInitiated)) + } + l = len(m.Summary) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClaimWithdrawal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Claimer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClaimWithdrawalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.AmountClaimed.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.PrincipalAmount.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.YieldAmount.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.FeesDeducted.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateNAV) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.NewNav.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.PreviousNav.Size() + n += 1 + l + sovTx(uint64(l)) + if m.ChangeBps != 0 { + n += 1 + sovTx(uint64(m.ChangeBps)) + } + if m.CircuitBreakerActive { + n += 2 + } + return n +} + +func (m *MsgUpdateNAVResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.AppliedNav.Size() + n += 1 + l + sovTx(uint64(l)) + if m.ChangeBps != 0 { + n += 1 + sovTx(uint64(m.ChangeBps)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovTx(uint64(l)) + if m.CircuitBreakerActive { + n += 2 + } + return n +} + +func (m *MsgHandleStaleInflight) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.InflightId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.NewStatus != 0 { + n += 1 + sovTx(uint64(m.NewStatus)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgHandleStaleInflightResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.InflightId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.FinalStatus != 0 { + n += 1 + sovTx(uint64(m.FinalStatus)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.HandledAt) + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateDepositLimits) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Limits.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateDepositLimitsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousLimits) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NewLimits) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCleanupStaleInflight) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCleanupStaleInflightResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TransactionId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.AmountReturned.Size() + n += 1 + l + sovTx(uint64(l)) + if m.RouteId != 0 { + n += 1 + sovTx(uint64(m.RouteId)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CleanedAt) + n += 1 + l + sovTx(uint64(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 *MsgDeposit) Unmarshal(dAtA []byte) 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: MsgDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depositor", 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.Depositor = 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceiveYield", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceiveYield = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceiveYieldOverride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceiveYieldOverride = bool(v != 0) + 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 *MsgDepositResponse) Unmarshal(dAtA []byte) 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: MsgDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountDeposited", 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.AmountDeposited.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 *MsgSetYieldPreference) Unmarshal(dAtA []byte) 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: MsgSetYieldPreference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetYieldPreference: 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 + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceiveYield", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceiveYield = bool(v != 0) + 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 *MsgSetYieldPreferenceResponse) Unmarshal(dAtA []byte) 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: MsgSetYieldPreferenceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetYieldPreferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousPreference", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreviousPreference = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewPreference", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NewPreference = bool(v != 0) + 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 *MsgUpdateVaultConfig) Unmarshal(dAtA []byte) 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: MsgUpdateVaultConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateVaultConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", 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 + } + if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = 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 *MsgUpdateVaultConfigResponse) Unmarshal(dAtA []byte) 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: MsgUpdateVaultConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateVaultConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousConfig", 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.PreviousConfig = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewConfig", 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.NewConfig = 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 *MsgUpdateParams) Unmarshal(dAtA []byte) 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", 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 + } + if err := m.Params.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 *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: 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 *MsgCreateCrossChainRoute) Unmarshal(dAtA []byte) 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: MsgCreateCrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateCrossChainRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", 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 + } + if err := m.Route.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 *MsgCreateCrossChainRouteResponse) Unmarshal(dAtA []byte) 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: MsgCreateCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(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 *MsgUpdateCrossChainRoute) Unmarshal(dAtA []byte) 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: MsgUpdateCrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateCrossChainRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", 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 + } + if err := m.Route.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 *MsgUpdateCrossChainRouteResponse) Unmarshal(dAtA []byte) 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: MsgUpdateCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousConfig", 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.PreviousConfig = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewConfig", 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.NewConfig = 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 *MsgDisableCrossChainRoute) Unmarshal(dAtA []byte) 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: MsgDisableCrossChainRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDisableCrossChainRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = 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 *MsgDisableCrossChainRouteResponse) Unmarshal(dAtA []byte) 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: MsgDisableCrossChainRouteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDisableCrossChainRouteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AffectedPositions", wireType) + } + m.AffectedPositions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AffectedPositions |= int64(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 *MsgRemoteDeposit) Unmarshal(dAtA []byte) 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: MsgRemoteDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoteDeposit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depositor", 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.Depositor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 RemoteAddress", 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.RemoteAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinShares", 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.MinShares.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) + } + m.GasLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", 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.GasPrice.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 *MsgRemoteDepositResponse) Unmarshal(dAtA []byte) 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: MsgRemoteDepositResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoteDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesAllocated", 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.SharesAllocated.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountSent", 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.AmountSent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedCompletion", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedCompletion, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", 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 + } + if m.ProviderTracking == nil { + m.ProviderTracking = &ProviderTrackingInfo{} + } + if err := m.ProviderTracking.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 *MsgRemoteWithdraw) Unmarshal(dAtA []byte) 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: MsgRemoteWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoteWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawer", 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.Withdrawer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shares", 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.Shares.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinAmount", 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.MinAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) + } + m.GasLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", 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.GasPrice.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 *MsgRemoteWithdrawResponse) Unmarshal(dAtA []byte) 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: MsgRemoteWithdrawResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoteWithdrawResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesWithdrawn", 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.SharesWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedAmount", 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.ExpectedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedCompletion", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedCompletion, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", 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 + } + if m.ProviderTracking == nil { + m.ProviderTracking = &ProviderTrackingInfo{} + } + if err := m.ProviderTracking.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 *MsgProcessInFlightPosition) Unmarshal(dAtA []byte) 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: MsgProcessInFlightPosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgProcessInFlightPosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultStatus", wireType) + } + m.ResultStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResultStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultAmount", 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.ResultAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", 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.ErrorMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderTracking", 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 + } + if m.ProviderTracking == nil { + m.ProviderTracking = &ProviderTrackingInfo{} + } + if err := m.ProviderTracking.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 *MsgProcessInFlightPositionResponse) Unmarshal(dAtA []byte) 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: MsgProcessInFlightPositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgProcessInFlightPositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + m.Nonce = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nonce |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalStatus", wireType) + } + m.FinalStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FinalStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountProcessed", 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.AmountProcessed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SharesAffected", 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.SharesAffected.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 *MsgRequestWithdrawal) Unmarshal(dAtA []byte) 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: MsgRequestWithdrawal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRequestWithdrawal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", 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.Requester = 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 + 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 *MsgRequestWithdrawalResponse) Unmarshal(dAtA []byte) 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: MsgRequestWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRequestWithdrawalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", 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.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountLocked", 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.AmountLocked.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldPortion", 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.YieldPortion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedClaimableAt", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedClaimableAt, 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 *MsgProcessWithdrawalQueue) Unmarshal(dAtA []byte) 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: MsgProcessWithdrawalQueue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgProcessWithdrawalQueue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRequests", wireType) + } + m.MaxRequests = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxRequests |= int32(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 *MsgProcessWithdrawalQueueResponse) Unmarshal(dAtA []byte) 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: MsgProcessWithdrawalQueueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgProcessWithdrawalQueueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestsProcessed", wireType) + } + m.RequestsProcessed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestsProcessed |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountProcessed", 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.TotalAmountProcessed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountDistributed", 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.TotalAmountDistributed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemainingRequests", wireType) + } + m.RemainingRequests = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RemainingRequests |= int32(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 *MsgCreateRemotePosition) Unmarshal(dAtA []byte) 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: MsgCreateRemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateRemotePosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VaultAddress", 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.VaultAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + m.ChainId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChainId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 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 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinSharesOut", 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.MinSharesOut.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 *MsgCreateRemotePositionResponse) Unmarshal(dAtA []byte) 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: MsgCreateRemotePositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateRemotePositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedCompletion", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedCompletion, 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 *MsgCloseRemotePosition) Unmarshal(dAtA []byte) 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: MsgCloseRemotePosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCloseRemotePosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartialAmount", 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.PartialAmount.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 *MsgCloseRemotePositionResponse) Unmarshal(dAtA []byte) 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: MsgCloseRemotePositionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCloseRemotePositionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Initiated", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Initiated = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedCompletion", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ExpectedCompletion, 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 *TargetAllocation) Unmarshal(dAtA []byte) 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: TargetAllocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TargetAllocation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + m.PositionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PositionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetPercentage", wireType) + } + m.TargetPercentage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TargetPercentage |= uint32(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 *MsgRebalance) Unmarshal(dAtA []byte) 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: MsgRebalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRebalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetAllocations", 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.TargetAllocations = append(m.TargetAllocations, &TargetAllocation{}) + if err := m.TargetAllocations[len(m.TargetAllocations)-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 *MsgRebalanceResponse) Unmarshal(dAtA []byte) 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: MsgRebalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRebalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OperationsInitiated", wireType) + } + m.OperationsInitiated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OperationsInitiated |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Summary", 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.Summary = 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 *MsgClaimWithdrawal) Unmarshal(dAtA []byte) 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: MsgClaimWithdrawal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimWithdrawal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Claimer", 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.Claimer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", 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.RequestId = 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 *MsgClaimWithdrawalResponse) Unmarshal(dAtA []byte) 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: MsgClaimWithdrawalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimWithdrawalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountClaimed", 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.AmountClaimed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrincipalAmount", 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.PrincipalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldAmount", 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.YieldAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeesDeducted", 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.FeesDeducted.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 *MsgUpdateNAV) Unmarshal(dAtA []byte) 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: MsgUpdateNAV: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateNAV: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewNav", 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.NewNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousNav", 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.PreviousNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + m.ChangeBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CircuitBreakerActive = bool(v != 0) + 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 *MsgUpdateNAVResponse) Unmarshal(dAtA []byte) 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: MsgUpdateNAVResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateNAVResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AppliedNav", 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.AppliedNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChangeBps", wireType) + } + m.ChangeBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChangeBps |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CircuitBreakerActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CircuitBreakerActive = bool(v != 0) + 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 *MsgHandleStaleInflight) Unmarshal(dAtA []byte) 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: MsgHandleStaleInflight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgHandleStaleInflight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InflightId", 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.InflightId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewStatus", wireType) + } + m.NewStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = 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 *MsgHandleStaleInflightResponse) Unmarshal(dAtA []byte) 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: MsgHandleStaleInflightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgHandleStaleInflightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InflightId", 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.InflightId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalStatus", wireType) + } + m.FinalStatus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FinalStatus |= InflightStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HandledAt", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.HandledAt, 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 *MsgUpdateDepositLimits) Unmarshal(dAtA []byte) 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: MsgUpdateDepositLimits: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDepositLimits: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Limits", 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 + } + if err := m.Limits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = 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 *MsgUpdateDepositLimitsResponse) Unmarshal(dAtA []byte) 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: MsgUpdateDepositLimitsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDepositLimitsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousLimits", 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.PreviousLimits = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewLimits", 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.NewLimits = 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 *MsgCleanupStaleInflight) Unmarshal(dAtA []byte) 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: MsgCleanupStaleInflight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCleanupStaleInflight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = 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 *MsgCleanupStaleInflightResponse) Unmarshal(dAtA []byte) 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: MsgCleanupStaleInflightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCleanupStaleInflightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", 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.TransactionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountReturned", 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.AmountReturned.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteId", wireType) + } + m.RouteId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CleanedAt", 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 + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CleanedAt, 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 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/types/vaults/v2/vaults.pb.go b/types/vaults/v2/vaults.pb.go new file mode 100644 index 00000000..536501e1 --- /dev/null +++ b/types/vaults/v2/vaults.pb.go @@ -0,0 +1,4065 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: noble/dollar/vaults/v2/vaults.proto + +package v2 + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" + _ "google.golang.org/protobuf/types/known/timestamppb" + 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 + +// WithdrawalRequestStatus represents the status of a withdrawal request +type WithdrawalRequestStatus int32 + +const ( + // Request is pending (waiting for unlock time) + WITHDRAWAL_REQUEST_STATUS_PENDING WithdrawalRequestStatus = 0 + // Request is ready to be processed + WITHDRAWAL_REQUEST_STATUS_READY WithdrawalRequestStatus = 1 + // Request has been processed + WITHDRAWAL_REQUEST_STATUS_PROCESSED WithdrawalRequestStatus = 2 + // Request was cancelled by user + WITHDRAWAL_REQUEST_STATUS_CANCELLED WithdrawalRequestStatus = 3 + // Request expired without processing + WITHDRAWAL_REQUEST_STATUS_EXPIRED WithdrawalRequestStatus = 4 +) + +var WithdrawalRequestStatus_name = map[int32]string{ + 0: "WITHDRAWAL_REQUEST_STATUS_PENDING", + 1: "WITHDRAWAL_REQUEST_STATUS_READY", + 2: "WITHDRAWAL_REQUEST_STATUS_PROCESSED", + 3: "WITHDRAWAL_REQUEST_STATUS_CANCELLED", + 4: "WITHDRAWAL_REQUEST_STATUS_EXPIRED", +} + +var WithdrawalRequestStatus_value = map[string]int32{ + "WITHDRAWAL_REQUEST_STATUS_PENDING": 0, + "WITHDRAWAL_REQUEST_STATUS_READY": 1, + "WITHDRAWAL_REQUEST_STATUS_PROCESSED": 2, + "WITHDRAWAL_REQUEST_STATUS_CANCELLED": 3, + "WITHDRAWAL_REQUEST_STATUS_EXPIRED": 4, +} + +func (x WithdrawalRequestStatus) String() string { + return proto.EnumName(WithdrawalRequestStatus_name, int32(x)) +} + +func (WithdrawalRequestStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{0} +} + +// UserPosition represents a user's position in the V2 yield-tracking vault system +type UserPosition struct { + // Current deposit amount (principal) + DepositAmount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=deposit_amount,json=depositAmount,proto3,customtype=cosmossdk.io/math.Int" json:"deposit_amount"` + // Accrued yield on the position + AccruedYield cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=accrued_yield,json=accruedYield,proto3,customtype=cosmossdk.io/math.Int" json:"accrued_yield"` + // Timestamp of first deposit + FirstDepositTime time.Time `protobuf:"bytes,3,opt,name=first_deposit_time,json=firstDepositTime,proto3,stdtime" json:"first_deposit_time"` + // Timestamp of last deposit/withdrawal + LastActivityTime time.Time `protobuf:"bytes,4,opt,name=last_activity_time,json=lastActivityTime,proto3,stdtime" json:"last_activity_time"` + // Whether user wants to receive yield (vs contributing to fee pool) + ReceiveYield bool `protobuf:"varint,5,opt,name=receive_yield,json=receiveYield,proto3" json:"receive_yield,omitempty"` + // Amount pending withdrawal + AmountPendingWithdrawal cosmossdk_io_math.Int `protobuf:"bytes,6,opt,name=amount_pending_withdrawal,json=amountPendingWithdrawal,proto3,customtype=cosmossdk.io/math.Int" json:"amount_pending_withdrawal"` + // Number of active withdrawal requests + ActiveWithdrawalRequests int32 `protobuf:"varint,7,opt,name=active_withdrawal_requests,json=activeWithdrawalRequests,proto3" json:"active_withdrawal_requests,omitempty"` +} + +func (m *UserPosition) Reset() { *m = UserPosition{} } +func (m *UserPosition) String() string { return proto.CompactTextString(m) } +func (*UserPosition) ProtoMessage() {} +func (*UserPosition) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{0} +} +func (m *UserPosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserPosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserPosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserPosition.Merge(m, src) +} +func (m *UserPosition) XXX_Size() int { + return m.Size() +} +func (m *UserPosition) XXX_DiscardUnknown() { + xxx_messageInfo_UserPosition.DiscardUnknown(m) +} + +var xxx_messageInfo_UserPosition proto.InternalMessageInfo + +func (m *UserPosition) GetFirstDepositTime() time.Time { + if m != nil { + return m.FirstDepositTime + } + return time.Time{} +} + +func (m *UserPosition) GetLastActivityTime() time.Time { + if m != nil { + return m.LastActivityTime + } + return time.Time{} +} + +func (m *UserPosition) GetReceiveYield() bool { + if m != nil { + return m.ReceiveYield + } + return false +} + +func (m *UserPosition) GetActiveWithdrawalRequests() int32 { + if m != nil { + return m.ActiveWithdrawalRequests + } + return 0 +} + +// WithdrawalRequest represents a pending withdrawal request +type WithdrawalRequest struct { + // Unique request ID + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Address of the account that created the request + Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` + // Amount to withdraw (including yield) + WithdrawAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=withdraw_amount,json=withdrawAmount,proto3,customtype=cosmossdk.io/math.Int" json:"withdraw_amount"` + // When the withdrawal was requested + RequestTime time.Time `protobuf:"bytes,4,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time"` + // When the withdrawal can be processed + UnlockTime time.Time `protobuf:"bytes,5,opt,name=unlock_time,json=unlockTime,proto3,stdtime" json:"unlock_time"` + // Current status of the withdrawal request + Status WithdrawalRequestStatus `protobuf:"varint,6,opt,name=status,proto3,enum=noble.dollar.vaults.v2.WithdrawalRequestStatus" json:"status,omitempty"` + // Estimated amount to receive (calculated at request time) + EstimatedAmount cosmossdk_io_math.Int `protobuf:"bytes,7,opt,name=estimated_amount,json=estimatedAmount,proto3,customtype=cosmossdk.io/math.Int" json:"estimated_amount"` + // Block height when request was made + RequestBlockHeight int64 `protobuf:"varint,8,opt,name=request_block_height,json=requestBlockHeight,proto3" json:"request_block_height,omitempty"` +} + +func (m *WithdrawalRequest) Reset() { *m = WithdrawalRequest{} } +func (m *WithdrawalRequest) String() string { return proto.CompactTextString(m) } +func (*WithdrawalRequest) ProtoMessage() {} +func (*WithdrawalRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{1} +} +func (m *WithdrawalRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithdrawalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithdrawalRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithdrawalRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithdrawalRequest.Merge(m, src) +} +func (m *WithdrawalRequest) XXX_Size() int { + return m.Size() +} +func (m *WithdrawalRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WithdrawalRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WithdrawalRequest proto.InternalMessageInfo + +func (m *WithdrawalRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *WithdrawalRequest) GetRequester() string { + if m != nil { + return m.Requester + } + return "" +} + +func (m *WithdrawalRequest) GetRequestTime() time.Time { + if m != nil { + return m.RequestTime + } + return time.Time{} +} + +func (m *WithdrawalRequest) GetUnlockTime() time.Time { + if m != nil { + return m.UnlockTime + } + return time.Time{} +} + +func (m *WithdrawalRequest) GetStatus() WithdrawalRequestStatus { + if m != nil { + return m.Status + } + return WITHDRAWAL_REQUEST_STATUS_PENDING +} + +func (m *WithdrawalRequest) GetRequestBlockHeight() int64 { + if m != nil { + return m.RequestBlockHeight + } + return 0 +} + +// VaultState represents the current state of a V2 vault +type VaultState struct { + // Total deposits in the vault + TotalDeposits cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_deposits,json=totalDeposits,proto3,customtype=cosmossdk.io/math.Int" json:"total_deposits"` + // Total accrued yield + TotalAccruedYield cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_accrued_yield,json=totalAccruedYield,proto3,customtype=cosmossdk.io/math.Int" json:"total_accrued_yield"` + // Total Net Asset Value (deposits + yield) + TotalNav cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=total_nav,json=totalNav,proto3,customtype=cosmossdk.io/math.Int" json:"total_nav"` + // Total number of users with positions + TotalUsers uint64 `protobuf:"varint,4,opt,name=total_users,json=totalUsers,proto3" json:"total_users,omitempty"` + // Whether deposits are currently enabled + DepositsEnabled bool `protobuf:"varint,5,opt,name=deposits_enabled,json=depositsEnabled,proto3" json:"deposits_enabled,omitempty"` + // Whether withdrawals are currently enabled + WithdrawalsEnabled bool `protobuf:"varint,6,opt,name=withdrawals_enabled,json=withdrawalsEnabled,proto3" json:"withdrawals_enabled,omitempty"` + // Last NAV update timestamp + LastNavUpdate time.Time `protobuf:"bytes,7,opt,name=last_nav_update,json=lastNavUpdate,proto3,stdtime" json:"last_nav_update"` + // Total amount pending withdrawal + TotalAmountPendingWithdrawal cosmossdk_io_math.Int `protobuf:"bytes,8,opt,name=total_amount_pending_withdrawal,json=totalAmountPendingWithdrawal,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_pending_withdrawal"` + // Number of pending withdrawal requests + PendingWithdrawalRequests int32 `protobuf:"varint,9,opt,name=pending_withdrawal_requests,json=pendingWithdrawalRequests,proto3" json:"pending_withdrawal_requests,omitempty"` +} + +func (m *VaultState) Reset() { *m = VaultState{} } +func (m *VaultState) String() string { return proto.CompactTextString(m) } +func (*VaultState) ProtoMessage() {} +func (*VaultState) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{2} +} +func (m *VaultState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VaultState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VaultState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VaultState) XXX_Merge(src proto.Message) { + xxx_messageInfo_VaultState.Merge(m, src) +} +func (m *VaultState) XXX_Size() int { + return m.Size() +} +func (m *VaultState) XXX_DiscardUnknown() { + xxx_messageInfo_VaultState.DiscardUnknown(m) +} + +var xxx_messageInfo_VaultState proto.InternalMessageInfo + +func (m *VaultState) GetTotalUsers() uint64 { + if m != nil { + return m.TotalUsers + } + return 0 +} + +func (m *VaultState) GetDepositsEnabled() bool { + if m != nil { + return m.DepositsEnabled + } + return false +} + +func (m *VaultState) GetWithdrawalsEnabled() bool { + if m != nil { + return m.WithdrawalsEnabled + } + return false +} + +func (m *VaultState) GetLastNavUpdate() time.Time { + if m != nil { + return m.LastNavUpdate + } + return time.Time{} +} + +func (m *VaultState) GetPendingWithdrawalRequests() int32 { + if m != nil { + return m.PendingWithdrawalRequests + } + return 0 +} + +// YieldCalculation contains details about yield calculations +type YieldCalculation struct { + // Total deposits used in calculation + TotalDeposits cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_deposits,json=totalDeposits,proto3,customtype=cosmossdk.io/math.Int" json:"total_deposits"` + // Total accrued yield + TotalYield cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total_yield,json=totalYield,proto3,customtype=cosmossdk.io/math.Int" json:"total_yield"` + // Yield rate (APY percentage) + YieldRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=yield_rate,json=yieldRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"yield_rate"` + // Calculation timestamp + CalculationTime time.Time `protobuf:"bytes,4,opt,name=calculation_time,json=calculationTime,proto3,stdtime" json:"calculation_time"` +} + +func (m *YieldCalculation) Reset() { *m = YieldCalculation{} } +func (m *YieldCalculation) String() string { return proto.CompactTextString(m) } +func (*YieldCalculation) ProtoMessage() {} +func (*YieldCalculation) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{3} +} +func (m *YieldCalculation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *YieldCalculation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_YieldCalculation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *YieldCalculation) XXX_Merge(src proto.Message) { + xxx_messageInfo_YieldCalculation.Merge(m, src) +} +func (m *YieldCalculation) XXX_Size() int { + return m.Size() +} +func (m *YieldCalculation) XXX_DiscardUnknown() { + xxx_messageInfo_YieldCalculation.DiscardUnknown(m) +} + +var xxx_messageInfo_YieldCalculation proto.InternalMessageInfo + +func (m *YieldCalculation) GetCalculationTime() time.Time { + if m != nil { + return m.CalculationTime + } + return time.Time{} +} + +// DepositResult contains the outcome of a deposit operation +type DepositResult struct { + // Amount deposited + AmountDeposited cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount_deposited,json=amountDeposited,proto3,customtype=cosmossdk.io/math.Int" json:"amount_deposited"` +} + +func (m *DepositResult) Reset() { *m = DepositResult{} } +func (m *DepositResult) String() string { return proto.CompactTextString(m) } +func (*DepositResult) ProtoMessage() {} +func (*DepositResult) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{4} +} +func (m *DepositResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DepositResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositResult.Merge(m, src) +} +func (m *DepositResult) XXX_Size() int { + return m.Size() +} +func (m *DepositResult) XXX_DiscardUnknown() { + xxx_messageInfo_DepositResult.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositResult proto.InternalMessageInfo + +// WithdrawalResult contains the outcome of a withdrawal operation +type WithdrawalResult struct { + // Principal withdrawn + PrincipalWithdrawn cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=principal_withdrawn,json=principalWithdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"principal_withdrawn"` + // Yield withdrawn + YieldWithdrawn cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=yield_withdrawn,json=yieldWithdrawn,proto3,customtype=cosmossdk.io/math.Int" json:"yield_withdrawn"` + // Fees paid + FeesPaid cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=fees_paid,json=feesPaid,proto3,customtype=cosmossdk.io/math.Int" json:"fees_paid"` + // Total amount received (principal + yield - fees) + TotalAmountReceived cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=total_amount_received,json=totalAmountReceived,proto3,customtype=cosmossdk.io/math.Int" json:"total_amount_received"` +} + +func (m *WithdrawalResult) Reset() { *m = WithdrawalResult{} } +func (m *WithdrawalResult) String() string { return proto.CompactTextString(m) } +func (*WithdrawalResult) ProtoMessage() {} +func (*WithdrawalResult) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{5} +} +func (m *WithdrawalResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithdrawalResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithdrawalResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithdrawalResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithdrawalResult.Merge(m, src) +} +func (m *WithdrawalResult) XXX_Size() int { + return m.Size() +} +func (m *WithdrawalResult) XXX_DiscardUnknown() { + xxx_messageInfo_WithdrawalResult.DiscardUnknown(m) +} + +var xxx_messageInfo_WithdrawalResult proto.InternalMessageInfo + +// YieldDistribution represents yield distribution to shareholders +type YieldDistribution struct { + // Total yield amount distributed + TotalYield cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_yield,json=totalYield,proto3,customtype=cosmossdk.io/math.Int" json:"total_yield"` + // Yield rate applied + YieldRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=yield_rate,json=yieldRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"yield_rate"` + // Distribution timestamp + DistributionTime time.Time `protobuf:"bytes,3,opt,name=distribution_time,json=distributionTime,proto3,stdtime" json:"distribution_time"` + // Number of eligible depositors + EligibleDepositors uint64 `protobuf:"varint,4,opt,name=eligible_depositors,json=eligibleDepositors,proto3" json:"eligible_depositors,omitempty"` +} + +func (m *YieldDistribution) Reset() { *m = YieldDistribution{} } +func (m *YieldDistribution) String() string { return proto.CompactTextString(m) } +func (*YieldDistribution) ProtoMessage() {} +func (*YieldDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{6} +} +func (m *YieldDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *YieldDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_YieldDistribution.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *YieldDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_YieldDistribution.Merge(m, src) +} +func (m *YieldDistribution) XXX_Size() int { + return m.Size() +} +func (m *YieldDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_YieldDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_YieldDistribution proto.InternalMessageInfo + +func (m *YieldDistribution) GetDistributionTime() time.Time { + if m != nil { + return m.DistributionTime + } + return time.Time{} +} + +func (m *YieldDistribution) GetEligibleDepositors() uint64 { + if m != nil { + return m.EligibleDepositors + } + return 0 +} + +// DepositLimit defines deposit limits and risk controls +type DepositLimit struct { + // Maximum deposit amount per user per time window + MaxUserDepositPerWindow cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=max_user_deposit_per_window,json=maxUserDepositPerWindow,proto3,customtype=cosmossdk.io/math.Int" json:"max_user_deposit_per_window"` + // Maximum deposit volume per block + MaxBlockDepositVolume cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=max_block_deposit_volume,json=maxBlockDepositVolume,proto3,customtype=cosmossdk.io/math.Int" json:"max_block_deposit_volume"` + // Global maximum total deposits (vault capacity) + GlobalDepositCap cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=global_deposit_cap,json=globalDepositCap,proto3,customtype=cosmossdk.io/math.Int" json:"global_deposit_cap"` + // Cooldown period in blocks between deposits + DepositCooldownBlocks int64 `protobuf:"varint,4,opt,name=deposit_cooldown_blocks,json=depositCooldownBlocks,proto3" json:"deposit_cooldown_blocks,omitempty"` + // Time window for velocity tracking (in blocks) + VelocityWindowBlocks int64 `protobuf:"varint,5,opt,name=velocity_window_blocks,json=velocityWindowBlocks,proto3" json:"velocity_window_blocks,omitempty"` + // Maximum number of deposits per user in time window + MaxDepositsPerWindow uint32 `protobuf:"varint,6,opt,name=max_deposits_per_window,json=maxDepositsPerWindow,proto3" json:"max_deposits_per_window,omitempty"` +} + +func (m *DepositLimit) Reset() { *m = DepositLimit{} } +func (m *DepositLimit) String() string { return proto.CompactTextString(m) } +func (*DepositLimit) ProtoMessage() {} +func (*DepositLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{7} +} +func (m *DepositLimit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositLimit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DepositLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositLimit.Merge(m, src) +} +func (m *DepositLimit) XXX_Size() int { + return m.Size() +} +func (m *DepositLimit) XXX_DiscardUnknown() { + xxx_messageInfo_DepositLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositLimit proto.InternalMessageInfo + +func (m *DepositLimit) GetDepositCooldownBlocks() int64 { + if m != nil { + return m.DepositCooldownBlocks + } + return 0 +} + +func (m *DepositLimit) GetVelocityWindowBlocks() int64 { + if m != nil { + return m.VelocityWindowBlocks + } + return 0 +} + +func (m *DepositLimit) GetMaxDepositsPerWindow() uint32 { + if m != nil { + return m.MaxDepositsPerWindow + } + return 0 +} + +// DepositVelocity tracks user deposit velocity for risk monitoring +type DepositVelocity struct { + // Block height of last deposit + LastDepositBlock int64 `protobuf:"varint,1,opt,name=last_deposit_block,json=lastDepositBlock,proto3" json:"last_deposit_block,omitempty"` + // Number of deposits in recent time window + RecentDepositCount uint32 `protobuf:"varint,2,opt,name=recent_deposit_count,json=recentDepositCount,proto3" json:"recent_deposit_count,omitempty"` + // Total volume deposited in recent time window + RecentDepositVolume cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=recent_deposit_volume,json=recentDepositVolume,proto3,customtype=cosmossdk.io/math.Int" json:"recent_deposit_volume"` + // Time window size in blocks + TimeWindowBlocks int64 `protobuf:"varint,4,opt,name=time_window_blocks,json=timeWindowBlocks,proto3" json:"time_window_blocks,omitempty"` +} + +func (m *DepositVelocity) Reset() { *m = DepositVelocity{} } +func (m *DepositVelocity) String() string { return proto.CompactTextString(m) } +func (*DepositVelocity) ProtoMessage() {} +func (*DepositVelocity) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{8} +} +func (m *DepositVelocity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositVelocity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositVelocity.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DepositVelocity) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositVelocity.Merge(m, src) +} +func (m *DepositVelocity) XXX_Size() int { + return m.Size() +} +func (m *DepositVelocity) XXX_DiscardUnknown() { + xxx_messageInfo_DepositVelocity.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositVelocity proto.InternalMessageInfo + +func (m *DepositVelocity) GetLastDepositBlock() int64 { + if m != nil { + return m.LastDepositBlock + } + return 0 +} + +func (m *DepositVelocity) GetRecentDepositCount() uint32 { + if m != nil { + return m.RecentDepositCount + } + return 0 +} + +func (m *DepositVelocity) GetTimeWindowBlocks() int64 { + if m != nil { + return m.TimeWindowBlocks + } + return 0 +} + +// TWAPConfig configures Time-Weighted Average Price for share pricing +type TWAPConfig struct { + // Whether TWAP is enabled for share pricing + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Number of historical NAV snapshots to include in TWAP calculation + WindowSize uint32 `protobuf:"varint,2,opt,name=window_size,json=windowSize,proto3" json:"window_size,omitempty"` + // Minimum time between NAV snapshots (in seconds) + MinSnapshotInterval int64 `protobuf:"varint,3,opt,name=min_snapshot_interval,json=minSnapshotInterval,proto3" json:"min_snapshot_interval,omitempty"` + // Maximum age of snapshots to include (in seconds) + MaxSnapshotAge int64 `protobuf:"varint,4,opt,name=max_snapshot_age,json=maxSnapshotAge,proto3" json:"max_snapshot_age,omitempty"` +} + +func (m *TWAPConfig) Reset() { *m = TWAPConfig{} } +func (m *TWAPConfig) String() string { return proto.CompactTextString(m) } +func (*TWAPConfig) ProtoMessage() {} +func (*TWAPConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{9} +} +func (m *TWAPConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TWAPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TWAPConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TWAPConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TWAPConfig.Merge(m, src) +} +func (m *TWAPConfig) XXX_Size() int { + return m.Size() +} +func (m *TWAPConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TWAPConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TWAPConfig proto.InternalMessageInfo + +func (m *TWAPConfig) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + +func (m *TWAPConfig) GetWindowSize() uint32 { + if m != nil { + return m.WindowSize + } + return 0 +} + +func (m *TWAPConfig) GetMinSnapshotInterval() int64 { + if m != nil { + return m.MinSnapshotInterval + } + return 0 +} + +func (m *TWAPConfig) GetMaxSnapshotAge() int64 { + if m != nil { + return m.MaxSnapshotAge + } + return 0 +} + +// NAVSnapshot represents a point-in-time NAV observation for TWAP +type NAVSnapshot struct { + // NAV value at this snapshot + Nav cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=nav,proto3,customtype=cosmossdk.io/math.Int" json:"nav"` + // Timestamp of this snapshot + Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp"` + // Block height at this snapshot + BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + // Total shares at this snapshot (for reference) + TotalShares cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=total_shares,json=totalShares,proto3,customtype=cosmossdk.io/math.Int" json:"total_shares"` +} + +func (m *NAVSnapshot) Reset() { *m = NAVSnapshot{} } +func (m *NAVSnapshot) String() string { return proto.CompactTextString(m) } +func (*NAVSnapshot) ProtoMessage() {} +func (*NAVSnapshot) Descriptor() ([]byte, []int) { + return fileDescriptor_a9e05010b6747034, []int{10} +} +func (m *NAVSnapshot) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NAVSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NAVSnapshot.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NAVSnapshot) XXX_Merge(src proto.Message) { + xxx_messageInfo_NAVSnapshot.Merge(m, src) +} +func (m *NAVSnapshot) XXX_Size() int { + return m.Size() +} +func (m *NAVSnapshot) XXX_DiscardUnknown() { + xxx_messageInfo_NAVSnapshot.DiscardUnknown(m) +} + +var xxx_messageInfo_NAVSnapshot proto.InternalMessageInfo + +func (m *NAVSnapshot) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + +func (m *NAVSnapshot) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func init() { + proto.RegisterEnum("noble.dollar.vaults.v2.WithdrawalRequestStatus", WithdrawalRequestStatus_name, WithdrawalRequestStatus_value) + proto.RegisterType((*UserPosition)(nil), "noble.dollar.vaults.v2.UserPosition") + proto.RegisterType((*WithdrawalRequest)(nil), "noble.dollar.vaults.v2.WithdrawalRequest") + proto.RegisterType((*VaultState)(nil), "noble.dollar.vaults.v2.VaultState") + proto.RegisterType((*YieldCalculation)(nil), "noble.dollar.vaults.v2.YieldCalculation") + proto.RegisterType((*DepositResult)(nil), "noble.dollar.vaults.v2.DepositResult") + proto.RegisterType((*WithdrawalResult)(nil), "noble.dollar.vaults.v2.WithdrawalResult") + proto.RegisterType((*YieldDistribution)(nil), "noble.dollar.vaults.v2.YieldDistribution") + proto.RegisterType((*DepositLimit)(nil), "noble.dollar.vaults.v2.DepositLimit") + proto.RegisterType((*DepositVelocity)(nil), "noble.dollar.vaults.v2.DepositVelocity") + proto.RegisterType((*TWAPConfig)(nil), "noble.dollar.vaults.v2.TWAPConfig") + proto.RegisterType((*NAVSnapshot)(nil), "noble.dollar.vaults.v2.NAVSnapshot") +} + +func init() { + proto.RegisterFile("noble/dollar/vaults/v2/vaults.proto", fileDescriptor_a9e05010b6747034) +} + +var fileDescriptor_a9e05010b6747034 = []byte{ + // 1526 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x6f, 0x5b, 0x45, + 0x10, 0xcf, 0xb3, 0x93, 0x34, 0x99, 0x7c, 0x39, 0x9b, 0xa4, 0x71, 0x53, 0x48, 0x52, 0x47, 0x88, + 0x50, 0xb5, 0x76, 0x95, 0x42, 0x4f, 0x80, 0xe4, 0xc4, 0x56, 0x1b, 0x29, 0x4d, 0xdd, 0xe7, 0xa4, + 0xa1, 0x20, 0xf1, 0x58, 0xbf, 0xb7, 0x71, 0x56, 0x7d, 0x5f, 0xbc, 0x5d, 0x3b, 0x49, 0xef, 0x95, + 0xb8, 0x20, 0xf5, 0xcc, 0x15, 0x21, 0x71, 0x41, 0xe2, 0x50, 0x89, 0x33, 0xb7, 0x1e, 0xab, 0x9e, + 0x10, 0x87, 0x82, 0x5a, 0x04, 0x37, 0xfe, 0x06, 0xb4, 0x5f, 0xb6, 0x9b, 0x90, 0xaa, 0x79, 0x94, + 0x4b, 0xe4, 0xb7, 0xb3, 0xf3, 0x9b, 0x99, 0xdf, 0xcc, 0xce, 0xce, 0x06, 0x96, 0xc2, 0xa8, 0xe1, + 0x93, 0x92, 0x17, 0xf9, 0x3e, 0x4e, 0x4a, 0x6d, 0xdc, 0xf2, 0x39, 0x2b, 0xb5, 0x57, 0xf4, 0xaf, + 0x62, 0x9c, 0x44, 0x3c, 0x42, 0x67, 0xe5, 0xa6, 0xa2, 0xda, 0x54, 0xd4, 0xa2, 0xf6, 0xca, 0xdc, + 0x24, 0x0e, 0x68, 0x18, 0x95, 0xe4, 0x5f, 0xb5, 0x75, 0xee, 0x9c, 0x1b, 0xb1, 0x20, 0x62, 0x8e, + 0xfc, 0x2a, 0xa9, 0x0f, 0x2d, 0x9a, 0x6e, 0x46, 0xcd, 0x48, 0xad, 0x8b, 0x5f, 0x7a, 0x75, 0xa1, + 0x19, 0x45, 0x4d, 0x9f, 0x94, 0xe4, 0x57, 0xa3, 0xb5, 0x5b, 0xe2, 0x34, 0x20, 0x8c, 0xe3, 0x20, + 0x56, 0x1b, 0x0a, 0x3f, 0xf5, 0xc3, 0xe8, 0x36, 0x23, 0x49, 0x2d, 0x62, 0x94, 0xd3, 0x28, 0x44, + 0x3b, 0x30, 0xee, 0x91, 0x58, 0x7c, 0x39, 0x38, 0x88, 0x5a, 0x21, 0xcf, 0x5b, 0x8b, 0xd6, 0xf2, + 0xf0, 0xea, 0x95, 0xc7, 0xcf, 0x16, 0xfa, 0x7e, 0x7d, 0xb6, 0x30, 0xa3, 0xac, 0x32, 0xef, 0x5e, + 0x91, 0x46, 0xa5, 0x00, 0xf3, 0xbd, 0xe2, 0x7a, 0xc8, 0x9f, 0x3e, 0xba, 0x0c, 0xda, 0x9d, 0xf5, + 0x90, 0x7f, 0xff, 0xd7, 0x8f, 0x17, 0x2d, 0x7b, 0x4c, 0xe3, 0x94, 0x25, 0x0c, 0xda, 0x86, 0x31, + 0xec, 0xba, 0x49, 0x8b, 0x78, 0xce, 0x21, 0x25, 0xbe, 0x97, 0xcf, 0xa4, 0xc4, 0x1d, 0xd5, 0x30, + 0x77, 0x05, 0x0a, 0xb2, 0x01, 0xed, 0xd2, 0x84, 0x71, 0xc7, 0x78, 0x2d, 0x22, 0xcc, 0x67, 0x17, + 0xad, 0xe5, 0x91, 0x95, 0xb9, 0xa2, 0x0a, 0xbf, 0x68, 0xc2, 0x2f, 0x6e, 0x99, 0xf0, 0x57, 0x87, + 0x84, 0xdd, 0x87, 0xbf, 0x2d, 0x58, 0x76, 0x4e, 0xea, 0x57, 0x94, 0xba, 0xd8, 0x20, 0x30, 0x7d, + 0xcc, 0xb8, 0x83, 0x5d, 0x4e, 0xdb, 0x94, 0x1f, 0x2a, 0xcc, 0xfe, 0xd3, 0x60, 0x0a, 0xfd, 0xb2, + 0x56, 0x97, 0x98, 0x4b, 0x30, 0x96, 0x10, 0x97, 0xd0, 0x36, 0xd1, 0xe1, 0x0f, 0x2c, 0x5a, 0xcb, + 0x43, 0xf6, 0xa8, 0x5e, 0x54, 0xc1, 0xf8, 0x70, 0x4e, 0x91, 0xee, 0xc4, 0x24, 0xf4, 0x68, 0xd8, + 0x74, 0xf6, 0x29, 0xdf, 0xf3, 0x12, 0xbc, 0x8f, 0xfd, 0xfc, 0x60, 0x4a, 0xbe, 0x66, 0x15, 0x64, + 0x4d, 0x21, 0xee, 0x74, 0x00, 0xd1, 0x87, 0x30, 0x27, 0x23, 0x24, 0x3d, 0x56, 0x9c, 0x84, 0x7c, + 0xd9, 0x22, 0x8c, 0xb3, 0xfc, 0x99, 0x45, 0x6b, 0x79, 0xc0, 0xce, 0xab, 0x1d, 0x5d, 0x2d, 0x5b, + 0xcb, 0x0b, 0x3f, 0xf4, 0xc3, 0xe4, 0xb1, 0x65, 0xf4, 0x36, 0x80, 0x46, 0x70, 0xa8, 0xa7, 0x4a, + 0xc7, 0x1e, 0xd6, 0x2b, 0xeb, 0x1e, 0xba, 0x06, 0xe6, 0x83, 0x24, 0xba, 0x00, 0xf2, 0x4f, 0x1f, + 0x5d, 0x9e, 0xd6, 0x3e, 0x97, 0x3d, 0x2f, 0x21, 0x8c, 0xd5, 0x79, 0x42, 0xc3, 0xa6, 0xdd, 0xdd, + 0x8a, 0xee, 0xc2, 0x84, 0xf1, 0xd1, 0x94, 0x65, 0x36, 0x25, 0x1d, 0xe3, 0x06, 0x48, 0xd7, 0xe5, + 0x75, 0x18, 0x35, 0x1e, 0x9f, 0x3a, 0xcd, 0x23, 0x5a, 0x53, 0x66, 0xb8, 0x0a, 0x23, 0xad, 0xd0, + 0x8f, 0xdc, 0x7b, 0x0a, 0x67, 0xe0, 0x14, 0x38, 0xa0, 0x14, 0x25, 0xcc, 0x75, 0x18, 0x64, 0x1c, + 0xf3, 0x16, 0x93, 0x09, 0x1f, 0x5f, 0x29, 0x15, 0xff, 0xbd, 0x3f, 0x14, 0x8f, 0x91, 0x5f, 0x97, + 0x6a, 0xb6, 0x56, 0x47, 0x9f, 0x41, 0x8e, 0x30, 0x4e, 0x03, 0xcc, 0x89, 0x67, 0x48, 0x3b, 0x93, + 0x92, 0xb4, 0x89, 0x0e, 0x92, 0x66, 0xed, 0x0a, 0x4c, 0x1b, 0xd6, 0x1a, 0x32, 0xe6, 0x3d, 0x42, + 0x9b, 0x7b, 0x3c, 0x3f, 0xb4, 0x68, 0x2d, 0x67, 0x6d, 0xa4, 0x65, 0xab, 0x42, 0x74, 0x43, 0x4a, + 0x0a, 0xdf, 0x0c, 0x00, 0xdc, 0x11, 0xce, 0x0b, 0x37, 0x89, 0xe8, 0x33, 0x3c, 0xe2, 0xd8, 0x37, + 0xe7, 0x96, 0xa5, 0xef, 0x33, 0x12, 0x47, 0x9f, 0x5f, 0x86, 0xbe, 0x80, 0x29, 0x05, 0xfc, 0x66, + 0xba, 0xcd, 0xa4, 0x04, 0x2b, 0xf7, 0xb6, 0x9c, 0x9b, 0x30, 0xac, 0x2c, 0x84, 0xb8, 0x9d, 0xba, + 0x0c, 0x87, 0x24, 0xc4, 0x26, 0x6e, 0xa3, 0x05, 0x18, 0x51, 0x70, 0x2d, 0x46, 0x12, 0x26, 0xeb, + 0xaf, 0xdf, 0x06, 0xb9, 0x24, 0x3a, 0x33, 0x43, 0xef, 0x41, 0xce, 0x90, 0xe4, 0x90, 0x10, 0x37, + 0x7c, 0x62, 0xba, 0xc7, 0x84, 0x59, 0xaf, 0xaa, 0x65, 0x54, 0x82, 0xa9, 0xee, 0x59, 0xee, 0xee, + 0x1e, 0x94, 0xbb, 0x51, 0x8f, 0xc8, 0x28, 0x6c, 0xc0, 0x84, 0x6c, 0x75, 0x21, 0x6e, 0x3b, 0xad, + 0xd8, 0xc3, 0x9c, 0xc8, 0x1a, 0x79, 0xdd, 0xc2, 0x1d, 0x13, 0xca, 0x9b, 0xb8, 0xbd, 0x2d, 0x55, + 0xd1, 0x3e, 0x2c, 0x68, 0xee, 0x4f, 0xec, 0x62, 0x43, 0x29, 0xf9, 0x7a, 0x4b, 0xe5, 0xe1, 0x84, + 0x56, 0xf6, 0x31, 0x9c, 0x3f, 0x6e, 0xab, 0xdb, 0xcb, 0x86, 0x65, 0x2f, 0x3b, 0x17, 0x1f, 0xd5, + 0xeb, 0x34, 0xb3, 0x3f, 0x33, 0x90, 0x93, 0xc9, 0x5d, 0xc3, 0xbe, 0xdb, 0xf2, 0xb1, 0xb9, 0x0a, + 0xff, 0x9f, 0x12, 0xbd, 0x6d, 0x32, 0xfe, 0xdf, 0x4a, 0x53, 0xd5, 0x88, 0xaa, 0xc9, 0x6d, 0x00, + 0x09, 0xe6, 0x24, 0x22, 0x85, 0xaa, 0x28, 0xaf, 0x69, 0xc4, 0xf3, 0xc7, 0x11, 0x37, 0x48, 0x13, + 0xbb, 0x87, 0x15, 0xe2, 0xf6, 0xe0, 0x56, 0x88, 0xab, 0x70, 0x87, 0x25, 0x92, 0x2d, 0x12, 0x7a, + 0x0b, 0x72, 0x6e, 0x97, 0x91, 0xd3, 0x37, 0xc8, 0x89, 0x1e, 0x6d, 0x21, 0x2f, 0xf8, 0x30, 0xa6, + 0x69, 0xb0, 0x09, 0x6b, 0xf9, 0x5c, 0x74, 0x29, 0x5d, 0x2c, 0x9a, 0x65, 0xe2, 0xa5, 0xa6, 0x79, + 0x42, 0x21, 0x55, 0x0c, 0x50, 0xe1, 0x41, 0x16, 0x72, 0xbd, 0xd9, 0x96, 0x16, 0x31, 0x4c, 0xc5, + 0x09, 0x0d, 0x5d, 0x1a, 0x63, 0xbf, 0x53, 0x2d, 0x61, 0x6a, 0xa3, 0xa8, 0x03, 0x66, 0x2c, 0x85, + 0xe2, 0xba, 0x52, 0xd9, 0xe8, 0xc2, 0xa7, 0x4d, 0xf2, 0xb8, 0x04, 0xea, 0x42, 0xdf, 0x84, 0xe1, + 0x5d, 0x42, 0x98, 0x13, 0x63, 0xea, 0xa5, 0x6f, 0x3e, 0x02, 0xa2, 0x86, 0xa9, 0x87, 0x3c, 0x98, + 0x79, 0xe9, 0xc4, 0xea, 0x71, 0xc4, 0x93, 0x59, 0x4e, 0x03, 0x3d, 0xd5, 0x73, 0x4e, 0x6d, 0x0d, + 0x56, 0xf8, 0x39, 0x03, 0x93, 0xb2, 0x4e, 0x2b, 0x94, 0xf1, 0x84, 0x36, 0x5a, 0xf2, 0x7c, 0x1d, + 0x39, 0x06, 0xd6, 0x1b, 0x3f, 0x06, 0x99, 0x37, 0x75, 0x0c, 0x6e, 0xc3, 0xa4, 0xd7, 0xe3, 0x79, + 0x8a, 0x19, 0xb3, 0x57, 0x5d, 0x5e, 0xf3, 0x25, 0x98, 0x22, 0x3e, 0x6d, 0xd2, 0x86, 0x4f, 0x4c, + 0xe5, 0x47, 0x9d, 0xee, 0x8f, 0x8c, 0xa8, 0xd2, 0x91, 0x14, 0xfe, 0xce, 0xc2, 0xa8, 0xfe, 0xdc, + 0xa0, 0x01, 0xe5, 0x28, 0x84, 0xf3, 0x01, 0x3e, 0x90, 0xb7, 0x46, 0x67, 0xf8, 0x8d, 0x49, 0xe2, + 0xec, 0xd3, 0xd0, 0x8b, 0xf6, 0x53, 0xd3, 0x39, 0x1b, 0xe0, 0x03, 0x71, 0xef, 0x68, 0x5b, 0x35, + 0x92, 0xec, 0x48, 0x40, 0x44, 0x21, 0x2f, 0xec, 0xa9, 0xeb, 0xde, 0x18, 0x6c, 0x47, 0x7e, 0x2b, + 0x20, 0xa9, 0xab, 0x7b, 0x26, 0xc0, 0x07, 0x72, 0x48, 0xd0, 0xd6, 0xee, 0x48, 0x38, 0xf4, 0x39, + 0xa0, 0xa6, 0x1f, 0x35, 0xba, 0xad, 0xd7, 0x71, 0x71, 0x9c, 0xba, 0xda, 0x73, 0x0a, 0x4b, 0x9b, + 0x58, 0xc3, 0x31, 0xba, 0x06, 0xb3, 0x1d, 0xe0, 0x28, 0xf2, 0xbd, 0x68, 0x3f, 0x54, 0x71, 0xa9, + 0x04, 0x64, 0xed, 0x19, 0x2d, 0x5e, 0xd3, 0x52, 0xe9, 0x23, 0x43, 0xef, 0xc3, 0xd9, 0x36, 0xf1, + 0x23, 0x57, 0xbc, 0x09, 0x14, 0xcd, 0x46, 0x6d, 0x40, 0xaa, 0x4d, 0x1b, 0xa9, 0xa2, 0x4c, 0x6b, + 0x7d, 0x00, 0x82, 0xd3, 0xce, 0x2d, 0xd2, 0x9b, 0x24, 0x71, 0x31, 0x8f, 0xd9, 0xd3, 0x01, 0x3e, + 0x30, 0x97, 0x43, 0x87, 0xef, 0xc2, 0x83, 0x0c, 0x4c, 0x18, 0x5a, 0x34, 0x2c, 0xba, 0xa4, 0x5f, + 0x26, 0xc6, 0x7b, 0x69, 0x5d, 0xa6, 0x3a, 0xab, 0xde, 0x1c, 0x5a, 0x41, 0x5a, 0x56, 0x43, 0x9a, + 0x4b, 0xba, 0xbd, 0xd5, 0x71, 0xe5, 0x14, 0x98, 0x91, 0x56, 0x91, 0x92, 0x19, 0x5a, 0xe4, 0x58, + 0xe7, 0xc1, 0xcc, 0x11, 0x0d, 0x9d, 0xe0, 0xb4, 0xdc, 0x4f, 0xbd, 0x64, 0x44, 0xa7, 0xf7, 0x12, + 0x20, 0x71, 0x82, 0x8e, 0x50, 0xa8, 0x98, 0xcf, 0x09, 0x49, 0x2f, 0x7d, 0x85, 0xef, 0x2c, 0x80, + 0xad, 0x9d, 0x72, 0x6d, 0x2d, 0x0a, 0x77, 0x69, 0x13, 0xe5, 0xe1, 0x8c, 0x19, 0x6b, 0x2c, 0x39, + 0xd6, 0x98, 0x4f, 0x31, 0x48, 0x69, 0x44, 0x46, 0xef, 0x13, 0x1d, 0x25, 0xa8, 0xa5, 0x3a, 0xbd, + 0x4f, 0xd0, 0x0a, 0xcc, 0x04, 0x34, 0x74, 0x58, 0x88, 0x63, 0xb6, 0x17, 0x71, 0x87, 0x86, 0x9c, + 0x24, 0x6d, 0xec, 0xcb, 0xe8, 0xb2, 0xf6, 0x54, 0x40, 0xc3, 0xba, 0x96, 0xad, 0x6b, 0x11, 0x5a, + 0x86, 0x9c, 0x48, 0x5e, 0x47, 0x07, 0x37, 0x89, 0xf6, 0x74, 0x3c, 0xc0, 0x07, 0x66, 0x7b, 0xb9, + 0x49, 0x0a, 0x5f, 0x67, 0x60, 0x64, 0xb3, 0x7c, 0xc7, 0x2c, 0xa1, 0x55, 0xc8, 0x8a, 0x01, 0x31, + 0xed, 0x39, 0x14, 0xca, 0x68, 0x15, 0x86, 0x3b, 0x2f, 0x76, 0x19, 0xd0, 0xeb, 0x36, 0x9c, 0xae, + 0x1a, 0xba, 0x00, 0xa3, 0x2f, 0x8d, 0xe8, 0x2a, 0xd8, 0x91, 0x46, 0x77, 0x36, 0x47, 0x75, 0x18, + 0x55, 0x9d, 0x98, 0xed, 0xe1, 0x84, 0xb0, 0xd4, 0xcd, 0x5f, 0xf5, 0xf3, 0xba, 0x04, 0xb9, 0xf8, + 0x87, 0x05, 0xb3, 0x27, 0xbc, 0x51, 0xd0, 0x3b, 0x70, 0x61, 0x67, 0x7d, 0xeb, 0x46, 0xc5, 0x2e, + 0xef, 0x94, 0x37, 0x1c, 0xbb, 0x7a, 0x7b, 0xbb, 0x5a, 0xdf, 0x72, 0xea, 0x5b, 0xe5, 0xad, 0xed, + 0xba, 0x53, 0xab, 0x6e, 0x56, 0xd6, 0x37, 0xaf, 0xe7, 0xfa, 0xd0, 0x12, 0x2c, 0x9c, 0xbc, 0xcd, + 0xae, 0x96, 0x2b, 0x77, 0x73, 0x16, 0x7a, 0x17, 0x96, 0x5e, 0x81, 0x65, 0xdf, 0x5a, 0xab, 0xd6, + 0xeb, 0xd5, 0x4a, 0x2e, 0xf3, 0xea, 0x8d, 0x6b, 0xe5, 0xcd, 0xb5, 0xea, 0xc6, 0x46, 0xb5, 0x92, + 0xcb, 0xbe, 0xda, 0xbb, 0xea, 0x27, 0xb5, 0x75, 0xbb, 0x5a, 0xc9, 0xf5, 0xcf, 0xf5, 0x7f, 0xf5, + 0xed, 0x7c, 0xdf, 0xea, 0x47, 0x8f, 0x9f, 0xcf, 0x5b, 0x4f, 0x9e, 0xcf, 0x5b, 0xbf, 0x3f, 0x9f, + 0xb7, 0x1e, 0xbe, 0x98, 0xef, 0x7b, 0xf2, 0x62, 0xbe, 0xef, 0x97, 0x17, 0xf3, 0x7d, 0x9f, 0x2e, + 0xe9, 0x27, 0x9b, 0x7a, 0xbf, 0x1d, 0x1c, 0xde, 0x2f, 0xb5, 0xaf, 0x96, 0xf8, 0x61, 0x4c, 0x58, + 0xf7, 0x5f, 0x41, 0x8d, 0x41, 0x99, 0xc6, 0xab, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x31, + 0x99, 0xdd, 0x2b, 0x12, 0x00, 0x00, +} + +func (m *UserPosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserPosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserPosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ActiveWithdrawalRequests != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.ActiveWithdrawalRequests)) + i-- + dAtA[i] = 0x38 + } + { + size := m.AmountPendingWithdrawal.Size() + i -= size + if _, err := m.AmountPendingWithdrawal.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if m.ReceiveYield { + i-- + if m.ReceiveYield { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastActivityTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastActivityTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintVaults(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x22 + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.FirstDepositTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.FirstDepositTime):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintVaults(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x1a + { + size := m.AccruedYield.Size() + i -= size + if _, err := m.AccruedYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.DepositAmount.Size() + i -= size + if _, err := m.DepositAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WithdrawalRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithdrawalRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithdrawalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RequestBlockHeight != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.RequestBlockHeight)) + i-- + dAtA[i] = 0x40 + } + { + size := m.EstimatedAmount.Size() + i -= size + if _, err := m.EstimatedAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if m.Status != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.UnlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UnlockTime):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintVaults(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x2a + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.RequestTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RequestTime):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintVaults(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x22 + { + size := m.WithdrawAmount.Size() + i -= size + if _, err := m.WithdrawAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintVaults(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0x12 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintVaults(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VaultState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VaultState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VaultState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PendingWithdrawalRequests != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.PendingWithdrawalRequests)) + i-- + dAtA[i] = 0x48 + } + { + size := m.TotalAmountPendingWithdrawal.Size() + i -= size + if _, err := m.TotalAmountPendingWithdrawal.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastNavUpdate, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastNavUpdate):]) + if err5 != nil { + return 0, err5 + } + i -= n5 + i = encodeVarintVaults(dAtA, i, uint64(n5)) + i-- + dAtA[i] = 0x3a + if m.WithdrawalsEnabled { + i-- + if m.WithdrawalsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.DepositsEnabled { + i-- + if m.DepositsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.TotalUsers != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.TotalUsers)) + i-- + dAtA[i] = 0x20 + } + { + size := m.TotalNav.Size() + i -= size + if _, err := m.TotalNav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalAccruedYield.Size() + i -= size + if _, err := m.TotalAccruedYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalDeposits.Size() + i -= size + if _, err := m.TotalDeposits.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *YieldCalculation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *YieldCalculation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *YieldCalculation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.CalculationTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CalculationTime):]) + if err6 != nil { + return 0, err6 + } + i -= n6 + i = encodeVarintVaults(dAtA, i, uint64(n6)) + i-- + dAtA[i] = 0x22 + { + size := m.YieldRate.Size() + i -= size + if _, err := m.YieldRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalYield.Size() + i -= size + if _, err := m.TotalYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalDeposits.Size() + i -= size + if _, err := m.TotalDeposits.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DepositResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DepositResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.AmountDeposited.Size() + i -= size + if _, err := m.AmountDeposited.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WithdrawalResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithdrawalResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithdrawalResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.TotalAmountReceived.Size() + i -= size + if _, err := m.TotalAmountReceived.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.FeesPaid.Size() + i -= size + if _, err := m.FeesPaid.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.YieldWithdrawn.Size() + i -= size + if _, err := m.YieldWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.PrincipalWithdrawn.Size() + i -= size + if _, err := m.PrincipalWithdrawn.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *YieldDistribution) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *YieldDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *YieldDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EligibleDepositors != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.EligibleDepositors)) + i-- + dAtA[i] = 0x20 + } + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.DistributionTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.DistributionTime):]) + if err7 != nil { + return 0, err7 + } + i -= n7 + i = encodeVarintVaults(dAtA, i, uint64(n7)) + i-- + dAtA[i] = 0x1a + { + size := m.YieldRate.Size() + i -= size + if _, err := m.YieldRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalYield.Size() + i -= size + if _, err := m.TotalYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DepositLimit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DepositLimit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositLimit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxDepositsPerWindow != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.MaxDepositsPerWindow)) + i-- + dAtA[i] = 0x30 + } + if m.VelocityWindowBlocks != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.VelocityWindowBlocks)) + i-- + dAtA[i] = 0x28 + } + if m.DepositCooldownBlocks != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.DepositCooldownBlocks)) + i-- + dAtA[i] = 0x20 + } + { + size := m.GlobalDepositCap.Size() + i -= size + if _, err := m.GlobalDepositCap.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.MaxBlockDepositVolume.Size() + i -= size + if _, err := m.MaxBlockDepositVolume.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.MaxUserDepositPerWindow.Size() + i -= size + if _, err := m.MaxUserDepositPerWindow.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DepositVelocity) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DepositVelocity) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositVelocity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TimeWindowBlocks != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.TimeWindowBlocks)) + i-- + dAtA[i] = 0x20 + } + { + size := m.RecentDepositVolume.Size() + i -= size + if _, err := m.RecentDepositVolume.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.RecentDepositCount != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.RecentDepositCount)) + i-- + dAtA[i] = 0x10 + } + if m.LastDepositBlock != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.LastDepositBlock)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TWAPConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TWAPConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TWAPConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxSnapshotAge != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.MaxSnapshotAge)) + i-- + dAtA[i] = 0x20 + } + if m.MinSnapshotInterval != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.MinSnapshotInterval)) + i-- + dAtA[i] = 0x18 + } + if m.WindowSize != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.WindowSize)) + i-- + dAtA[i] = 0x10 + } + if m.Enabled { + i-- + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *NAVSnapshot) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NAVSnapshot) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NAVSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.TotalShares.Size() + i -= size + if _, err := m.TotalShares.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.BlockHeight != 0 { + i = encodeVarintVaults(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) + if err8 != nil { + return 0, err8 + } + i -= n8 + i = encodeVarintVaults(dAtA, i, uint64(n8)) + i-- + dAtA[i] = 0x12 + { + size := m.Nav.Size() + i -= size + if _, err := m.Nav.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintVaults(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintVaults(dAtA []byte, offset int, v uint64) int { + offset -= sovVaults(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UserPosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.DepositAmount.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.AccruedYield.Size() + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.FirstDepositTime) + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastActivityTime) + n += 1 + l + sovVaults(uint64(l)) + if m.ReceiveYield { + n += 2 + } + l = m.AmountPendingWithdrawal.Size() + n += 1 + l + sovVaults(uint64(l)) + if m.ActiveWithdrawalRequests != 0 { + n += 1 + sovVaults(uint64(m.ActiveWithdrawalRequests)) + } + return n +} + +func (m *WithdrawalRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovVaults(uint64(l)) + } + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovVaults(uint64(l)) + } + l = m.WithdrawAmount.Size() + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.RequestTime) + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.UnlockTime) + n += 1 + l + sovVaults(uint64(l)) + if m.Status != 0 { + n += 1 + sovVaults(uint64(m.Status)) + } + l = m.EstimatedAmount.Size() + n += 1 + l + sovVaults(uint64(l)) + if m.RequestBlockHeight != 0 { + n += 1 + sovVaults(uint64(m.RequestBlockHeight)) + } + return n +} + +func (m *VaultState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalDeposits.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.TotalAccruedYield.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.TotalNav.Size() + n += 1 + l + sovVaults(uint64(l)) + if m.TotalUsers != 0 { + n += 1 + sovVaults(uint64(m.TotalUsers)) + } + if m.DepositsEnabled { + n += 2 + } + if m.WithdrawalsEnabled { + n += 2 + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastNavUpdate) + n += 1 + l + sovVaults(uint64(l)) + l = m.TotalAmountPendingWithdrawal.Size() + n += 1 + l + sovVaults(uint64(l)) + if m.PendingWithdrawalRequests != 0 { + n += 1 + sovVaults(uint64(m.PendingWithdrawalRequests)) + } + return n +} + +func (m *YieldCalculation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalDeposits.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.TotalYield.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.YieldRate.Size() + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.CalculationTime) + n += 1 + l + sovVaults(uint64(l)) + return n +} + +func (m *DepositResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.AmountDeposited.Size() + n += 1 + l + sovVaults(uint64(l)) + return n +} + +func (m *WithdrawalResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.PrincipalWithdrawn.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.YieldWithdrawn.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.FeesPaid.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.TotalAmountReceived.Size() + n += 1 + l + sovVaults(uint64(l)) + return n +} + +func (m *YieldDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalYield.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.YieldRate.Size() + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.DistributionTime) + n += 1 + l + sovVaults(uint64(l)) + if m.EligibleDepositors != 0 { + n += 1 + sovVaults(uint64(m.EligibleDepositors)) + } + return n +} + +func (m *DepositLimit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.MaxUserDepositPerWindow.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.MaxBlockDepositVolume.Size() + n += 1 + l + sovVaults(uint64(l)) + l = m.GlobalDepositCap.Size() + n += 1 + l + sovVaults(uint64(l)) + if m.DepositCooldownBlocks != 0 { + n += 1 + sovVaults(uint64(m.DepositCooldownBlocks)) + } + if m.VelocityWindowBlocks != 0 { + n += 1 + sovVaults(uint64(m.VelocityWindowBlocks)) + } + if m.MaxDepositsPerWindow != 0 { + n += 1 + sovVaults(uint64(m.MaxDepositsPerWindow)) + } + return n +} + +func (m *DepositVelocity) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LastDepositBlock != 0 { + n += 1 + sovVaults(uint64(m.LastDepositBlock)) + } + if m.RecentDepositCount != 0 { + n += 1 + sovVaults(uint64(m.RecentDepositCount)) + } + l = m.RecentDepositVolume.Size() + n += 1 + l + sovVaults(uint64(l)) + if m.TimeWindowBlocks != 0 { + n += 1 + sovVaults(uint64(m.TimeWindowBlocks)) + } + return n +} + +func (m *TWAPConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled { + n += 2 + } + if m.WindowSize != 0 { + n += 1 + sovVaults(uint64(m.WindowSize)) + } + if m.MinSnapshotInterval != 0 { + n += 1 + sovVaults(uint64(m.MinSnapshotInterval)) + } + if m.MaxSnapshotAge != 0 { + n += 1 + sovVaults(uint64(m.MaxSnapshotAge)) + } + return n +} + +func (m *NAVSnapshot) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Nav.Size() + n += 1 + l + sovVaults(uint64(l)) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovVaults(uint64(l)) + if m.BlockHeight != 0 { + n += 1 + sovVaults(uint64(m.BlockHeight)) + } + l = m.TotalShares.Size() + n += 1 + l + sovVaults(uint64(l)) + return n +} + +func sovVaults(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozVaults(x uint64) (n int) { + return sovVaults(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UserPosition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserPosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserPosition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccruedYield", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AccruedYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstDepositTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.FirstDepositTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastActivityTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastActivityTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceiveYield", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceiveYield = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountPendingWithdrawal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountPendingWithdrawal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveWithdrawalRequests", wireType) + } + m.ActiveWithdrawalRequests = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActiveWithdrawalRequests |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WithdrawalRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WithdrawalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithdrawalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.WithdrawAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.RequestTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnlockTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.UnlockTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + 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 ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= WithdrawalRequestStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EstimatedAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EstimatedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestBlockHeight", wireType) + } + m.RequestBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestBlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VaultState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VaultState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VaultState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalDeposits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAccruedYield", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAccruedYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalNav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalNav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUsers", wireType) + } + m.TotalUsers = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalUsers |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositsEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DepositsEnabled = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalsEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.WithdrawalsEnabled = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNavUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastNavUpdate, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountPendingWithdrawal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmountPendingWithdrawal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingWithdrawalRequests", wireType) + } + m.PendingWithdrawalRequests = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PendingWithdrawalRequests |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *YieldCalculation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: YieldCalculation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: YieldCalculation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDeposits", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalDeposits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalYield", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CalculationTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.CalculationTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DepositResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DepositResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountDeposited", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AmountDeposited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WithdrawalResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WithdrawalResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithdrawalResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrincipalWithdrawn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PrincipalWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldWithdrawn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldWithdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeesPaid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FeesPaid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmountReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmountReceived.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *YieldDistribution) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: YieldDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: YieldDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalYield", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YieldRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YieldRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.DistributionTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EligibleDepositors", wireType) + } + m.EligibleDepositors = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EligibleDepositors |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DepositLimit) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DepositLimit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositLimit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUserDepositPerWindow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxUserDepositPerWindow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxBlockDepositVolume", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxBlockDepositVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalDepositCap", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.GlobalDepositCap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositCooldownBlocks", wireType) + } + m.DepositCooldownBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositCooldownBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VelocityWindowBlocks", wireType) + } + m.VelocityWindowBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VelocityWindowBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxDepositsPerWindow", wireType) + } + m.MaxDepositsPerWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxDepositsPerWindow |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DepositVelocity) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DepositVelocity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositVelocity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastDepositBlock", wireType) + } + m.LastDepositBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastDepositBlock |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecentDepositCount", wireType) + } + m.RecentDepositCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RecentDepositCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecentDepositVolume", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RecentDepositVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeWindowBlocks", wireType) + } + m.TimeWindowBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TimeWindowBlocks |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TWAPConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TWAPConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TWAPConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enabled = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WindowSize", wireType) + } + m.WindowSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WindowSize |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinSnapshotInterval", wireType) + } + m.MinSnapshotInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinSnapshotInterval |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSnapshotAge", wireType) + } + m.MaxSnapshotAge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxSnapshotAge |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NAVSnapshot) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NAVSnapshot: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NAVSnapshot: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nav", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Nav.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalShares", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVaults + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVaults + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVaults + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalShares.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVaults(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVaults + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipVaults(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, ErrIntOverflowVaults + } + 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, ErrIntOverflowVaults + } + 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, ErrIntOverflowVaults + } + 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, ErrInvalidLengthVaults + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupVaults + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthVaults + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthVaults = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowVaults = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupVaults = fmt.Errorf("proto: unexpected end of group") +) From c13aa2610d192873db8c2b093f202c46579afaa1 Mon Sep 17 00:00:00 2001 From: Zaki Date: Tue, 14 Oct 2025 14:05:55 -0400 Subject: [PATCH 2/4] feat: Add Vaults V2 state management layer This PR implements the complete state storage and retrieval layer for Vaults V2. Key features: - CRUD operations for all vault state entities: - Vault configuration and parameters - User shares and positions - Remote positions (cross-chain) - Inflight funds tracking - Withdrawal queue management - Cross-chain routes - Oracle configuration - NAV tracking and snapshots - Deposit velocity and limits - Iterator support for efficient state queries - Proper key prefixes and storage organization (based on types/vaults/v2/keys.go) - Type-safe getters and setters This provides the foundation for all business logic in subsequent PRs. Depends on: PR #1 (Protocol Buffers) --- keeper/state_vaults_v2.go | 1112 +++++++++++++++++++++++++++++++++++++ 1 file changed, 1112 insertions(+) create mode 100644 keeper/state_vaults_v2.go diff --git a/keeper/state_vaults_v2.go b/keeper/state_vaults_v2.go new file mode 100644 index 00000000..5ac47685 --- /dev/null +++ b/keeper/state_vaults_v2.go @@ -0,0 +1,1112 @@ +// SPDX-License-Identifier: BUSL-1.1 +// +// Copyright (C) 2025, NASD Inc. All rights reserved. +// Use of this software is governed by the Business Source License included +// in the LICENSE file of this repository and at www.mariadb.com/bsl11. +// +// ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY +// TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER +// VERSIONS OF THE LICENSED WORK. +// +// THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF +// LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF +// LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE). +// +// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +// TITLE. + +package keeper + +import ( + "context" + "errors" + "strconv" + + "cosmossdk.io/collections" + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + + vaultsv2 "dollar.noble.xyz/v3/types/vaults/v2" +) + +// RemotePositionEntry represents a remote position entry with its identifier and chain metadata. +type RemotePositionEntry struct { + ID uint64 + Position vaultsv2.RemotePosition + ChainID uint32 +} + +// GetVaultsV2Params returns the currently configured vaults v2 parameters. +// When no parameters have been stored yet the zero-value configuration is +// returned without error. +func (k *Keeper) GetVaultsV2Params(ctx context.Context) (vaultsv2.Params, error) { + params, err := k.VaultsV2Params.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.Params{}, nil + } + return vaultsv2.Params{}, err + } + + return params, nil +} + +// SetVaultsV2Params persists the supplied params to state. +func (k *Keeper) SetVaultsV2Params(ctx context.Context, params vaultsv2.Params) error { + return k.VaultsV2Params.Set(ctx, params) +} + +// GetVaultsV2Config returns the stored vault configuration or a zero-value +// config when it has not been set yet. +func (k *Keeper) GetVaultsV2Config(ctx context.Context) (vaultsv2.VaultConfig, error) { + config, err := k.VaultsV2Config.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.VaultConfig{}, nil + } + return vaultsv2.VaultConfig{}, err + } + + return config, nil +} + +// SetVaultsV2Config persists the provided vault configuration in state. +func (k *Keeper) SetVaultsV2Config(ctx context.Context, config vaultsv2.VaultConfig) error { + return k.VaultsV2Config.Set(ctx, config) +} + +// GetVaultsV2VaultState fetches the aggregate vault state from storage. If the +// state has not been initialised yet a zero-value instance is returned so +// callers can update it safely. +func (k *Keeper) GetVaultsV2VaultState(ctx context.Context) (vaultsv2.VaultState, error) { + state, err := k.VaultsV2VaultState.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.VaultState{}, nil + } + return vaultsv2.VaultState{}, err + } + + return state, nil +} + +// SetVaultsV2VaultState stores the provided aggregate vault state. +func (k *Keeper) SetVaultsV2VaultState(ctx context.Context, state vaultsv2.VaultState) error { + return k.VaultsV2VaultState.Set(ctx, state) +} + +// GetVaultsV2NAVInfo returns the cached NAV information or a zero-value copy +// when unset. +func (k *Keeper) GetVaultsV2NAVInfo(ctx context.Context) (vaultsv2.NAVInfo, error) { + nav, err := k.VaultsV2NAVInfo.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.NAVInfo{}, nil + } + return vaultsv2.NAVInfo{}, err + } + + return nav, nil +} + +// SetVaultsV2NAVInfo updates the cached NAV information in storage. +func (k *Keeper) SetVaultsV2NAVInfo(ctx context.Context, nav vaultsv2.NAVInfo) error { + return k.VaultsV2NAVInfo.Set(ctx, nav) +} + +// GetVaultsV2UserPosition returns the position for the supplied account. The +// boolean flag indicates whether the position existed in state. +func (k *Keeper) GetVaultsV2UserPosition(ctx context.Context, address sdk.AccAddress) (vaultsv2.UserPosition, bool, error) { + position, err := k.VaultsV2UserPositions.Get(ctx, address) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.UserPosition{}, false, nil + } + return vaultsv2.UserPosition{}, false, err + } + + return position, true, nil +} + +// SetVaultsV2UserPosition writes the provided user position to state. +func (k *Keeper) SetVaultsV2UserPosition(ctx context.Context, address sdk.AccAddress, position vaultsv2.UserPosition) error { + return k.VaultsV2UserPositions.Set(ctx, address, position) +} + +// DeleteVaultsV2UserPosition removes an existing position entry from state. +func (k *Keeper) DeleteVaultsV2UserPosition(ctx context.Context, address sdk.AccAddress) error { + return k.VaultsV2UserPositions.Remove(ctx, address) +} + +// IterateVaultsV2UserPositions walks every stored user position and invokes +// the supplied callback. Returning true from the callback stops the iteration +// early. +func (k *Keeper) IterateVaultsV2UserPositions(ctx context.Context, fn func(address sdk.AccAddress, position vaultsv2.UserPosition) (bool, error)) error { + return k.VaultsV2UserPositions.Walk(ctx, nil, func(key []byte, position vaultsv2.UserPosition) (bool, error) { + return fn(sdk.AccAddress(key), position) + }) +} + +// NextVaultsV2WithdrawalID increments and returns the next withdrawal queue +// identifier. Identifiers start at one for readability when exposed to users. +func (k *Keeper) NextVaultsV2WithdrawalID(ctx context.Context) (uint64, error) { + next, err := k.VaultsV2WithdrawalNextID.Get(ctx) + if err != nil { + if !errors.Is(err, collections.ErrNotFound) { + return 0, err + } + + next = 1 + } else { + next++ + } + + if err := k.VaultsV2WithdrawalNextID.Set(ctx, next); err != nil { + return 0, err + } + + return next, nil +} + +// PeekVaultsV2WithdrawalID returns the currently stored next withdrawal ID +// without mutating state. The zero value indicates that no withdrawals have +// been created yet. +func (k *Keeper) PeekVaultsV2WithdrawalID(ctx context.Context) (uint64, error) { + id, err := k.VaultsV2WithdrawalNextID.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return 0, nil + } + return 0, err + } + + return id, nil +} + +// SetVaultsV2Withdrawal stores a withdrawal request under the provided id. The +// request's RequestId field is normalised to the decimal representation of the +// identifier to keep string-based lookups consistent. +func (k *Keeper) SetVaultsV2Withdrawal(ctx context.Context, id uint64, request vaultsv2.WithdrawalRequest) error { + request.RequestId = strconv.FormatUint(id, 10) + return k.VaultsV2WithdrawalQueue.Set(ctx, id, request) +} + +// NextVaultsV2RemotePositionID increments and returns the next remote position identifier. +func (k *Keeper) NextVaultsV2RemotePositionID(ctx context.Context) (uint64, error) { + next, err := k.VaultsV2RemotePositionNextID.Get(ctx) + if err != nil { + if !errors.Is(err, collections.ErrNotFound) { + return 0, err + } + next = 1 + } else { + next++ + } + + if err := k.VaultsV2RemotePositionNextID.Set(ctx, next); err != nil { + return 0, err + } + + return next, nil +} + +// GetVaultsV2RemotePosition fetches a remote position entry by id. +func (k *Keeper) GetVaultsV2RemotePosition(ctx context.Context, id uint64) (vaultsv2.RemotePosition, bool, error) { + position, err := k.VaultsV2RemotePositions.Get(ctx, id) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.RemotePosition{}, false, nil + } + return vaultsv2.RemotePosition{}, false, err + } + + return position, true, nil +} + +// SetVaultsV2RemotePosition stores a remote position entry. +func (k *Keeper) SetVaultsV2RemotePosition(ctx context.Context, id uint64, position vaultsv2.RemotePosition) error { + return k.VaultsV2RemotePositions.Set(ctx, id, position) +} + +// DeleteVaultsV2RemotePosition removes a remote position entry and associated metadata. +func (k *Keeper) DeleteVaultsV2RemotePosition(ctx context.Context, id uint64) error { + if err := k.VaultsV2RemotePositions.Remove(ctx, id); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + if err := k.VaultsV2RemotePositionChains.Remove(ctx, id); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + return nil +} + +// GetVaultsV2RemotePositionChainID returns the chain identifier associated with a remote position. +func (k *Keeper) GetVaultsV2RemotePositionChainID(ctx context.Context, id uint64) (uint32, bool, error) { + chainID, err := k.VaultsV2RemotePositionChains.Get(ctx, id) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return 0, false, nil + } + return 0, false, err + } + + return chainID, true, nil +} + +// SetVaultsV2RemotePositionChainID associates a chain identifier with a remote position. +func (k *Keeper) SetVaultsV2RemotePositionChainID(ctx context.Context, id uint64, chainID uint32) error { + return k.VaultsV2RemotePositionChains.Set(ctx, id, chainID) +} + +// NextVaultsV2CrossChainRouteID increments and returns the next cross-chain route identifier. +func (k *Keeper) NextVaultsV2CrossChainRouteID(ctx context.Context) (uint32, error) { + next, err := k.VaultsV2CrossChainRouteNextID.Get(ctx) + if err != nil { + if !errors.Is(err, collections.ErrNotFound) { + return 0, err + } + + next = 1 + } else { + next++ + } + + if err := k.VaultsV2CrossChainRouteNextID.Set(ctx, next); err != nil { + return 0, err + } + + return next, nil +} + +// SetVaultsV2CrossChainRoute stores a cross-chain route configuration under the provided identifier. +func (k *Keeper) SetVaultsV2CrossChainRoute(ctx context.Context, id uint32, route vaultsv2.CrossChainRoute) error { + return k.VaultsV2CrossChainRoutes.Set(ctx, id, route) +} + +// GetVaultsV2CrossChainRoute fetches a cross-chain route configuration by identifier. +func (k *Keeper) GetVaultsV2CrossChainRoute(ctx context.Context, id uint32) (vaultsv2.CrossChainRoute, bool, error) { + route, err := k.VaultsV2CrossChainRoutes.Get(ctx, id) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.CrossChainRoute{}, false, nil + } + + return vaultsv2.CrossChainRoute{}, false, err + } + + return route, true, nil +} + +// DeleteVaultsV2CrossChainRoute removes a cross-chain route configuration. +func (k *Keeper) DeleteVaultsV2CrossChainRoute(ctx context.Context, id uint32) error { + return k.VaultsV2CrossChainRoutes.Remove(ctx, id) +} + +// IterateVaultsV2CrossChainRoutes walks each stored cross-chain route and executes the supplied callback. +func (k *Keeper) IterateVaultsV2CrossChainRoutes(ctx context.Context, fn func(uint32, vaultsv2.CrossChainRoute) (bool, error)) error { + return k.VaultsV2CrossChainRoutes.Walk(ctx, nil, fn) +} + +// SetVaultsV2EnrolledOracle stores an enrolled oracle configuration. +func (k *Keeper) SetVaultsV2EnrolledOracle(ctx context.Context, oracleID string, oracle vaultsv2.EnrolledOracle) error { + return k.VaultsV2EnrolledOracles.Set(ctx, oracleID, oracle) +} + +// GetVaultsV2EnrolledOracle retrieves an enrolled oracle configuration. +func (k *Keeper) GetVaultsV2EnrolledOracle(ctx context.Context, oracleID string) (vaultsv2.EnrolledOracle, bool, error) { + oracle, err := k.VaultsV2EnrolledOracles.Get(ctx, oracleID) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.EnrolledOracle{}, false, nil + } + return vaultsv2.EnrolledOracle{}, false, err + } + + return oracle, true, nil +} + +// DeleteVaultsV2EnrolledOracle removes an enrolled oracle configuration. +func (k *Keeper) DeleteVaultsV2EnrolledOracle(ctx context.Context, oracleID string) error { + return k.VaultsV2EnrolledOracles.Remove(ctx, oracleID) +} + +// IterateVaultsV2EnrolledOracles iterates over all enrolled oracles. +func (k *Keeper) IterateVaultsV2EnrolledOracles(ctx context.Context, fn func(string, vaultsv2.EnrolledOracle) (bool, error)) error { + return k.VaultsV2EnrolledOracles.Walk(ctx, nil, fn) +} + +// GetVaultsV2OracleParams returns the stored oracle governance parameters. +func (k *Keeper) GetVaultsV2OracleParams(ctx context.Context) (vaultsv2.OracleGovernanceParams, error) { + params, err := k.VaultsV2OracleParams.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.OracleGovernanceParams{}, nil + } + return vaultsv2.OracleGovernanceParams{}, err + } + + return params, nil +} + +// SetVaultsV2OracleParams stores oracle governance parameters. +func (k *Keeper) SetVaultsV2OracleParams(ctx context.Context, params vaultsv2.OracleGovernanceParams) error { + return k.VaultsV2OracleParams.Set(ctx, params) +} + +// GetVaultsV2InflightValueByRoute returns the currently tracked inflight value for a route. +func (k *Keeper) GetVaultsV2InflightValueByRoute(ctx context.Context, routeID uint32) (math.Int, error) { + value, err := k.VaultsV2InflightValueByRoute.Get(ctx, routeID) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + + return value, nil +} + +// AddVaultsV2InflightValueByRoute increments the inflight value tracked for the given route. +func (k *Keeper) AddVaultsV2InflightValueByRoute(ctx context.Context, routeID uint32, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2InflightValueByRoute(ctx, routeID) + if err != nil { + return err + } + + current, err = current.SafeAdd(amount) + if err != nil { + return err + } + + return k.VaultsV2InflightValueByRoute.Set(ctx, routeID, current) +} + +// SubtractVaultsV2InflightValueByRoute decrements the inflight value tracked for the given route. +func (k *Keeper) SubtractVaultsV2InflightValueByRoute(ctx context.Context, routeID uint32, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2InflightValueByRoute(ctx, routeID) + if err != nil { + return err + } + + current, err = current.SafeSub(amount) + if err != nil { + return err + } + + if !current.IsPositive() { + if err := k.VaultsV2InflightValueByRoute.Remove(ctx, routeID); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + return nil + } + + return k.VaultsV2InflightValueByRoute.Set(ctx, routeID, current) +} + +// GetAllVaultsV2RemotePositions returns all remote positions stored in state. +func (k *Keeper) GetAllVaultsV2RemotePositions(ctx context.Context) ([]RemotePositionEntry, error) { + var positions []RemotePositionEntry + + err := k.VaultsV2RemotePositions.Walk(ctx, nil, func(id uint64, position vaultsv2.RemotePosition) (bool, error) { + chainID, err := k.VaultsV2RemotePositionChains.Get(ctx, id) + if err != nil { + if !errors.Is(err, collections.ErrNotFound) { + return true, err + } + chainID = 0 + } + + positions = append(positions, RemotePositionEntry{ + ID: id, + Position: position, + ChainID: chainID, + }) + + return false, nil + }) + + return positions, err +} + +// IterateVaultsV2RemotePositions iterates over all remote positions and calls the provided function for each. +func (k *Keeper) IterateVaultsV2RemotePositions(ctx context.Context, fn func(id uint64, position vaultsv2.RemotePosition) (bool, error)) error { + return k.VaultsV2RemotePositions.Walk(ctx, nil, fn) +} + +// GetVaultsV2Withdrawal fetches a withdrawal request by id. +func (k *Keeper) GetVaultsV2Withdrawal(ctx context.Context, id uint64) (vaultsv2.WithdrawalRequest, bool, error) { + req, err := k.VaultsV2WithdrawalQueue.Get(ctx, id) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.WithdrawalRequest{}, false, nil + } + return vaultsv2.WithdrawalRequest{}, false, err + } + + return req, true, nil +} + +// DeleteVaultsV2Withdrawal removes a withdrawal entry by id. +func (k *Keeper) DeleteVaultsV2Withdrawal(ctx context.Context, id uint64) error { + return k.VaultsV2WithdrawalQueue.Remove(ctx, id) +} + +// IterateVaultsV2Withdrawals walks all withdrawal requests invoking the +// callback for each stored entry. +func (k *Keeper) IterateVaultsV2Withdrawals(ctx context.Context, fn func(id uint64, request vaultsv2.WithdrawalRequest) (bool, error)) error { + return k.VaultsV2WithdrawalQueue.Walk(ctx, nil, fn) +} + +// GetAllVaultsV2Withdrawals returns a slice containing every withdrawal request +// currently stored. +func (k *Keeper) GetAllVaultsV2Withdrawals(ctx context.Context) ([]vaultsv2.WithdrawalRequest, error) { + var requests []vaultsv2.WithdrawalRequest + + err := k.IterateVaultsV2Withdrawals(ctx, func(_ uint64, request vaultsv2.WithdrawalRequest) (bool, error) { + requests = append(requests, request) + return false, nil + }) + + return requests, err +} + +// ResetVaultsV2UserPosition clears a user position but returns the prior +// value to the caller so it can be used for downstream processing. +func (k *Keeper) ResetVaultsV2UserPosition(ctx context.Context, address sdk.AccAddress) (vaultsv2.UserPosition, error) { + position, found, err := k.GetVaultsV2UserPosition(ctx, address) + if err != nil { + return vaultsv2.UserPosition{}, err + } + if !found { + return vaultsv2.UserPosition{}, nil + } + + if err := k.DeleteVaultsV2UserPosition(ctx, address); err != nil { + return vaultsv2.UserPosition{}, err + } + + return position, nil +} + +// AddAmountToVaultsV2Totals updates the aggregate vault totals by the supplied +// delta values. Positive amounts increment totals while negative values are +// ignored to avoid panics – callers should use a dedicated decrement helper if +// that behaviour is required. +func (k *Keeper) AddAmountToVaultsV2Totals(ctx context.Context, deposits, accruedYield math.Int) error { + state, err := k.GetVaultsV2VaultState(ctx) + if err != nil { + return err + } + + if deposits.IsPositive() { + if state.TotalDeposits, err = state.TotalDeposits.SafeAdd(deposits); err != nil { + return err + } + if state.TotalNav, err = state.TotalNav.SafeAdd(deposits); err != nil { + return err + } + } + + if accruedYield.IsPositive() { + if state.TotalAccruedYield, err = state.TotalAccruedYield.SafeAdd(accruedYield); err != nil { + return err + } + if state.TotalNav, err = state.TotalNav.SafeAdd(accruedYield); err != nil { + return err + } + } + + return k.SetVaultsV2VaultState(ctx, state) +} + +// SubtractAmountFromVaultsV2Totals decrements the aggregate vault totals by the +// supplied deltas. +func (k *Keeper) SubtractAmountFromVaultsV2Totals(ctx context.Context, deposits, accruedYield math.Int) error { + state, err := k.GetVaultsV2VaultState(ctx) + if err != nil { + return err + } + + if deposits.IsPositive() { + if state.TotalDeposits, err = state.TotalDeposits.SafeSub(deposits); err != nil { + return err + } + if state.TotalNav, err = state.TotalNav.SafeSub(deposits); err != nil { + return err + } + } + + if accruedYield.IsPositive() { + if state.TotalAccruedYield, err = state.TotalAccruedYield.SafeSub(accruedYield); err != nil { + return err + } + if state.TotalNav, err = state.TotalNav.SafeSub(accruedYield); err != nil { + return err + } + } + + return k.SetVaultsV2VaultState(ctx, state) +} + +// GetVaultsV2UserShares returns the share balance for a user. Missing entries +// are treated as zero without error. +func (k *Keeper) GetVaultsV2UserShares(ctx context.Context, address sdk.AccAddress) (math.Int, error) { + shares, err := k.VaultsV2UserShares.Get(ctx, address) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + + return shares, nil +} + +// SetVaultsV2UserShares updates the share balance for a user, deleting the +// entry when the balance reaches zero to keep the store compact. +func (k *Keeper) SetVaultsV2UserShares(ctx context.Context, address sdk.AccAddress, shares math.Int) error { + if !shares.IsPositive() { + if err := k.VaultsV2UserShares.Remove(ctx, address); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + return nil + } + + return k.VaultsV2UserShares.Set(ctx, address, shares) +} + +// GetVaultsV2TotalShares returns the aggregate share supply recorded on-chain. +func (k *Keeper) GetVaultsV2TotalShares(ctx context.Context) (math.Int, error) { + total, err := k.VaultsV2TotalShares.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + + return total, nil +} + +// SetVaultsV2TotalShares overwrites the aggregate share supply in storage. +func (k *Keeper) SetVaultsV2TotalShares(ctx context.Context, shares math.Int) error { + return k.VaultsV2TotalShares.Set(ctx, shares) +} + +// GetVaultsV2PendingDeploymentFunds returns the amount of deposits awaiting +// deployment to remote positions. +func (k *Keeper) GetVaultsV2PendingDeploymentFunds(ctx context.Context) (math.Int, error) { + amount, err := k.VaultsV2PendingDeploymentFunds.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + + return amount, nil +} + +// AddVaultsV2PendingDeploymentFunds increases the tracked pending deployment +// balance by the supplied amount. +func (k *Keeper) AddVaultsV2PendingDeploymentFunds(ctx context.Context, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2PendingDeploymentFunds(ctx) + if err != nil { + return err + } + + current, err = current.SafeAdd(amount) + if err != nil { + return err + } + + return k.VaultsV2PendingDeploymentFunds.Set(ctx, current) +} + +// SubtractVaultsV2PendingDeploymentFunds decreases the pending deployment +// balance, removing the entry when it reaches zero. +func (k *Keeper) SubtractVaultsV2PendingDeploymentFunds(ctx context.Context, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2PendingDeploymentFunds(ctx) + if err != nil { + return err + } + + current, err = current.SafeSub(amount) + if err != nil { + return err + } + + if !current.IsPositive() { + if err := k.VaultsV2PendingDeploymentFunds.Remove(ctx); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + return nil + } + + return k.VaultsV2PendingDeploymentFunds.Set(ctx, current) +} + +// GetVaultsV2PendingWithdrawalAmount returns the aggregate amount linked to +// outstanding withdrawal requests. +func (k *Keeper) GetVaultsV2PendingWithdrawalAmount(ctx context.Context) (math.Int, error) { + amount, err := k.VaultsV2PendingWithdrawalsAmount.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + + return amount, nil +} + +// AddVaultsV2PendingWithdrawalAmount increments the tracked pending withdrawal +// amount by the supplied value. +func (k *Keeper) AddVaultsV2PendingWithdrawalAmount(ctx context.Context, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2PendingWithdrawalAmount(ctx) + if err != nil { + return err + } + + current, err = current.SafeAdd(amount) + if err != nil { + return err + } + + return k.VaultsV2PendingWithdrawalsAmount.Set(ctx, current) +} + +// SubtractVaultsV2PendingWithdrawalAmount decrements the pending withdrawal +// amount, removing the entry when it reaches zero. +func (k *Keeper) SubtractVaultsV2PendingWithdrawalAmount(ctx context.Context, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2PendingWithdrawalAmount(ctx) + if err != nil { + return err + } + + current, err = current.SafeSub(amount) + if err != nil { + return err + } + + if !current.IsPositive() { + if err := k.VaultsV2PendingWithdrawalsAmount.Remove(ctx); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + return nil + } + + return k.VaultsV2PendingWithdrawalsAmount.Set(ctx, current) +} + +// GetVaultsV2PendingWithdrawalDistribution returns the amount awaiting distribution post remote withdrawals. +func (k *Keeper) GetVaultsV2PendingWithdrawalDistribution(ctx context.Context) (math.Int, error) { + amount, err := k.VaultsV2PendingWithdrawalDistribution.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + + return amount, nil +} + +// AddVaultsV2PendingWithdrawalDistribution increments the distribution balance. +func (k *Keeper) AddVaultsV2PendingWithdrawalDistribution(ctx context.Context, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2PendingWithdrawalDistribution(ctx) + if err != nil { + return err + } + + current, err = current.SafeAdd(amount) + if err != nil { + return err + } + + return k.VaultsV2PendingWithdrawalDistribution.Set(ctx, current) +} + +// SubtractVaultsV2PendingWithdrawalDistribution decrements the distribution balance. +func (k *Keeper) SubtractVaultsV2PendingWithdrawalDistribution(ctx context.Context, amount math.Int) error { + if !amount.IsPositive() { + return nil + } + + current, err := k.GetVaultsV2PendingWithdrawalDistribution(ctx) + if err != nil { + return err + } + + current, err = current.SafeSub(amount) + if err != nil { + return err + } + + if !current.IsPositive() { + if err := k.VaultsV2PendingWithdrawalDistribution.Remove(ctx); err != nil && !errors.Is(err, collections.ErrNotFound) { + return err + } + return nil + } + + return k.VaultsV2PendingWithdrawalDistribution.Set(ctx, current) +} + +// IncrementVaultsV2TotalUsers increases the total user count tracked in the +// aggregate vault state. +func (k *Keeper) IncrementVaultsV2TotalUsers(ctx context.Context) error { + state, err := k.GetVaultsV2VaultState(ctx) + if err != nil { + return err + } + + state.TotalUsers++ + + return k.SetVaultsV2VaultState(ctx, state) +} + +// DecrementVaultsV2TotalUsers reduces the tracked user count, guarding against +// underflow. +func (k *Keeper) DecrementVaultsV2TotalUsers(ctx context.Context) error { + state, err := k.GetVaultsV2VaultState(ctx) + if err != nil { + return err + } + + if state.TotalUsers > 0 { + state.TotalUsers-- + } + + return k.SetVaultsV2VaultState(ctx, state) +} + +func (k *Keeper) getDepositLimits(ctx context.Context) (vaultsv2.DepositLimit, bool, error) { + limits, err := k.VaultsV2DepositLimits.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.DepositLimit{}, false, nil + } + return vaultsv2.DepositLimit{}, false, err + } + return limits, true, nil +} + +func (k *Keeper) setDepositLimits(ctx context.Context, limits vaultsv2.DepositLimit) error { + return k.VaultsV2DepositLimits.Set(ctx, limits) +} + +func (k *Keeper) getDepositVelocity(ctx context.Context, addr sdk.AccAddress) (vaultsv2.DepositVelocity, bool, error) { + velocity, err := k.VaultsV2DepositVelocity.Get(ctx, addr) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.DepositVelocity{}, false, nil + } + return vaultsv2.DepositVelocity{}, false, err + } + return velocity, true, nil +} + +func (k *Keeper) setDepositVelocity(ctx context.Context, addr sdk.AccAddress, velocity vaultsv2.DepositVelocity) error { + return k.VaultsV2DepositVelocity.Set(ctx, addr, velocity) +} + +func (k *Keeper) recordUserDeposit(ctx context.Context, addr sdk.AccAddress, block int64, amount math.Int) error { + key := collections.Join(addr.Bytes(), block) + return k.VaultsV2UserDepositHistory.Set(ctx, key, amount) +} + +func (k *Keeper) incrementBlockDeposit(ctx context.Context, block int64, amount math.Int) error { + current, err := k.VaultsV2BlockDepositVolume.Get(ctx, block) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return k.VaultsV2BlockDepositVolume.Set(ctx, block, amount) + } + return err + } + updated, err := current.SafeAdd(amount) + if err != nil { + return err + } + return k.VaultsV2BlockDepositVolume.Set(ctx, block, updated) +} + +func (k *Keeper) getBlockDepositVolume(ctx context.Context, block int64) (math.Int, error) { + volume, err := k.VaultsV2BlockDepositVolume.Get(ctx, block) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return math.ZeroInt(), nil + } + return math.ZeroInt(), err + } + return volume, nil +} + +// GetVaultsV2RemotePositionOracle fetches the oracle tracking information for +// a remote position. The boolean return value indicates whether the oracle was +// found in state. +func (k *Keeper) GetVaultsV2RemotePositionOracle(ctx context.Context, positionID uint64) (vaultsv2.RemotePositionOracle, bool, error) { + oracle, err := k.VaultsV2RemotePositionOracles.Get(ctx, positionID) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.RemotePositionOracle{}, false, nil + } + + return vaultsv2.RemotePositionOracle{}, false, err + } + + return oracle, true, nil +} + +// SetVaultsV2RemotePositionOracle persists the provided oracle configuration +// for the given position identifier. +func (k *Keeper) SetVaultsV2RemotePositionOracle(ctx context.Context, positionID uint64, oracle vaultsv2.RemotePositionOracle) error { + oracle.PositionId = positionID + return k.VaultsV2RemotePositionOracles.Set(ctx, positionID, oracle) +} + +// DeleteVaultsV2RemotePositionOracle removes the oracle entry for a position. +func (k *Keeper) DeleteVaultsV2RemotePositionOracle(ctx context.Context, positionID uint64) error { + return k.VaultsV2RemotePositionOracles.Remove(ctx, positionID) +} + +// IterateVaultsV2RemotePositionOracles walks all stored remote position +// oracles invoking the supplied callback for each entry. +func (k *Keeper) IterateVaultsV2RemotePositionOracles(ctx context.Context, fn func(uint64, vaultsv2.RemotePositionOracle) (bool, error)) error { + return k.VaultsV2RemotePositionOracles.Walk(ctx, nil, fn) +} + +// NextVaultsV2InflightID increments and returns the next inflight fund identifier. +func (k *Keeper) NextVaultsV2InflightID(ctx context.Context) (uint64, error) { + next, err := k.VaultsV2InflightNextID.Get(ctx) + if err != nil { + if !errors.Is(err, collections.ErrNotFound) { + return 0, err + } + next = 1 + } else { + next++ + } + + if err := k.VaultsV2InflightNextID.Set(ctx, next); err != nil { + return 0, err + } + + return next, nil +} + +// SetVaultsV2InflightFund stores the provided inflight fund under its identifier. +func (k *Keeper) SetVaultsV2InflightFund(ctx context.Context, fund vaultsv2.InflightFund) error { + if fund.Id == "" { + return errors.New("inflight fund identifier cannot be empty") + } + + return k.VaultsV2InflightFunds.Set(ctx, fund.Id, fund) +} + +// GetVaultsV2InflightFund fetches an inflight fund by its identifier. +func (k *Keeper) GetVaultsV2InflightFund(ctx context.Context, id string) (vaultsv2.InflightFund, bool, error) { + fund, err := k.VaultsV2InflightFunds.Get(ctx, id) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.InflightFund{}, false, nil + } + + return vaultsv2.InflightFund{}, false, err + } + + return fund, true, nil +} + +// DeleteVaultsV2InflightFund removes an inflight fund entry from state. +func (k *Keeper) DeleteVaultsV2InflightFund(ctx context.Context, id string) error { + return k.VaultsV2InflightFunds.Remove(ctx, id) +} + +// IterateVaultsV2InflightFunds walks all inflight fund entries invoking the supplied callback. +func (k *Keeper) IterateVaultsV2InflightFunds(ctx context.Context, fn func(string, vaultsv2.InflightFund) (bool, error)) error { + return k.VaultsV2InflightFunds.Walk(ctx, nil, fn) +} + +// TWAP (Time-Weighted Average Price) Snapshot Management + +// NextVaultsV2NAVSnapshotID increments and returns the next NAV snapshot identifier. +func (k *Keeper) NextVaultsV2NAVSnapshotID(ctx context.Context) (int64, error) { + next, err := k.VaultsV2NAVSnapshotNextID.Get(ctx) + if err != nil { + if !errors.Is(err, collections.ErrNotFound) { + return 0, err + } + next = 1 + } else { + next++ + } + + if err := k.VaultsV2NAVSnapshotNextID.Set(ctx, next); err != nil { + return 0, err + } + + return next, nil +} + +// AddVaultsV2NAVSnapshot records a new NAV snapshot for TWAP calculations. +func (k *Keeper) AddVaultsV2NAVSnapshot(ctx context.Context, snapshot vaultsv2.NAVSnapshot) error { + id, err := k.NextVaultsV2NAVSnapshotID(ctx) + if err != nil { + return err + } + + return k.VaultsV2NAVSnapshots.Set(ctx, id, snapshot) +} + +// GetVaultsV2NAVSnapshot retrieves a specific NAV snapshot by ID. +func (k *Keeper) GetVaultsV2NAVSnapshot(ctx context.Context, id int64) (vaultsv2.NAVSnapshot, bool, error) { + snapshot, err := k.VaultsV2NAVSnapshots.Get(ctx, id) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return vaultsv2.NAVSnapshot{}, false, nil + } + return vaultsv2.NAVSnapshot{}, false, err + } + + return snapshot, true, nil +} + +// GetRecentVaultsV2NAVSnapshots retrieves the N most recent NAV snapshots. +// Returns snapshots in reverse chronological order (newest first). +func (k *Keeper) GetRecentVaultsV2NAVSnapshots(ctx context.Context, limit int) ([]vaultsv2.NAVSnapshot, error) { + if limit <= 0 { + return nil, nil + } + + currentID, err := k.VaultsV2NAVSnapshotNextID.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return nil, nil + } + return nil, err + } + + snapshots := make([]vaultsv2.NAVSnapshot, 0, limit) + + // Iterate backwards from most recent + for i := currentID - 1; i > 0 && len(snapshots) < limit; i-- { + snapshot, found, err := k.GetVaultsV2NAVSnapshot(ctx, i) + if err != nil { + return nil, err + } + if found { + snapshots = append(snapshots, snapshot) + } + } + + return snapshots, nil +} + +// PruneOldVaultsV2NAVSnapshots removes snapshots older than the specified age. +// This helps keep storage bounded for TWAP calculations. +func (k *Keeper) PruneOldVaultsV2NAVSnapshots(ctx context.Context, maxAge int64, currentTime int64) (int, error) { + pruned := 0 + cutoffTime := currentTime - maxAge + + // Get current max ID + currentID, err := k.VaultsV2NAVSnapshotNextID.Get(ctx) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return 0, nil + } + return 0, err + } + + // Iterate through all snapshots and remove old ones + for i := int64(1); i < currentID; i++ { + snapshot, found, err := k.GetVaultsV2NAVSnapshot(ctx, i) + if err != nil { + return pruned, err + } + if !found { + continue + } + + if snapshot.Timestamp.Unix() < cutoffTime { + if err := k.VaultsV2NAVSnapshots.Remove(ctx, i); err != nil { + return pruned, err + } + pruned++ + } + } + + return pruned, nil +} + +// GetVaultsV2DepositLimits retrieves the deposit limits configuration. +func (k *Keeper) GetVaultsV2DepositLimits(ctx context.Context) (vaultsv2.DepositLimit, error) { + limits, err := k.VaultsV2DepositLimits.Get(ctx) + if err != nil { + return vaultsv2.DepositLimit{}, err + } + return limits, nil +} + +// SetVaultsV2DepositLimits sets the deposit limits configuration. +func (k *Keeper) SetVaultsV2DepositLimits(ctx context.Context, limits vaultsv2.DepositLimit) error { + return k.VaultsV2DepositLimits.Set(ctx, limits) +} + +// GetVaultsV2DepositVelocity retrieves the deposit velocity for a user. +func (k *Keeper) GetVaultsV2DepositVelocity(ctx context.Context, user []byte) (vaultsv2.DepositVelocity, error) { + velocity, err := k.VaultsV2DepositVelocity.Get(ctx, user) + if err != nil { + return vaultsv2.DepositVelocity{}, err + } + return velocity, nil +} + +// SetVaultsV2DepositVelocity sets the deposit velocity for a user. +func (k *Keeper) SetVaultsV2DepositVelocity(ctx context.Context, user []byte, velocity vaultsv2.DepositVelocity) error { + return k.VaultsV2DepositVelocity.Set(ctx, user, velocity) +} + +// GetVaultsV2BlockDepositVolume retrieves the total deposit volume for a specific block. +func (k *Keeper) GetVaultsV2BlockDepositVolume(ctx context.Context, blockHeight int64) (math.Int, error) { + volume, err := k.VaultsV2BlockDepositVolume.Get(ctx, blockHeight) + if err != nil { + return math.ZeroInt(), err + } + return volume, nil +} + +// SetVaultsV2BlockDepositVolume sets the total deposit volume for a specific block. +func (k *Keeper) SetVaultsV2BlockDepositVolume(ctx context.Context, blockHeight int64, volume math.Int) error { + return k.VaultsV2BlockDepositVolume.Set(ctx, blockHeight, volume) +} From 03474fad35e9468fd2d1bea930c26a26c016c204 Mon Sep 17 00:00:00 2001 From: Zaki Date: Tue, 14 Oct 2025 17:01:29 -0400 Subject: [PATCH 3/4] =?UTF-8?q?Add=20pruning=20functions=20for=20user=20de?= =?UTF-8?q?posit=20history=20and=20old=20NAV=20snapshots=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keeper/state_vaults_v2.go | 68 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/keeper/state_vaults_v2.go b/keeper/state_vaults_v2.go index 5ac47685..fa73bd8f 100644 --- a/keeper/state_vaults_v2.go +++ b/keeper/state_vaults_v2.go @@ -1037,6 +1037,11 @@ func (k *Keeper) GetRecentVaultsV2NAVSnapshots(ctx context.Context, limit int) ( // This helps keep storage bounded for TWAP calculations. func (k *Keeper) PruneOldVaultsV2NAVSnapshots(ctx context.Context, maxAge int64, currentTime int64) (int, error) { pruned := 0 + // Early return if chain is too young to prune + if maxAge >= currentTime { + return 0, nil // Nothing to prune yet + } + cutoffTime := currentTime - maxAge // Get current max ID @@ -1097,6 +1102,69 @@ func (k *Keeper) SetVaultsV2DepositVelocity(ctx context.Context, user []byte, ve return k.VaultsV2DepositVelocity.Set(ctx, user, velocity) } +// isUserPositionEmpty checks if a user has completely exited the vault. +// A position is considered empty when all deposits have been withdrawn and no pending operations exist. +func isUserPositionEmpty(position vaultsv2.UserPosition) bool { + return position.DepositAmount.IsZero() && + position.AccruedYield.IsZero() && + position.AmountPendingWithdrawal.IsZero() && + position.ActiveWithdrawalRequests == 0 +} + +// PruneUserDepositHistory removes all deposit history entries for a user. +// This should only be called when the user has fully withdrawn all funds. +// Returns the number of entries pruned and any error encountered. +func (k *Keeper) PruneUserDepositHistory(ctx context.Context, userAddr sdk.AccAddress) (int, error) { + pruned := 0 + + // First, verify the user has no active position + position, err := k.VaultsV2UserPositions.Get(ctx, userAddr.Bytes()) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + // No position exists, safe to prune + } else { + return 0, err + } + } else if !isUserPositionEmpty(position) { + // User still has an active position, don't prune + return 0, nil + } + + // Collect all deposit history entries for this user + var toDelete []collections.Pair[[]byte, int64] + + // Create a range that matches all entries for this user + // The key is Pair[userAddr, blockHeight], so we want all entries where K1() == userAddr + err = k.VaultsV2UserDepositHistory.Walk(ctx, nil, func(key collections.Pair[[]byte, int64], amount math.Int) (bool, error) { + // Check if this entry belongs to our user + if sdk.AccAddress(key.K1()).Equals(userAddr) { + toDelete = append(toDelete, key) + } + return false, nil + }) + + if err != nil { + return pruned, err + } + + // Delete all marked entries + for _, key := range toDelete { + if err := k.VaultsV2UserDepositHistory.Remove(ctx, key); err != nil { + return pruned, err + } + pruned++ + } + + // Also clean up deposit velocity tracking if position is empty + if pruned > 0 { + if err := k.VaultsV2DepositVelocity.Remove(ctx, userAddr.Bytes()); err != nil && !errors.Is(err, collections.ErrNotFound) { + return pruned, err + } + } + + return pruned, nil +} + // GetVaultsV2BlockDepositVolume retrieves the total deposit volume for a specific block. func (k *Keeper) GetVaultsV2BlockDepositVolume(ctx context.Context, blockHeight int64) (math.Int, error) { volume, err := k.VaultsV2BlockDepositVolume.Get(ctx, blockHeight) From 6c7ec6da7aca788c3888f7762d19c5c598f713b1 Mon Sep 17 00:00:00 2001 From: Zaki Date: Tue, 14 Oct 2025 17:26:01 -0400 Subject: [PATCH 4/4] docs: Improve documentation for internal and public deposit velocity helpers - Add detailed docs for getDepositVelocity/setDepositVelocity (internal helpers) - Clarify difference between internal (returns found bool) vs public (simpler error handling) - Document recordUserDeposit, incrementBlockDeposit, getBlockDepositVolume helpers - Explain when to use internal vs public APIs - Cross-reference related functions (e.g., PruneUserDepositHistory) This makes the codebase more maintainable by clearly explaining: 1. Why both private and public versions exist 2. When to use each version 3. What each helper function does in the deposit tracking system --- keeper/state_vaults_v2.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/keeper/state_vaults_v2.go b/keeper/state_vaults_v2.go index fa73bd8f..98b01676 100644 --- a/keeper/state_vaults_v2.go +++ b/keeper/state_vaults_v2.go @@ -826,6 +826,10 @@ func (k *Keeper) setDepositLimits(ctx context.Context, limits vaultsv2.DepositLi return k.VaultsV2DepositLimits.Set(ctx, limits) } +// getDepositVelocity is an internal helper that retrieves deposit velocity with a found flag. +// This is used by message handlers that need to distinguish between "not found" and "storage error". +// The second return value (bool) indicates whether the velocity entry exists. +// For query operations, use GetVaultsV2DepositVelocity instead which has simpler error semantics. func (k *Keeper) getDepositVelocity(ctx context.Context, addr sdk.AccAddress) (vaultsv2.DepositVelocity, bool, error) { velocity, err := k.VaultsV2DepositVelocity.Get(ctx, addr) if err != nil { @@ -837,15 +841,24 @@ func (k *Keeper) getDepositVelocity(ctx context.Context, addr sdk.AccAddress) (v return velocity, true, nil } +// setDepositVelocity is an internal helper that sets deposit velocity for a user. +// This is used by message handlers. Takes a typed sdk.AccAddress for convenience. +// For external use, see SetVaultsV2DepositVelocity which takes raw bytes. func (k *Keeper) setDepositVelocity(ctx context.Context, addr sdk.AccAddress, velocity vaultsv2.DepositVelocity) error { return k.VaultsV2DepositVelocity.Set(ctx, addr, velocity) } +// recordUserDeposit is an internal helper that records a user's deposit at a specific block height. +// This creates an entry in the deposit history used for velocity tracking and malicious deposit detection. +// The history is pruned when users fully exit the vault (see PruneUserDepositHistory). func (k *Keeper) recordUserDeposit(ctx context.Context, addr sdk.AccAddress, block int64, amount math.Int) error { key := collections.Join(addr.Bytes(), block) return k.VaultsV2UserDepositHistory.Set(ctx, key, amount) } +// incrementBlockDeposit is an internal helper that adds to the total deposit volume for a specific block. +// This is used to enforce per-block deposit limits and detect suspicious activity. +// Uses safe addition to prevent overflow. func (k *Keeper) incrementBlockDeposit(ctx context.Context, block int64, amount math.Int) error { current, err := k.VaultsV2BlockDepositVolume.Get(ctx, block) if err != nil { @@ -861,6 +874,8 @@ func (k *Keeper) incrementBlockDeposit(ctx context.Context, block int64, amount return k.VaultsV2BlockDepositVolume.Set(ctx, block, updated) } +// getBlockDepositVolume is an internal helper that retrieves the total deposit volume for a specific block. +// Returns zero if no deposits occurred in that block (not an error). func (k *Keeper) getBlockDepositVolume(ctx context.Context, block int64) (math.Int, error) { volume, err := k.VaultsV2BlockDepositVolume.Get(ctx, block) if err != nil { @@ -1089,6 +1104,9 @@ func (k *Keeper) SetVaultsV2DepositLimits(ctx context.Context, limits vaultsv2.D } // GetVaultsV2DepositVelocity retrieves the deposit velocity for a user. +// This is the public API used by query handlers and external callers. +// Returns an error if the entry is not found or if there's a storage error. +// For message handlers that need to distinguish "not found" from "error", use the internal getDepositVelocity helper. func (k *Keeper) GetVaultsV2DepositVelocity(ctx context.Context, user []byte) (vaultsv2.DepositVelocity, error) { velocity, err := k.VaultsV2DepositVelocity.Get(ctx, user) if err != nil { @@ -1098,6 +1116,8 @@ func (k *Keeper) GetVaultsV2DepositVelocity(ctx context.Context, user []byte) (v } // SetVaultsV2DepositVelocity sets the deposit velocity for a user. +// This is the public API used by external callers. Takes raw bytes for the user address. +// For message handlers that work with typed addresses, use the internal setDepositVelocity helper. func (k *Keeper) SetVaultsV2DepositVelocity(ctx context.Context, user []byte, velocity vaultsv2.DepositVelocity) error { return k.VaultsV2DepositVelocity.Set(ctx, user, velocity) }